L2 Aufträge & Backoffice: Einzeiler Navigation, Header-Suche, Audit-Entity-Labels

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-14 12:30:44 +02:00
co-authored by Claude Opus 5
parent b96016d593
commit b49d14bab3
5 changed files with 9 additions and 2 deletions
+1
View File
@@ -7,6 +7,7 @@
"teams": "Teams",
"reports": "Berichte",
"documents": "Dokumente",
"templates": "Auftragsvorlagen",
"settings": "Einstellungen",
"admin": "Admin-Konsole"
}
+1
View File
@@ -7,6 +7,7 @@
"teams": "Teams",
"reports": "Reports",
"documents": "Documents",
"templates": "Order templates",
"settings": "Settings",
"admin": "Admin console"
}
+1 -2
View File
@@ -133,8 +133,7 @@ export default async function AppLayout({
<div className="flex min-w-0 flex-1 flex-col">
<header className="sticky top-0 z-10 flex items-center gap-4 border-b bg-[var(--panel)] px-6 py-2.5 backdrop-blur-md">
{/* TODO(craftvia): globale Suche (Aufträge/Kunden/Objekte) — Andockpunkt für die Fachmodule. */}
<div className="flex-1" />
<form action="/search" role="search" className="flex-1"><input type="search" name="q" aria-label={tc("search")} placeholder={tc("search")} className="h-10 w-full max-w-md rounded-lg border border-input bg-background px-3 text-sm" /></form>
<UiLocaleSwitcher current={identity.uiLocale} />
<Link href="/account" className="flex items-center gap-3">
<div className="text-right leading-tight">
+4
View File
@@ -66,6 +66,10 @@ const ENTITY_LABEL: Record<string, string> = {
report: "Bericht",
emergency: "Notdienst",
document: "Dokument",
order_type: "Auftragsart",
checklist_template: "Checklisten-Vorlage",
number_sequence: "Nummernkreis",
sync_operation: "Sync-Vorgang",
};
const fmt = new Intl.DateTimeFormat("de-DE", { dateStyle: "medium", timeStyle: "short" });
+2
View File
@@ -8,6 +8,7 @@ import {
FileText,
FolderOpen,
Settings,
ListChecks,
type LucideIcon,
} from "lucide-react";
import type { ModuleKey } from "@/lib/modules";
@@ -49,6 +50,7 @@ export const NAV_ITEMS: readonly NavItem[] = [
{ href: "/teams", label: "teams", icon: UsersRound, module: "teams", permissions: ["team:read"], section: "main" },
{ href: "/reports", label: "reports", icon: FileText, module: "reports", permissions: ["report:read"], section: "main" },
{ href: "/documents", label: "documents", icon: FolderOpen, module: "documents", permissions: ["document:read"], section: "main" },
{ href: "/settings/order-types", label: "templates", icon: ListChecks, permissions: ["settings:templates"], section: "admin" },
{ href: "/settings", label: "settings", icon: Settings, permissions: ["tenant:manage"], section: "admin" },
];