From 33be52792f3e4da01ec5412ff7ec3c56c94e6dad Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:48:30 +0530 Subject: [PATCH] fix: archive issue bugs (#2712) * fix: blur on side/modal peek view * fix: delete archive not working on list layout with group by is none * fix: show empty group has no effect * fix: filter/display options same as production * fix: disabling full-screen peek-overview for archive issues * fix: truncate in calendar view --- .../list/roots/archived-issue-root.tsx | 5 +- .../issues/issue-peek-overview/view.tsx | 64 ++++++++++--------- web/constants/issue.ts | 17 +---- web/store/archived-issues/issue.store.ts | 2 +- 4 files changed, 42 insertions(+), 46 deletions(-) diff --git a/web/components/issues/issue-layouts/list/roots/archived-issue-root.tsx b/web/components/issues/issue-layouts/list/roots/archived-issue-root.tsx index a029ceda2..0d1fce245 100644 --- a/web/components/issues/issue-layouts/list/roots/archived-issue-root.tsx +++ b/web/components/issues/issue-layouts/list/roots/archived-issue-root.tsx @@ -30,12 +30,14 @@ export const ArchivedIssueListLayout: FC = observer(() => { const issues = archivedIssueStore.getIssues; const displayProperties = archivedIssueFiltersStore?.userDisplayProperties || null; const group_by: string | null = archivedIssueFiltersStore?.userDisplayFilters?.group_by || null; + const showEmptyGroup = archivedIssueFiltersStore?.userDisplayFilters?.show_empty_groups || false; const handleIssues = (group_by: string | null, issue: IIssue, action: "delete" | "update") => { if (!workspaceSlug || !projectId) return; if (action === "delete") { - archivedIssueStore.deleteArchivedIssue(group_by, null, issue); + archivedIssueStore.deleteArchivedIssue(group_by === "null" ? null : group_by, null, issue); + archivedIssueStore.fetchIssues(workspaceSlug.toString(), projectId.toString()); } }; @@ -68,6 +70,7 @@ export const ArchivedIssueListLayout: FC = observer(() => { members={projectMembers?.map((m) => m.member) ?? null} projects={projects} estimates={estimates?.points ? orderArrayBy(estimates.points, "key") : null} + showEmptyGroup={showEmptyGroup} /> ); diff --git a/web/components/issues/issue-peek-overview/view.tsx b/web/components/issues/issue-peek-overview/view.tsx index 8afc7e600..3d29c1545 100644 --- a/web/components/issues/issue-peek-overview/view.tsx +++ b/web/components/issues/issue-peek-overview/view.tsx @@ -247,9 +247,6 @@ export const IssueView: FC = observer((props) => { {/* content */}
- {isArchived && ( -
- )} {isLoading && !issue ? (
@@ -258,7 +255,10 @@ export const IssueView: FC = observer((props) => { issue && ( <> {["side-peek", "modal"].includes(peekMode) ? ( -
+
+ {isArchived && ( +
+ )} = observer((props) => { />
) : ( -
-
- +
+
+
+ - + +
-
+