From 6a097140413f0d2bb95913e76117a99f6d3691bb Mon Sep 17 00:00:00 2001 From: Naiyuan Qing <145280634+NevilleQingNY@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:29:26 +0800 Subject: [PATCH] fix(inbox): add missing notification type labels for subscriber-driven notifications Add new_comment, unassigned, assignee_changed, priority_changed, status_changed to InboxItemType and typeLabels so inbox renders proper labels instead of raw type strings. Co-Authored-By: Claude Opus 4.6 (1M context) --- apps/web/app/(dashboard)/inbox/page.tsx | 7 ++++++- apps/web/shared/types/inbox.ts | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(dashboard)/inbox/page.tsx b/apps/web/app/(dashboard)/inbox/page.tsx index 41adf23f..7f020eb2 100644 --- a/apps/web/app/(dashboard)/inbox/page.tsx +++ b/apps/web/app/(dashboard)/inbox/page.tsx @@ -43,12 +43,17 @@ const severityOrder: Record = { const typeLabels: Record = { issue_assigned: "Assigned", + unassigned: "Unassigned", + assignee_changed: "Assignee changed", + status_changed: "Status changed", + priority_changed: "Priority changed", + new_comment: "New comment", + mentioned: "Mentioned", review_requested: "Review requested", task_completed: "Task completed", task_failed: "Task failed", agent_blocked: "Agent blocked", agent_completed: "Agent completed", - mentioned: "Mentioned", status_change: "Status changed", }; diff --git a/apps/web/shared/types/inbox.ts b/apps/web/shared/types/inbox.ts index e66e32e1..1eac3568 100644 --- a/apps/web/shared/types/inbox.ts +++ b/apps/web/shared/types/inbox.ts @@ -4,12 +4,17 @@ export type InboxSeverity = "action_required" | "attention" | "info"; export type InboxItemType = | "issue_assigned" + | "unassigned" + | "assignee_changed" + | "status_changed" + | "priority_changed" + | "new_comment" + | "mentioned" | "review_requested" | "task_completed" | "task_failed" | "agent_blocked" | "agent_completed" - | "mentioned" | "status_change"; export interface InboxItem {