Hide jury stat card in header for non-jury rounds (INTAKE, FILTERING, etc.)
Build and Push Docker Image / build (push) Failing after 8s
Details
Build and Push Docker Image / build (push) Failing after 8s
Details
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 <noreply@anthropic.com>
This commit is contained in:
parent
09049d2911
commit
f731f96a0a
|
|
@ -582,7 +582,7 @@ export default function RoundDetailPage() {
|
||||||
</motion.div>
|
</motion.div>
|
||||||
|
|
||||||
{/* ===== STATS BAR — Accent-bordered cards ===== */}
|
{/* ===== STATS BAR — Accent-bordered cards ===== */}
|
||||||
<div className="grid gap-3 grid-cols-2 sm:grid-cols-4">
|
<div className={cn("grid gap-3 grid-cols-2", hasJury ? "sm:grid-cols-4" : "sm:grid-cols-3")}>
|
||||||
{/* Projects */}
|
{/* Projects */}
|
||||||
<AnimatedCard index={0}>
|
<AnimatedCard index={0}>
|
||||||
<Card className="border-l-4 border-l-[#557f8c] hover:shadow-md transition-shadow">
|
<Card className="border-l-4 border-l-[#557f8c] hover:shadow-md transition-shadow">
|
||||||
|
|
@ -605,7 +605,8 @@ export default function RoundDetailPage() {
|
||||||
</Card>
|
</Card>
|
||||||
</AnimatedCard>
|
</AnimatedCard>
|
||||||
|
|
||||||
{/* Jury (with inline group selector) */}
|
{/* Jury (with inline group selector) — only for jury-relevant rounds */}
|
||||||
|
{hasJury && (
|
||||||
<AnimatedCard index={1}>
|
<AnimatedCard index={1}>
|
||||||
<Card className="border-l-4 border-l-purple-500 hover:shadow-md transition-shadow">
|
<Card className="border-l-4 border-l-purple-500 hover:shadow-md transition-shadow">
|
||||||
<CardContent className="pt-4 pb-3">
|
<CardContent className="pt-4 pb-3">
|
||||||
|
|
@ -652,9 +653,10 @@ export default function RoundDetailPage() {
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
</AnimatedCard>
|
</AnimatedCard>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Window */}
|
{/* Window */}
|
||||||
<AnimatedCard index={2}>
|
<AnimatedCard index={hasJury ? 2 : 1}>
|
||||||
<Card className="border-l-4 border-l-emerald-500 hover:shadow-md transition-shadow">
|
<Card className="border-l-4 border-l-emerald-500 hover:shadow-md transition-shadow">
|
||||||
<CardContent className="pt-4 pb-3">
|
<CardContent className="pt-4 pb-3">
|
||||||
<div className="flex items-center gap-2.5">
|
<div className="flex items-center gap-2.5">
|
||||||
|
|
@ -687,7 +689,7 @@ export default function RoundDetailPage() {
|
||||||
</AnimatedCard>
|
</AnimatedCard>
|
||||||
|
|
||||||
{/* Advancement */}
|
{/* Advancement */}
|
||||||
<AnimatedCard index={3}>
|
<AnimatedCard index={hasJury ? 3 : 2}>
|
||||||
<Card className="border-l-4 border-l-amber-500 hover:shadow-md transition-shadow">
|
<Card className="border-l-4 border-l-amber-500 hover:shadow-md transition-shadow">
|
||||||
<CardContent className="pt-4 pb-3">
|
<CardContent className="pt-4 pb-3">
|
||||||
<div className="flex items-center gap-2.5">
|
<div className="flex items-center gap-2.5">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue