Files
immich-redaktions-plugin/src/app/admin/layout.tsx
T
Leon Tonhäuser 0931ffc777 feat: add admin albums tab with access overview and bulk grants
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.
2026-09-01 17:17:02 +02:00

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>
);
}