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 <clio-agent@sisyphuslabs.ai>
This commit is contained in:
parent
b61db9dd3a
commit
8c3dbdbc98
3 changed files with 11 additions and 0 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue