From 5d0f43526ac08fb2d17911c73fcb21f021e60893 Mon Sep 17 00:00:00 2001 From: Afaq Ahmad Date: Tue, 30 Dec 2025 19:04:05 +0500 Subject: [PATCH 1/2] fix: update intake open count after accept, decline, or duplicate --- .../web/core/components/inbox/content/inbox-issue-header.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/web/core/components/inbox/content/inbox-issue-header.tsx b/apps/web/core/components/inbox/content/inbox-issue-header.tsx index f326186f10c..d11e1b154d5 100644 --- a/apps/web/core/components/inbox/content/inbox-issue-header.tsx +++ b/apps/web/core/components/inbox/content/inbox-issue-header.tsx @@ -59,7 +59,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const [declineIssueModal, setDeclineIssueModal] = useState(false); const [deleteIssueModal, setDeleteIssueModal] = useState(false); // store - const { currentTab, deleteInboxIssue, filteredInboxIssueIds } = useProjectInbox(); + const { currentTab, deleteInboxIssue, filteredInboxIssueIds, fetchInboxIssues } = useProjectInbox(); const { data: currentUser } = useUser(); const { allowPermissions } = useUserPermissions(); const { currentProjectDetails } = useProject(); @@ -119,6 +119,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueAccept = async () => { const nextOrPreviousIssueId = redirectIssue(); await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.ACCEPTED); + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); setAcceptIssueModal(false); handleRedirection(nextOrPreviousIssueId); }; @@ -126,6 +127,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueDecline = async () => { const nextOrPreviousIssueId = redirectIssue(); await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.DECLINED); + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); setDeclineIssueModal(false); handleRedirection(nextOrPreviousIssueId); }; @@ -139,6 +141,7 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueDuplicate = async (issueId: string) => { await inboxIssue?.updateInboxIssueDuplicateTo(issueId); + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); }; const handleInboxIssueDelete = async () => { From fb92856b4de77425ec1915169de319c3c130f8e7 Mon Sep 17 00:00:00 2001 From: Afaq Ahmad Date: Tue, 30 Dec 2025 19:32:04 +0500 Subject: [PATCH 2/2] fix: update intake open count after accept, decline, or duplicate --- .../inbox/content/inbox-issue-header.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/apps/web/core/components/inbox/content/inbox-issue-header.tsx b/apps/web/core/components/inbox/content/inbox-issue-header.tsx index d11e1b154d5..2f0e395f283 100644 --- a/apps/web/core/components/inbox/content/inbox-issue-header.tsx +++ b/apps/web/core/components/inbox/content/inbox-issue-header.tsx @@ -119,7 +119,11 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueAccept = async () => { const nextOrPreviousIssueId = redirectIssue(); await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.ACCEPTED); - await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + try { + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + } catch (error) { + console.error("Failed to refresh inbox issues:", error); + } setAcceptIssueModal(false); handleRedirection(nextOrPreviousIssueId); }; @@ -127,7 +131,11 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueDecline = async () => { const nextOrPreviousIssueId = redirectIssue(); await inboxIssue?.updateInboxIssueStatus(EInboxIssueStatus.DECLINED); - await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + try { + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + } catch (error) { + console.error("Failed to refresh inbox issues:", error); + } setDeclineIssueModal(false); handleRedirection(nextOrPreviousIssueId); }; @@ -141,7 +149,11 @@ export const InboxIssueActionsHeader = observer(function InboxIssueActionsHeader const handleInboxIssueDuplicate = async (issueId: string) => { await inboxIssue?.updateInboxIssueDuplicateTo(issueId); - await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + try { + await fetchInboxIssues(workspaceSlug, projectId, "filter-loading"); + } catch (error) { + console.error("Failed to refresh inbox issues:", error); + } }; const handleInboxIssueDelete = async () => {