@@ -5,10 +5,9 @@ import { AdminBenchmarkConfigsTable } from '@/features/admin/benchmark/component
55import { AdminBenchmarkCurrentLineup } from '@/features/admin/benchmark/components/AdminBenchmarkCurrentLineup' ;
66import { AdminBenchmarkReleaseForm } from '@/features/admin/benchmark/components/AdminBenchmarkReleaseForm' ;
77import { AdminBenchmarkRolloverPreview } from '@/features/admin/benchmark/components/AdminBenchmarkRolloverPreview' ;
8+ import { AdminPageShell } from '@/features/admin/components/AdminPageShell' ;
89import { useAdminBenchmarkController } from '@/features/admin/benchmark/useAdminBenchmarkController' ;
9- import { PageIntro } from '@/components/ui/PageIntro' ;
1010import { AdminLoginCard } from '@/features/admin/dashboard/components/AdminLoginCard' ;
11- import { AdminNavigationLinks } from '@/features/admin/dashboard/components/AdminNavigationLinks' ;
1211import { AdminResultBanner } from '@/features/admin/dashboard/components/AdminResultBanner' ;
1312
1413export default function AdminBenchmarkPageClient ( ) {
@@ -45,53 +44,60 @@ export default function AdminBenchmarkPageClient() {
4544
4645 if ( ! hasResolvedAuth ) {
4746 return (
48- < div className = "min-h-[60vh] flex items-center justify-center px-4 py-12" >
49- < div className = "glass-card p-8 w-full max-w-md mx-auto text-center border border-[var(--border-medium)]" >
50- < h1 className = "text-2xl font-bold mb-3 text-[var(--text-primary)]" > Benchmark Control</ h1 >
51- < p className = "text-[var(--text-secondary)]" > Checking admin session...</ p >
47+ < AdminPageShell
48+ title = "Benchmark Control"
49+ description = "Manage stable model families, exact releases, and future cohort lineups."
50+ >
51+ < div className = "glass-card mx-auto max-w-md p-8 text-center border border-[var(--border-medium)]" >
52+ < h2 className = "text-2xl font-bold mb-3 text-[var(--text-primary)]" > Checking admin session...</ h2 >
53+ < p className = "text-[var(--text-secondary)]" > Verifying your admin session before loading benchmark controls.</ p >
5254 </ div >
53- </ div >
55+ </ AdminPageShell >
5456 ) ;
5557 }
5658
5759 if ( ! isAuthenticated ) {
5860 return (
59- < AdminLoginCard
60- password = { password }
61- error = { error }
62- loading = { loading }
63- onPasswordChange = { setPassword }
64- onSubmit = { handleLogin }
65- />
61+ < AdminPageShell
62+ title = "Benchmark Control"
63+ description = "Manage stable model families, exact releases, and future cohort lineups."
64+ >
65+ < AdminLoginCard
66+ password = { password }
67+ error = { error }
68+ loading = { loading }
69+ embedded
70+ onPasswordChange = { setPassword }
71+ onSubmit = { handleLogin }
72+ />
73+ </ AdminPageShell >
6674 ) ;
6775 }
6876
6977 if ( ! overview || ! configState ) {
7078 return (
71- < div className = "container-wide mx-auto px-6 py-12" >
72- < div className = "glass-card p-8 text-center border border-[var(--border-medium)]" >
73- < h1 className = "text-2xl font-bold mb-3" > Benchmark Control</ h1 >
74- < p className = "text-[var(--text-secondary)]" > Loading benchmark lineage data...</ p >
79+ < AdminPageShell
80+ title = "Benchmark Control"
81+ description = "Manage stable model families, exact releases, and future cohort lineups."
82+ >
83+ < div className = "glass-card mx-auto max-w-md p-8 text-center border border-[var(--border-medium)]" >
84+ < h2 className = "text-2xl font-bold mb-3" > Loading benchmark lineage data...</ h2 >
85+ < p className = "text-[var(--text-secondary)]" > Reading releases, configs, and current lineup details.</ p >
7586 </ div >
76- </ div >
87+ </ AdminPageShell >
7788 ) ;
7889 }
7990
8091 return (
81- < div className = "container-wide mx-auto px-6 py-12" >
82- < div className = "-mx-6 mb-8" >
83- < PageIntro
84- eyebrow = "Admin"
85- title = "Benchmark Control"
86- description = "Manage stable model families, exact releases, and future cohort lineups."
87- actions = { (
88- < button onClick = { handleLogout } className = "btn btn-secondary" >
89- Logout
90- </ button >
91- ) }
92- />
93- </ div >
94-
92+ < AdminPageShell
93+ title = "Benchmark Control"
94+ description = "Manage stable model families, exact releases, and future cohort lineups."
95+ actions = { (
96+ < button onClick = { handleLogout } className = "btn btn-secondary" >
97+ Logout
98+ </ button >
99+ ) }
100+ >
95101 < AdminResultBanner result = { result } />
96102 < AdminBenchmarkCurrentLineup overview = { overview } />
97103 { rolloverPreview && (
@@ -131,8 +137,6 @@ export default function AdminBenchmarkPageClient() {
131137 onPreviewRollover = { handlePreviewRollover }
132138 />
133139 </ div >
134-
135- < AdminNavigationLinks />
136- </ div >
140+ </ AdminPageShell >
137141 ) ;
138142}
0 commit comments