Skip to content

Commit

Permalink
fix: dashboard issue stats
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolsinghbhatia committed Sep 9, 2024
1 parent fe280b2 commit 4519e63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
1 change: 1 addition & 0 deletions packages/types/src/dashboard.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export type TWidgetIssue = TIssue & {
project_id: string;
relation_type: TIssueRelationTypes;
sequence_id: number;
type_id: string | null;
}[];
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,14 @@ export const AssignedUpcomingIssueListItem: React.FC<IssueListItemProps> = obser
? blockedByIssues.length > 1
? `${blockedByIssues.length} blockers`
: blockedByIssueProjectDetails && (
<IssueIdentifier
issueId={blockedByIssues[0]?.id}
projectId={blockedByIssueProjectDetails?.id}
textContainerClassName="text-xs text-custom-text-200 font-medium"
/>
)
<IssueIdentifier
projectIdentifier={blockedByIssueProjectDetails?.identifier}
projectId={blockedByIssueProjectDetails?.id}
issueSequenceId={blockedByIssues[0]?.sequence_id}
issueTypeId={blockedByIssues[0]?.type_id}
textContainerClassName="text-xs text-custom-text-200 font-medium"
/>
)
: "-"}
</div>
</ControlLink>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/page-views/workspace-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const WorkspaceDashboardView = observer(() => {
<>
{joinedProjectIds.length > 0 || loader ? (
<>
<IssuePeekOverview />
<IssuePeekOverview shouldReplaceIssueOnFetch={false} />
<ContentWrapper
className={cn("gap-7", {
"vertical-scrollbar scrollbar-lg": windowWidth >= 768,
Expand Down

0 comments on commit 4519e63

Please sign in to comment.