From 4519e63fece8f55761d48b6c99165dcc991dae90 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Mon, 9 Sep 2024 17:40:15 +0530 Subject: [PATCH] fix: dashboard issue stats --- packages/types/src/dashboard.d.ts | 1 + .../widgets/issue-panels/issue-list-item.tsx | 14 ++++++++------ .../components/page-views/workspace-dashboard.tsx | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/types/src/dashboard.d.ts b/packages/types/src/dashboard.d.ts index 47e37a6c6e2..3b1c825a0ab 100644 --- a/packages/types/src/dashboard.d.ts +++ b/packages/types/src/dashboard.d.ts @@ -109,6 +109,7 @@ export type TWidgetIssue = TIssue & { project_id: string; relation_type: TIssueRelationTypes; sequence_id: number; + type_id: string | null; }[]; }; diff --git a/web/core/components/dashboard/widgets/issue-panels/issue-list-item.tsx b/web/core/components/dashboard/widgets/issue-panels/issue-list-item.tsx index bb897916dec..c3dc06b1ecb 100644 --- a/web/core/components/dashboard/widgets/issue-panels/issue-list-item.tsx +++ b/web/core/components/dashboard/widgets/issue-panels/issue-list-item.tsx @@ -67,12 +67,14 @@ export const AssignedUpcomingIssueListItem: React.FC = obser ? blockedByIssues.length > 1 ? `${blockedByIssues.length} blockers` : blockedByIssueProjectDetails && ( - - ) + + ) : "-"} diff --git a/web/core/components/page-views/workspace-dashboard.tsx b/web/core/components/page-views/workspace-dashboard.tsx index a6affa4ae3f..0e377fd4a6a 100644 --- a/web/core/components/page-views/workspace-dashboard.tsx +++ b/web/core/components/page-views/workspace-dashboard.tsx @@ -65,7 +65,7 @@ export const WorkspaceDashboardView = observer(() => { <> {joinedProjectIds.length > 0 || loader ? ( <> - + = 768,