diff --git a/src/lib/notifications/index.ts b/src/lib/notifications/index.ts index f3cfb59..54fac6f 100644 --- a/src/lib/notifications/index.ts +++ b/src/lib/notifications/index.ts @@ -55,6 +55,8 @@ export async function notifyUser(payload: PayloadType, input: NotifyInput): Prom /** Short display label for a notification type, or the raw type when unknown. */ export function notificationLabel(type?: string | null): string { switch (type) { + case "poker:force-ended": + return "Poker game ended"; case "market:offer": return "New offer"; case "market:counter": @@ -107,6 +109,10 @@ export function notificationLabel(type?: string | null): string { return "Transfer completed"; case "assignment-transfer:cancelled": return "Transfer cancelled"; + case "award:ribbon-approved": + return "Ribbon approved"; + case "award:ribbon-rejected": + return "Ribbon not approved"; default: return type ?? "Notification"; } diff --git a/src/lib/notifications/notificationTypes.ts b/src/lib/notifications/notificationTypes.ts index 85ef832..cab87ae 100644 --- a/src/lib/notifications/notificationTypes.ts +++ b/src/lib/notifications/notificationTypes.ts @@ -17,6 +17,7 @@ export const MUTEABLE_NOTIFICATION_TYPES = [ { label: "Ticket assigned", value: "ticket:assigned" }, { label: "Ticket replies", value: "ticket:reply" }, { label: "Ticket status changes", value: "ticket:status" }, + { label: "Poker", value: "poker:force-ended" }, ] as const; export type MuteableNotificationType = (typeof MUTEABLE_NOTIFICATION_TYPES)[number]["value"]; export const MUTEABLE_NOTIFICATION_VALUES = MUTEABLE_NOTIFICATION_TYPES.map((t) => t.value); diff --git a/src/utils/event-log/eventTypes.ts b/src/utils/event-log/eventTypes.ts index 632785e..48fd546 100644 --- a/src/utils/event-log/eventTypes.ts +++ b/src/utils/event-log/eventTypes.ts @@ -77,6 +77,7 @@ export const EventTypes = { MinigameRadioTraffic: "minigame:radio-traffic", MinigameAimTrainer: "minigame:aim-trainer", MinigameOpordRecall: "minigame:opord-recall", + MinigamePoker: "minigame:poker", MinigameCustomEodCreate: "minigame:custom-eod-create", MinigameCustomEodEdit: "minigame:custom-eod-edit", MinigameCustomEodDelete: "minigame:custom-eod-delete", @@ -130,6 +131,9 @@ export const EventTypes = { // Awards AwardGrant: "award:grant", + AwardRibbonSubmitted: "award:ribbon-submitted", + AwardRibbonApproved: "award:ribbon-approved", + AwardRibbonRejected: "award:ribbon-rejected", // Missions MissionAutoComplete: "mission:auto-complete",