Files
immich-redaktions-plugin/src/app/redaktion/layout.tsx
T
Leon TonhäuserandClaude 7aeceee078 feat: unify admin dashboard shell, add logout button
Admin used an undefined `.portal-shell` class plus the landing-page `.masthead`
markup, so the layout had no background/min-height and CSS "kackte rein".
Generalize PortalShell to take brand/nav props, switch admin/layout.tsx to it
(dark portal masthead + BrandLogo + admin nav), and pass the editorial nav from
redaktion/layout.tsx so both surfaces share one shell.

Add a LogoutButton client component (Better Auth signOut → hard navigate to
/anmelden) rendered into the masthead.

Style the admin content that had no rules: `.content-section dl/dt/dd` mirrors
`.editorial-section dl` (admin detail page), `.editorial-list` mirrors
`.billing-editorial-list` (Redaktionen index, replacing browser bullets),
`.portal-signout` for the dark masthead. Mobile: meta wraps, dl goes single
column.

Update logo.test.tsx to PortalShell's new required props.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-11 01:54:59 +02:00

23 lines
621 B
TypeScript

import type { ReactNode } from "react";
import { PortalShell } from "@/components/layout/portal-shell";
import { requireEditorial } from "./access";
export default async function EditorialLayout({ children }: Readonly<{ children: ReactNode }>) {
await requireEditorial();
return (
<PortalShell
brandHref="/redaktion/alben"
sectionLabel="Redaktionsarchiv"
nav={[
{ href: "/redaktion/alben", label: "Alben" },
{ href: "/redaktion/nutzungen", label: "Nutzungen" },
{ href: "/redaktion/profil", label: "Profil" },
]}
>
{children}
</PortalShell>
);
}