Zuständigkeit im Frontend anbinden (Karte 04)
CI / backend-tests (push) Successful in 1m13s
CI / frontend-build (push) Successful in 19s

Neuer Admin-Tab "Zuständigkeit": Benutzer materialverantwortlich für Standort
(vererbt sich auf alle Objekte dort) oder einzelnes Objekt zuordnen, Liste,
Entfernen. Backend-Endpunkte (inkl. DELETE) waren bereits vorhanden.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CVgbozhYmuEhiEJHffRXCV
This commit is contained in:
2026-09-04 20:26:47 +02:00
co-authored by Claude Sonnet 5
parent c1f6eaa14c
commit 4c87bf2d84
4 changed files with 293 additions and 1 deletions
+7 -1
View File
@@ -14,6 +14,7 @@ import { ObjektSection } from "./admin/ObjektSection";
import { ObjekttypSection } from "./admin/ObjekttypSection";
import { StandortSection } from "./admin/StandortSection";
import { VorlageSection } from "./admin/VorlageSection";
import { ZustaendigkeitSection } from "./admin/ZustaendigkeitSection";
type Tab =
| "objekte"
@@ -24,7 +25,8 @@ type Tab =
| "benutzer"
| "historie"
| "eskalation"
| "kontrollverantwortung";
| "kontrollverantwortung"
| "zustaendigkeit";
const TABS: { key: Tab; label: string }[] = [
{ key: "objekte", label: "Objekte" },
@@ -33,6 +35,7 @@ const TABS: { key: Tab; label: string }[] = [
{ key: "struktur", label: "Struktur" },
{ key: "standorte", label: "Standorte" },
{ key: "benutzer", label: "Benutzer" },
{ key: "zustaendigkeit", label: "Zuständigkeit" },
{ key: "kontrollverantwortung", label: "Kontrollverantwortung" },
{ key: "historie", label: "Änderungslog" },
{ key: "eskalation", label: "Eskalation" },
@@ -168,6 +171,9 @@ export function AdminPage() {
{tab === "benutzer" && (
<BenutzerSection benutzer={benutzer} onGeaendert={ladeAlles} onFehler={setFehler} />
)}
{tab === "zustaendigkeit" && (
<ZustaendigkeitSection standorte={standorte} objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
)}
{tab === "kontrollverantwortung" && (
<KontrollverantwortungSection objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
)}