Kontrollverantwortung im Frontend anbinden (Karte 01)
CI / backend-tests (push) Successful in 1m14s
CI / frontend-build (push) Successful in 23s

Backend: DELETE /kontrollverantwortung/{id} ergänzt (fehlte bisher). Frontend:
neuer Admin-Tab "Kontrollverantwortung" - Objekt + Benutzer/Gruppe zuordnen,
Liste, Entfernen. Reine Sichtbarkeit/Priorisierung, keine Pflichtkontrolle.

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:22:32 +02:00
co-authored by Claude Sonnet 5
parent fbae3fccc7
commit c1f6eaa14c
7 changed files with 318 additions and 1 deletions
+7 -1
View File
@@ -8,6 +8,7 @@ import { EskalationSection } from "./admin/EskalationSection";
import { FachSection } from "./admin/FachSection";
import { HistorieSection } from "./admin/HistorieSection";
import { KategorieSection } from "./admin/KategorieSection";
import { KontrollverantwortungSection } from "./admin/KontrollverantwortungSection";
import { MaterialSection } from "./admin/MaterialSection";
import { ObjektSection } from "./admin/ObjektSection";
import { ObjekttypSection } from "./admin/ObjekttypSection";
@@ -22,7 +23,8 @@ type Tab =
| "standorte"
| "benutzer"
| "historie"
| "eskalation";
| "eskalation"
| "kontrollverantwortung";
const TABS: { key: Tab; label: string }[] = [
{ key: "objekte", label: "Objekte" },
@@ -31,6 +33,7 @@ const TABS: { key: Tab; label: string }[] = [
{ key: "struktur", label: "Struktur" },
{ key: "standorte", label: "Standorte" },
{ key: "benutzer", label: "Benutzer" },
{ key: "kontrollverantwortung", label: "Kontrollverantwortung" },
{ key: "historie", label: "Änderungslog" },
{ key: "eskalation", label: "Eskalation" },
];
@@ -165,6 +168,9 @@ export function AdminPage() {
{tab === "benutzer" && (
<BenutzerSection benutzer={benutzer} onGeaendert={ladeAlles} onFehler={setFehler} />
)}
{tab === "kontrollverantwortung" && (
<KontrollverantwortungSection objekte={objekte} benutzer={benutzer} onFehler={setFehler} />
)}
{tab === "historie" && <HistorieSection onFehler={setFehler} />}
{tab === "eskalation" && <EskalationSection onFehler={setFehler} />}
</main>