diff --git a/src/server/routers/assignment.ts b/src/server/routers/assignment.ts index 5005849..b9dd7d2 100644 --- a/src/server/routers/assignment.ts +++ b/src/server/routers/assignment.ts @@ -150,10 +150,11 @@ export async function reassignAfterCOI(params: { // Notify admins of the reassignment await notifyAdmins({ - type: NotificationTypes.BATCH_ASSIGNED, + type: NotificationTypes.EVALUATION_MILESTONE, title: 'COI Auto-Reassignment', message: `Project "${assignment.project.title}" was reassigned from ${assignment.user.name || assignment.user.email} to ${replacement.name || replacement.email} due to conflict of interest.`, linkUrl: `/admin/rounds/${roundId}`, + linkLabel: 'View Round', metadata: { projectId, oldJurorId: assignment.userId, @@ -447,10 +448,11 @@ async function reassignDroppedJurorAssignments(params: { .join(', ') await notifyAdmins({ - type: NotificationTypes.BATCH_ASSIGNED, + type: NotificationTypes.EVALUATION_MILESTONE, title: 'Juror Dropout Reshuffle', - message: `Reassigned ${actualMoves.length} project(s) from ${droppedName}. ${failedProjects.length > 0 ? `${failedProjects.length} project(s) could not be reassigned.` : 'All projects were reassigned.'}`, + message: `Reassigned ${actualMoves.length} project(s) from ${droppedName} to: ${topReceivers}. ${failedProjects.length > 0 ? `${failedProjects.length} project(s) could not be reassigned.` : 'All projects were reassigned successfully.'}`, linkUrl: `/admin/rounds/${round.id}`, + linkLabel: 'View Round', metadata: { roundId: round.id, droppedJurorId: droppedJuror.id,