feat: add admin advancement summary card and advance column in assignments table

- Update listByStage query to include evaluation form criteriaJson and criterionScoresJson
- Add Advance column to individual assignments table showing YES/NO badge per submitted evaluation
- Create AdvancementSummaryCard component showing yes/no/pending vote counts with stacked bar
- Wire AdvancementSummaryCard into the EVALUATION round overview tab

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 15:19:30 +01:00
parent 79bd4dbae7
commit c96f1b67a5
4 changed files with 126 additions and 3 deletions

View File

@@ -115,6 +115,7 @@ import { AIRecommendationsDisplay } from '@/components/admin/round/ai-recommenda
import { EvaluationCriteriaEditor } from '@/components/admin/round/evaluation-criteria-editor'
import { COIReviewSection } from '@/components/admin/assignment/coi-review-section'
import { ConfigSectionHeader } from '@/components/admin/rounds/config/config-section-header'
import { AdvancementSummaryCard } from '@/components/admin/round/advancement-summary-card'
// ── Helpers ────────────────────────────────────────────────────────────────
@@ -942,6 +943,13 @@ export default function RoundDetailPage() {
</Card>
</AnimatedCard>
{/* Advancement Votes Summary — only for EVALUATION rounds */}
{isEvaluation && (
<AnimatedCard index={1}>
<AdvancementSummaryCard roundId={roundId} />
</AnimatedCard>
)}
{/* Filtering Results Summary — only for FILTERING rounds with results */}
{isFiltering && filteringStats && filteringStats.total > 0 && (
<AnimatedCard index={1}>