From 4683bb87402458f9caad4168d7f4941e5045b79d Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 27 Feb 2026 00:58:18 +0100 Subject: [PATCH] feat(01-04): add AI_RANKING_COMPLETE + AI_RANKING_FAILED notification types - Added AI_RANKING_COMPLETE and AI_RANKING_FAILED to NotificationTypes const - Added BarChart3 / AlertTriangle icons in NotificationIcons - Added normal / high priorities in NotificationPriorities --- src/server/services/in-app-notification.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/services/in-app-notification.ts b/src/server/services/in-app-notification.ts index 4ea35ec..0d775b6 100644 --- a/src/server/services/in-app-notification.ts +++ b/src/server/services/in-app-notification.ts @@ -27,6 +27,8 @@ export const NotificationTypes = { DEADLINE_1H: 'DEADLINE_1H', ROUND_AUTO_CLOSED: 'ROUND_AUTO_CLOSED', EXPORT_READY: 'EXPORT_READY', + AI_RANKING_COMPLETE: 'AI_RANKING_COMPLETE', + AI_RANKING_FAILED: 'AI_RANKING_FAILED', SYSTEM_ERROR: 'SYSTEM_ERROR', // Jury notifications @@ -121,6 +123,8 @@ export const NotificationIcons: Record = { [NotificationTypes.WINNER_ANNOUNCEMENT]: 'Trophy', [NotificationTypes.AWARD_VOTING_OPEN]: 'Vote', [NotificationTypes.AWARD_RESULTS]: 'Trophy', + [NotificationTypes.AI_RANKING_COMPLETE]: 'BarChart3', + [NotificationTypes.AI_RANKING_FAILED]: 'AlertTriangle', } // Priority by notification type @@ -143,6 +147,8 @@ export const NotificationPriorities: Record = { [NotificationTypes.ADVANCED_FINAL]: 'high', [NotificationTypes.WINNER_ANNOUNCEMENT]: 'high', [NotificationTypes.AWARD_VOTING_OPEN]: 'high', + [NotificationTypes.AI_RANKING_COMPLETE]: 'normal', + [NotificationTypes.AI_RANKING_FAILED]: 'high', } interface CreateNotificationParams {