From e706913a5711f7d99fc95dbd3fb1e45ad2caec21 Mon Sep 17 00:00:00 2001 From: Matt Date: Tue, 28 Apr 2026 18:35:50 +0200 Subject: [PATCH] feat: add MENTEE_DROPPED + MENTOR_DROPPED notification types --- 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 0d775b6..80725a6 100644 --- a/src/server/services/in-app-notification.ts +++ b/src/server/services/in-app-notification.ts @@ -63,6 +63,8 @@ export const NotificationTypes = { MENTEE_FINALIST: 'MENTEE_FINALIST', MENTEE_WON: 'MENTEE_WON', MENTEE_ELIMINATED: 'MENTEE_ELIMINATED', + MENTEE_DROPPED: 'MENTEE_DROPPED', // Mentee finalist slot withdrawn → assignment dropped + MENTOR_DROPPED: 'MENTOR_DROPPED', // Mentor self-drop with reason → admin notification MENTORSHIP_TIP: 'MENTORSHIP_TIP', NEW_RESOURCE: 'NEW_RESOURCE', @@ -115,6 +117,8 @@ export const NotificationIcons: Record = { [NotificationTypes.MENTEE_ASSIGNED]: 'Users', [NotificationTypes.MENTEE_ADVANCED]: 'TrendingUp', [NotificationTypes.MENTEE_WON]: 'Trophy', + [NotificationTypes.MENTEE_DROPPED]: 'UserMinus', + [NotificationTypes.MENTOR_DROPPED]: 'UserMinus', [NotificationTypes.APPLICATION_SUBMITTED]: 'CheckCircle', [NotificationTypes.SUBMISSION_RECEIVED]: 'Inbox', [NotificationTypes.ADVANCED_SEMIFINAL]: 'TrendingUp', @@ -142,6 +146,8 @@ export const NotificationPriorities: Record = { [NotificationTypes.DEADLINE_24H]: 'high', [NotificationTypes.REMINDER_24H]: 'high', [NotificationTypes.MENTEE_ASSIGNED]: 'high', + [NotificationTypes.MENTEE_DROPPED]: 'high', + [NotificationTypes.MENTOR_DROPPED]: 'high', [NotificationTypes.APPLICATION_SUBMITTED]: 'high', [NotificationTypes.ADVANCED_SEMIFINAL]: 'high', [NotificationTypes.ADVANCED_FINAL]: 'high',