3451bced82
Fixes the A4 blocker: /api/dev/complete now establishes the Auth.js session. Root cause was UntrustedHost (trustHost defaulted false in pnpm start / production because setEnvDefaults derives it from AUTH_URL, not NEXTAUTH_URL, and assertConfig checks it before that default applies). Added trustHost: true to the auth config; rebuilt. Complete response now sets authjs.session-token, /schedule returns 200, and all 4 e2e shell tests pass. Also ignores test-results/ artifacts.
38 lines
1.3 KiB
TypeScript
38 lines
1.3 KiB
TypeScript
import { NavTabs, NavRail } from "./nav";
|
|
|
|
/**
|
|
* App shell: sticky header (app title + mobile tab bar), desktop side rail,
|
|
* scrollable main, and a footer. Wraps every authenticated page. Pure layout —
|
|
* no data, no auth — so the auth guard lives in the route group that uses it.
|
|
*/
|
|
export function AppLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<div className="flex min-h-screen flex-col bg-background text-foreground">
|
|
<header className="sticky top-0 z-20 border-b bg-background">
|
|
<div className="flex h-14 items-center px-4">
|
|
<span className="text-base font-semibold tracking-tight">Media Team Hub</span>
|
|
</div>
|
|
<NavTabs className="md:hidden" />
|
|
</header>
|
|
|
|
<div className="flex flex-1">
|
|
<aside className="hidden md:block md:w-64 md:shrink-0">
|
|
<NavRail />
|
|
</aside>
|
|
|
|
<main className="flex min-w-0 flex-1">
|
|
<div className="flex w-full flex-1 flex-col p-4 md:p-8">
|
|
{children}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<footer className="border-t bg-muted/40">
|
|
<div className="flex h-12 items-center px-4">
|
|
<p className="text-xs text-muted-foreground">Media Team Hub</p>
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
);
|
|
}
|