From 8c3dbdbc987d567f0696362e593c6e71518c9691 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 14 Sep 2026 15:36:58 -0400 Subject: [PATCH] chore(events): extend event and notification registries for new features Additive event types (blackjack, personnel promotion, respawn tickets) and the promotion notification label consumed by the following feature commits. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- src/lib/notifications/index.ts | 2 ++ src/lib/notifications/notificationTypes.ts | 2 ++ src/utils/event-log/eventTypes.ts | 7 +++++++ 3 files changed, 11 insertions(+) diff --git a/src/lib/notifications/index.ts b/src/lib/notifications/index.ts index 6e6e043..3766225 100644 --- a/src/lib/notifications/index.ts +++ b/src/lib/notifications/index.ts @@ -115,6 +115,8 @@ export function notificationLabel(type?: string | null): string { return "Ribbon approved"; case "award:ribbon-rejected": return "Ribbon not approved"; + case "personnel:promoted": + return "Promotion"; default: return type ?? "Notification"; } diff --git a/src/lib/notifications/notificationTypes.ts b/src/lib/notifications/notificationTypes.ts index 8b17750..7ee8d86 100644 --- a/src/lib/notifications/notificationTypes.ts +++ b/src/lib/notifications/notificationTypes.ts @@ -19,6 +19,8 @@ export const MUTEABLE_NOTIFICATION_TYPES = [ { label: "Ticket status changes", value: "ticket:status" }, { label: "Poker", value: "poker:force-ended" }, { label: "Poker game auto-ended", value: "poker:everyone-left" }, + { label: "Blackjack", value: "blackjack:force-ended" }, + { label: "Blackjack table auto-ended", value: "blackjack:everyone-left" }, ] 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 4e5eda8..c8f140e 100644 --- a/src/utils/event-log/eventTypes.ts +++ b/src/utils/event-log/eventTypes.ts @@ -78,6 +78,7 @@ export const EventTypes = { MinigameAimTrainer: "minigame:aim-trainer", MinigameOpordRecall: "minigame:opord-recall", MinigamePoker: "minigame:poker", + MinigameBlackjack: "minigame:blackjack", MinigameCustomEodCreate: "minigame:custom-eod-create", MinigameCustomEodEdit: "minigame:custom-eod-edit", MinigameCustomEodDelete: "minigame:custom-eod-delete", @@ -129,6 +130,9 @@ export const EventTypes = { // Evaluations EvaluationSubmit: "evaluation:submit", + // Personnel + PersonnelPromoted: "personnel:promoted", + // Awards AwardGrant: "award:grant", AwardUpgrade: "award:upgrade", @@ -190,6 +194,9 @@ export const EventTypes = { AssignmentTransferResolve: "assignment-transfer:resolve", AssignmentTransferComplete: "assignment-transfer:complete", AssignmentTransferCancel: "assignment-transfer:cancel", + + // Respawn Tickets + RespawnTicketsSettled: "respawn:tickets-settled", } as const; export type EventType = (typeof EventTypes)[keyof typeof EventTypes];