diff --git a/src/components/admin/round/ranking-dashboard.tsx b/src/components/admin/round/ranking-dashboard.tsx index a462fd5..fb9ec2b 100644 --- a/src/components/admin/round/ranking-dashboard.tsx +++ b/src/components/admin/round/ranking-dashboard.tsx @@ -84,6 +84,9 @@ type SortableProjectRowProps = { entry: (RankedProjectEntry & { originalIndex?: number }) | undefined projectInfo: ProjectInfo | undefined jurorScores: JurorScore[] | undefined + rawAverage: number | null + balancedAverage: number | null + useBalanced: boolean onSelect: () => void isSelected: boolean originalRank: number | undefined // from snapshotOrder — always in sync with localOrder @@ -97,6 +100,9 @@ function SortableProjectRow({ entry, projectInfo, jurorScores, + rawAverage, + balancedAverage, + useBalanced, onSelect, isSelected, originalRank, @@ -195,12 +201,24 @@ function SortableProjectRow({ ))} - ) : entry?.avgGlobalScore !== null && entry?.avgGlobalScore !== undefined ? ( - - Avg {entry.avgGlobalScore.toFixed(2)} - ) : null} + {/* Active score chip (balanced if toggle on, otherwise raw) */} + {(() => { + const active = useBalanced && balancedAverage != null ? balancedAverage : rawAverage + if (active == null) return null + const label = useBalanced && balancedAverage != null ? 'Bal' : 'Raw' + return ( + + {label} + {active.toFixed(2)} + + ) + })()} + {/* Advance decision indicator */}