fix: adding issue title to the activity (#3271)

This commit is contained in:
sriram veeraghanta 2023-12-28 18:53:06 +05:30 committed by GitHub
parent 91e84aede1
commit 62b9b259c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 19 deletions

View File

@ -11,7 +11,6 @@ import {
CopyPlus, CopyPlus,
Calendar, Calendar,
Link2Icon, Link2Icon,
RocketIcon,
Users2Icon, Users2Icon,
ArchiveIcon, ArchiveIcon,
PaperclipIcon, PaperclipIcon,
@ -48,8 +47,8 @@ const IssueLink = ({ activity }: { activity: IIssueActivity }) => {
rel={activity.issue === null ? "" : "noopener noreferrer"} rel={activity.issue === null ? "" : "noopener noreferrer"}
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
> >
{activity.issue_detail ? `${activity.project_detail.identifier}-${activity.issue_detail.sequence_id}` : "Issue"} {activity.issue_detail ? `${activity.project_detail.identifier}-${activity.issue_detail.sequence_id}` : "Issue"}{" "}
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" /> <span className="font-normal">{activity.issue_detail?.name}</span>
</a> </a>
</Tooltip> </Tooltip>
); );
@ -163,7 +162,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
> >
attachment attachment
<RocketIcon size={12} color="#6b7280" />
</a> </a>
{showIssue && ( {showIssue && (
<> <>
@ -239,7 +237,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.new_value}</span> <span className="truncate">{activity.new_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );
@ -254,7 +251,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.new_value}</span> <span className="truncate">{activity.new_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );
@ -269,7 +265,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.old_value}</span> <span className="truncate">{activity.old_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );
@ -398,7 +393,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
> >
link link
<RocketIcon size={12} color="#6b7280" />
</a> </a>
{showIssue && ( {showIssue && (
<> <>
@ -420,7 +414,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
> >
link link
<RocketIcon size={12} color="#6b7280" />
</a> </a>
{showIssue && ( {showIssue && (
<> <>
@ -442,7 +435,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline"
> >
link link
<RocketIcon size={12} color="#6b7280" />
</a> </a>
{showIssue && ( {showIssue && (
<> <>
@ -469,7 +461,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.new_value}</span> <span className="truncate">{activity.new_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );
@ -484,7 +475,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.new_value}</span> <span className="truncate">{activity.new_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );
@ -499,7 +489,6 @@ const activityDetails: {
className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 truncate font-medium text-custom-text-100 hover:underline"
> >
<span className="truncate">{activity.old_value}</span> <span className="truncate">{activity.old_value}</span>
<RocketIcon size={12} color="#6b7280" className="flex-shrink-0" />
</a> </a>
</> </>
); );

View File

@ -1,7 +1,5 @@
import { useRouter } from "next/router"; import { useRouter } from "next/router";
import useSWR from "swr"; import useSWR from "swr";
// services // services
import { UserService } from "services/user.service"; import { UserService } from "services/user.service";
// components // components
@ -9,7 +7,6 @@ import { ActivityMessage } from "components/core";
// ui // ui
import { ProfileEmptyState } from "components/ui"; import { ProfileEmptyState } from "components/ui";
import { Loader } from "@plane/ui"; import { Loader } from "@plane/ui";
import { Rocket } from "lucide-react";
// image // image
import recentActivityEmptyState from "public/empty-state/recent_activity.svg"; import recentActivityEmptyState from "public/empty-state/recent_activity.svg";
// helpers // helpers
@ -67,10 +64,9 @@ export const ProfileActivity = () => {
href={`/${workspaceSlug}/projects/${activity.project}/issues/${activity.issue}`} href={`/${workspaceSlug}/projects/${activity.project}/issues/${activity.issue}`}
target="_blank" target="_blank"
rel="noopener noreferrer" rel="noopener noreferrer"
className="inline-flex items-center gap-1 font-medium text-custom-text-100 hover:underline" className="inline-flex items-center gap-1 font-medium text-custom-text-200 hover:underline"
> >
Issue Issue.
<Rocket className="h-3 w-3" />
</a> </a>
</span> </span>
)} )}