2026-02-14 15:26:42 +01:00
|
|
|
import type { Metadata } from 'next'
|
|
|
|
|
import './globals.css'
|
|
|
|
|
import { Providers } from './providers'
|
|
|
|
|
import { Toaster } from 'sonner'
|
feat: impersonation system, semi-finalist detail page, tRPC resilience
- Add super-admin impersonation: "Login As" from user list, red banner
with "Return to Admin", audit logged start/end, nested impersonation
blocked, onboarding gate skipped during impersonation
- Fix semi-finalist stats: check latest terminal state (not any PASSED),
use passwordHash OR status=ACTIVE for activation check
- Add /admin/semi-finalists detail page with search, category/status filters
- Add account_reminder_days setting to notifications tab
- Add tRPC resilience: retry on 503/HTML responses, custom fetch detects
nginx error pages, exponential backoff (2s/4s/8s)
- Reduce dashboard polling intervals (60s stats, 30s activity, 120s semi)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 17:55:44 +01:00
|
|
|
import { ImpersonationBanner } from '@/components/shared/impersonation-banner'
|
2026-02-14 15:26:42 +01:00
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: {
|
|
|
|
|
default: 'MOPC Platform',
|
|
|
|
|
template: '%s | MOPC',
|
|
|
|
|
},
|
|
|
|
|
description: 'Monaco Ocean Protection Challenge - Jury Voting Platform',
|
|
|
|
|
icons: {
|
|
|
|
|
icon: '/images/MOPC-blue-small.png',
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode
|
|
|
|
|
}>) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en" suppressHydrationWarning>
|
|
|
|
|
<body className="min-h-screen bg-background font-sans antialiased">
|
feat: impersonation system, semi-finalist detail page, tRPC resilience
- Add super-admin impersonation: "Login As" from user list, red banner
with "Return to Admin", audit logged start/end, nested impersonation
blocked, onboarding gate skipped during impersonation
- Fix semi-finalist stats: check latest terminal state (not any PASSED),
use passwordHash OR status=ACTIVE for activation check
- Add /admin/semi-finalists detail page with search, category/status filters
- Add account_reminder_days setting to notifications tab
- Add tRPC resilience: retry on 503/HTML responses, custom fetch detects
nginx error pages, exponential backoff (2s/4s/8s)
- Reduce dashboard polling intervals (60s stats, 30s activity, 120s semi)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 17:55:44 +01:00
|
|
|
<Providers>
|
|
|
|
|
<ImpersonationBanner />
|
|
|
|
|
{children}
|
|
|
|
|
</Providers>
|
2026-02-14 15:26:42 +01:00
|
|
|
<Toaster
|
|
|
|
|
position="top-right"
|
|
|
|
|
toastOptions={{
|
|
|
|
|
style: {
|
|
|
|
|
background: 'hsl(var(--background))',
|
|
|
|
|
color: 'hsl(var(--foreground))',
|
|
|
|
|
border: '1px solid hsl(var(--border))',
|
|
|
|
|
},
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
)
|
|
|
|
|
}
|