From c0f2b9bd388beb5f9fc09bf780c6ae24f0acb150 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 2 Mar 2026 23:31:13 +0100 Subject: [PATCH] fix: show 0/N Yes instead of "N jurors", color 1/2 Yes amber - Always display yes/no count format (e.g. "0/2 Yes") instead of generic "2 jurors" when no advance votes exist - Color coding: 2/2 Yes = green, 1/2 Yes = amber, 0/2 Yes = red Co-Authored-By: Claude Opus 4.6 --- src/components/admin/round/ranking-dashboard.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/admin/round/ranking-dashboard.tsx b/src/components/admin/round/ranking-dashboard.tsx index ef1ec29..b619307 100644 --- a/src/components/admin/round/ranking-dashboard.tsx +++ b/src/components/admin/round/ranking-dashboard.tsx @@ -217,14 +217,18 @@ function SortableProjectRow({ {/* Advance decision indicator */}
0 - ? 'bg-emerald-100 text-emerald-700' - : 'bg-gray-100 text-gray-500', + totalJurors === 0 + ? 'bg-gray-100 text-gray-500' + : yesCount === totalJurors + ? 'bg-emerald-100 text-emerald-700' + : yesCount > 0 + ? 'bg-amber-100 text-amber-700' + : 'bg-red-100 text-red-600', )}> - {yesCount > 0 ? ( + {totalJurors > 0 ? ( <>{yesCount}/{totalJurors} Yes ) : ( - <>{totalJurors} juror{totalJurors !== 1 ? 's' : ''} + <>0 jurors )}