fix: show 0/N Yes instead of "N jurors", color 1/2 Yes amber
All checks were successful
Build and Push Docker Image / build (push) Successful in 8m38s

- 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 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 23:31:13 +01:00
parent 8c5f4998a8
commit c0f2b9bd38

View File

@@ -217,14 +217,18 @@ function SortableProjectRow({
{/* Advance decision indicator */} {/* Advance decision indicator */}
<div className={cn( <div className={cn(
'inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium', 'inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium',
yesCount > 0 totalJurors === 0
? 'bg-emerald-100 text-emerald-700' ? 'bg-gray-100 text-gray-500'
: '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</> <>{yesCount}/{totalJurors} Yes</>
) : ( ) : (
<>{totalJurors} juror{totalJurors !== 1 ? 's' : ''}</> <>0 jurors</>
)} )}
</div> </div>
</div> </div>