From 94cd7c5626e374a273fe4d2cf49e47c3f62354d7 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Sun, 16 Aug 2026 18:12:22 -0400 Subject: [PATCH] feat(helpdesk): add ticket notification types Add ticket:created/assigned/reply/status labels and muteable notification types. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/lib/notifications/index.ts | 8 ++++++++ src/lib/notifications/notificationTypes.ts | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/lib/notifications/index.ts b/src/lib/notifications/index.ts index 0384923..1c7c737 100644 --- a/src/lib/notifications/index.ts +++ b/src/lib/notifications/index.ts @@ -74,6 +74,14 @@ export function notificationLabel(type?: string | null): string { return "Bank transfer"; case "shipment:completed": return "Shipment completed"; + case "ticket:created": + return "New ticket"; + case "ticket:assigned": + return "Ticket assigned"; + case "ticket:reply": + return "New reply"; + case "ticket:status": + return "Ticket updated"; default: return type ?? "Notification"; } diff --git a/src/lib/notifications/notificationTypes.ts b/src/lib/notifications/notificationTypes.ts index def279e..a60cb2a 100644 --- a/src/lib/notifications/notificationTypes.ts +++ b/src/lib/notifications/notificationTypes.ts @@ -12,6 +12,10 @@ export const MUTEABLE_NOTIFICATION_TYPES = [ { label: "Bank withdrawal", value: "finance:withdraw" }, { label: "Bank transfer", value: "finance:transfer" }, { label: "Shipment completed", value: "shipment:completed" }, + { label: "New tickets", value: "ticket:created" }, + { label: "Ticket assigned", value: "ticket:assigned" }, + { label: "Ticket replies", value: "ticket:reply" }, + { label: "Ticket status changes", value: "ticket:status" }, ] as const; export type MuteableNotificationType = (typeof MUTEABLE_NOTIFICATION_TYPES)[number]["value"]; export const MUTEABLE_NOTIFICATION_VALUES = MUTEABLE_NOTIFICATION_TYPES.map((t) => t.value);