ceo-web/src/app/dashboard/layout.tsx
valentinbvro 883ff370cd feat: multi-tenant dashboard shell -- auth, onboarding, organizations, tasks, team
- login page (Supabase email/password sign-in + sign-up)
- onboarding: create first tenant, redirects into /dashboard once a
  membership exists
- dashboard shell: sidebar nav, tenant switcher (x-tenant-id header,
  never in body/query -- matches ceo-api's TenantGuard), sign out
- Organizations, Tasks, and Team (members/RBAC) pages wired to ceo-api
  via a thin apiFetch wrapper that attaches the Supabase bearer token
- executive "paper & ink" design tokens (Tailwind) replacing defaults
- Dockerfile: declare NEXT_PUBLIC_* as build ARGs so Coolify's existing
  build-time env vars actually get inlined (was previously silently
  dropped, which would have crashed prerendering)
2026-07-28 21:16:17 +02:00

8 lines
346 B
TypeScript

import { DashboardShell } from '../../components/dashboard-shell';
// Tot ce e sub /dashboard depinde de sesiunea/tenantul curent -- niciodata prerandat static.
export const dynamic = 'force-dynamic';
export default function DashboardLayout({ children }: { children: React.ReactNode }) {
return <DashboardShell>{children}</DashboardShell>;
}