feat: add showJurorProgressDashboard toggle to EvaluationConfig

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 15:12:23 +01:00
parent a327962f04
commit 2a61aa8e08
2 changed files with 13 additions and 0 deletions

View File

@@ -174,6 +174,18 @@ export function EvaluationConfig({ config, onChange }: EvaluationConfigProps) {
onCheckedChange={(v) => update('peerReviewEnabled', v)} onCheckedChange={(v) => update('peerReviewEnabled', v)}
/> />
</div> </div>
<div className="flex items-center justify-between">
<div>
<Label htmlFor="showJurorProgressDashboard">Juror Progress Dashboard</Label>
<p className="text-xs text-muted-foreground">Show jurors a dashboard with their past evaluations, scores, and advance decisions</p>
</div>
<Switch
id="showJurorProgressDashboard"
checked={(config.showJurorProgressDashboard as boolean) ?? false}
onCheckedChange={(v) => update('showJurorProgressDashboard', v)}
/>
</div>
</CardContent> </CardContent>
</Card> </Card>

View File

@@ -101,6 +101,7 @@ export const EvaluationConfigSchema = z.object({
coiRequired: z.boolean().default(true), coiRequired: z.boolean().default(true),
peerReviewEnabled: z.boolean().default(false), peerReviewEnabled: z.boolean().default(false),
showJurorProgressDashboard: z.boolean().default(false),
anonymizationLevel: z anonymizationLevel: z
.enum(['fully_anonymous', 'show_initials', 'named']) .enum(['fully_anonymous', 'show_initials', 'named'])
.default('fully_anonymous'), .default('fully_anonymous'),