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) <noreply@anthropic.com>
This commit is contained in:
parent
5b9241b74f
commit
6a09714041
2 changed files with 12 additions and 2 deletions
|
|
@ -43,12 +43,17 @@ const severityOrder: Record<InboxSeverity, number> = {
|
|||
|
||||
const typeLabels: Record<InboxItemType, string> = {
|
||||
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",
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue