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 {