π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[WEB-3095] fix: recents widget title truncate (#6512)
Aaryan Khandelwalff778b98f520
diff --git a/web/core/components/home/widgets/recents/issue.tsx b/web/core/components/home/widgets/recents/issue.tsxindex 77e9044722..af08942818 100644--- a/web/core/components/home/widgets/recents/issue.tsx+++ b/web/core/components/home/widgets/recents/issue.tsx@@ -1,9 +1,15 @@+// plane typesimport { TActivityEntityData, TIssueEntityData } from "@plane/types";+// plane uiimport { LayersIcon, PriorityIcon, StateGroupIcon, Tooltip } from "@plane/ui";+// componentsimport { ListItem } from "@/components/core/list";import { MemberDropdown } from "@/components/dropdowns";+// helpersimport { calculateTimeAgo } from "@/helpers/date-time.helper";+// hooksimport { useIssueDetail, useProjectState } from "@/hooks/store";+// plane web componentsimport { IssueIdentifier } from "@/plane-web/components/issues";type BlockProps = {@@ -24,9 +30,9 @@ export const RecentIssue = (props: BlockProps) => {<ListItemkey={activity.id}itemLink=""- title={""}+ title={issueDetails?.name}prependTitleElement={- <div className="flex flex-shrink-0 items-center justify-center rounded-md gap-4 ">+ <div className="flex-shrink-0 flex items-center gap-2">{issueDetails.type ? (<IssueIdentifiersize="lg"@@ -38,16 +44,19 @@ export const RecentIssue = (props: BlockProps) => {/>) : (<div className="flex gap-2 items-center justify-center">- <div className="flex flex-shrink-0 items-center justify-center rounded gap-4 bg-custom-background-80 w-[25.5px] h-[25.5px]">- <LayersIcon className="w-4 h-4 text-custom-text-350" />+ <div className="flex-shrink-0 grid place-items-center rounded bg-custom-background-80 size-8">+ <LayersIcon className="size-4 text-custom-text-350" /></div>- <div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">+ <div className="font-medium text-custom-text-400 text-sm whitespace-nowrap">{issueDetails?.project_identifier}-{issueDetails?.sequence_id}</div></div>)}- <div className="text-custom-text-200 font-medium text-sm whitespace-nowrap">{issueDetails?.name}</div>- <div className="font-medium text-xs text-custom-text-400">{calculateTimeAgo(activity.visited_at)}</div>+ </div>+ }+ appendTitleElement={+ <div className="flex-shrink-0 font-medium text-xs text-custom-text-400">+ {calculateTimeAgo(activity.visited_at)}</div>}quickActionElement={diff --git a/web/core/components/home/widgets/recents/page.tsx b/web/core/components/home/widgets/recents/page.tsxindex 41d73a1e55..95f78737ae 100644--- a/web/core/components/home/widgets/recents/page.tsx+++ b/web/core/components/home/widgets/recents/page.tsx@@ -37,29 +37,26 @@ export const RecentPage = (props: BlockProps) => {<ListItemkey={activity.id}itemLink=""- title={""}+ title={getPageName(pageDetails?.name)}prependTitleElement={- <div className="flex flex-shrink-0 items-center justify-center rounded-md gap-4 ">- <div className="flex gap-2 items-center justify-center">- <div className="flex flex-shrink-0 items-center justify-center rounded gap-2 bg-custom-background-80 w-[25.5px] h-[25.5px]">- <>- {pageDetails?.logo_props?.in_use ? (- <Logo logo={pageDetails?.logo_props} size={16} type="lucide" />- ) : (- <FileText className="h-4 w-4 text-custom-text-350" />- )}- </>- </div>- {pageDetails?.project_identifier && (- <div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">- {pageDetails?.project_identifier}- </div>+ <div className="flex-shrink-0 flex items-center gap-2">+ <div className="flex-shrink-0 grid place-items-center rounded bg-custom-background-80 size-8">+ {pageDetails?.logo_props?.in_use ? (+ <Logo logo={pageDetails?.logo_props} size={16} type="lucide" />+ ) : (+ <FileText className="size-4 text-custom-text-350" />)}</div>- <div className="text-custom-text-200 font-medium text-sm whitespace-nowrap">- {getPageName(pageDetails?.name)}- </div>- <div className="font-medium text-xs text-custom-text-400">{calculateTimeAgo(activity.visited_at)}</div>+ {pageDetails?.project_identifier && (+ <div className="font-medium text-custom-text-400 text-sm whitespace-nowrap">+ {pageDetails?.project_identifier}+ </div>+ )}+ </div>+ }+ appendTitleElement={+ <div className="flex-shrink-0 font-medium text-xs text-custom-text-400">+ {calculateTimeAgo(activity.visited_at)}</div>}quickActionElement={diff --git a/web/core/components/home/widgets/recents/project.tsx b/web/core/components/home/widgets/recents/project.tsxindex 92d5cd45e8..1663b6bf47 100644--- a/web/core/components/home/widgets/recents/project.tsx+++ b/web/core/components/home/widgets/recents/project.tsx@@ -1,8 +1,12 @@import { useRouter } from "next/navigation";+// plane typesimport { TActivityEntityData, TProjectEntityData } from "@plane/types";+// plane uiimport { Logo } from "@plane/ui";+// componentsimport { ListItem } from "@/components/core/list";import { MemberDropdown } from "@/components/dropdowns";+// helpersimport { calculateTimeAgo } from "@/helpers/date-time.helper";type BlockProps = {@@ -21,19 +25,18 @@ export const RecentProject = (props: BlockProps) => {<ListItemkey={activity.id}itemLink=""- title={""}+ title={projectDetails?.name}prependTitleElement={- <div className="flex flex-shrink-0 items-center justify-center rounded-md gap-4 ">- <div className="flex gap-2 items-center justify-center">- <div className="flex flex-shrink-0 items-center justify-center rounded gap-4 bg-custom-background-80 w-[25.5px] h-[25.5px]">- <Logo logo={projectDetails?.logo_props} size={16} />- </div>- <div className="font-medium text-custom-sidebar-text-400 text-sm whitespace-nowrap">- {projectDetails?.identifier}- </div>+ <div className="flex-shrink-0 flex items-center gap-2">+ <div className="flex-shrink-0 grid place-items-center rounded bg-custom-background-80 size-8">+ <Logo logo={projectDetails?.logo_props} size={16} /></div>- <div className="text-custom-text-200 font-medium text-sm whitespace-nowrap">{projectDetails?.name}</div>- <div className="font-medium text-xs text-custom-text-400">{calculateTimeAgo(activity.visited_at)}</div>+ <div className="font-medium text-custom-text-400 text-sm whitespace-nowrap">{projectDetails?.identifier}</div>+ </div>+ }+ appendTitleElement={+ <div className="flex-shrink-0 font-medium text-xs text-custom-text-400">+ {calculateTimeAgo(activity.visited_at)}</div>}quickActionElement={