New /admin/alben page: all Immich albums with per-album editorial grant chips (link + one-click revoke) and a bulk-grant form (multiple albums x multiple editorials, select-all, search). bulkGrantAlbums validates album existence once via listAlbums, skips already-active pairs, and commits each pair in its own transaction with full audit attribution.
27 lines
731 B
TypeScript
27 lines
731 B
TypeScript
import type { ReactNode } from "react";
|
|
|
|
import { PortalShell } from "@/components/layout/portal-shell";
|
|
|
|
import { requireAdminPage } from "./access";
|
|
|
|
export default async function AdminLayout({ children }: Readonly<{ children: ReactNode }>) {
|
|
await requireAdminPage();
|
|
|
|
return (
|
|
<PortalShell
|
|
brandHref="/admin"
|
|
sectionLabel="Administration"
|
|
nav={[
|
|
{ href: "/admin", label: "Dashboard" },
|
|
{ href: "/admin/redaktionen", label: "Redaktionen" },
|
|
{ href: "/admin/alben", label: "Alben" },
|
|
{ href: "/admin/abrechnungen", label: "Abrechnungen" },
|
|
{ href: "/admin/audit", label: "Audit" },
|
|
]}
|
|
mainClassName=""
|
|
>
|
|
{children}
|
|
</PortalShell>
|
|
);
|
|
}
|