From fcee8761b95f3a7a8108dff04bd29e30e84e9daf Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 16 Feb 2026 18:33:08 +0100 Subject: [PATCH] Hide jury stat card in header for non-jury rounds (INTAKE, FILTERING, etc.) The jury selector card in the stats bar was still visible on round types where juries don't apply. Now conditionally rendered based on hasJury, with the grid adjusting from 4 to 3 columns accordingly. Co-Authored-By: Claude Opus 4.6 --- .../(admin)/admin/rounds/[roundId]/page.tsx | 100 +++++++++--------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/src/app/(admin)/admin/rounds/[roundId]/page.tsx b/src/app/(admin)/admin/rounds/[roundId]/page.tsx index b101cc8..f435eab 100644 --- a/src/app/(admin)/admin/rounds/[roundId]/page.tsx +++ b/src/app/(admin)/admin/rounds/[roundId]/page.tsx @@ -582,7 +582,7 @@ export default function RoundDetailPage() { {/* ===== STATS BAR — Accent-bordered cards ===== */} -
+
{/* Projects */} @@ -605,56 +605,58 @@ export default function RoundDetailPage() { - {/* Jury (with inline group selector) */} - - - -
-
- + {/* Jury (with inline group selector) — only for jury-relevant rounds */} + {hasJury && ( + + + +
+
+ +
+ Jury
- Jury -
- {juryGroups && juryGroups.length > 0 ? ( - - ) : juryGroup ? ( - <> -

{juryMemberCount}

-

{juryGroup.name}

- - ) : ( - <> -

-

No jury groups yet

- - )} - - - + {juryGroups && juryGroups.length > 0 ? ( + + ) : juryGroup ? ( + <> +

{juryMemberCount}

+

{juryGroup.name}

+ + ) : ( + <> +

+

No jury groups yet

+ + )} + + + + )} {/* Window */} - +
@@ -687,7 +689,7 @@ export default function RoundDetailPage() { {/* Advancement */} - +