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
This commit is contained in:
2026-02-27 00:58:18 +01:00
parent 7c4dffaf84
commit 4683bb8740

View File

@@ -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<string, string> = {
[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<string, NotificationPriority> = {
[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 {