test: add integration coverage for admin proxy evaluation
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m0s
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m0s
Seven scenarios covering the new admin procedures: - non-admin users are rejected on adminStart/adminSubmitOnBehalf - admin can list a juror's assignments with COI flag surfaced - admin can complete the full draft→autosave→submit cycle with the voting window already closed, confirming bypass works - COI-declared assignments still block admin submission - feedback minimum length is enforced on admin submit - adminAutosave refuses to overwrite a SUBMITTED evaluation - audit log captures admin id, juror id, and bypassedWindow flag Also swaps a lucide icon alias (FileEdit → Pencil) in the juror assignments page to avoid the deprecated alias form. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
ArrowRight,
|
||||
CheckCircle2,
|
||||
Clock,
|
||||
FileEdit,
|
||||
Pencil,
|
||||
ShieldAlert,
|
||||
UserCheck,
|
||||
} from 'lucide-react'
|
||||
@@ -184,7 +184,7 @@ function AssignmentRow({ roundId, userId, assignment, mode }: AssignmentRowProps
|
||||
evaluation?.status === 'SUBMITTED' || evaluation?.status === 'LOCKED'
|
||||
? CheckCircle2
|
||||
: evaluation?.status === 'DRAFT'
|
||||
? FileEdit
|
||||
? Pencil
|
||||
: Clock
|
||||
|
||||
const href = `/admin/rounds/${roundId}/jurors/${userId}/evaluate/${project.id}` as Route
|
||||
|
||||
Reference in New Issue
Block a user