'use client' /** * Compliance Hub Page (SDK Version - Zusatzmodul) * * Central compliance management dashboard with tabs: * - Uebersicht: Score, Stats, Quick Access, Findings * - Roadmap: 4-column Kanban (Quick Wins / Must Have / Should Have / Nice to Have) * - Module: Grid with module cards + progress bars * - Trend: Score history chart * - Traceability: Evidence traceability matrix */ import { useComplianceHub } from './_hooks/useComplianceHub' import { OverviewTab } from './_components/OverviewTab' import { RoadmapTab } from './_components/RoadmapTab' import { ModulesTab } from './_components/ModulesTab' import { TrendTab } from './_components/TrendTab' import { TraceabilityTab } from './_components/TraceabilityTab' import type { TabKey } from './_components/types' const tabs: { key: TabKey; label: string }[] = [ { key: 'overview', label: 'Uebersicht' }, { key: 'roadmap', label: 'Roadmap' }, { key: 'modules', label: 'Module' }, { key: 'trend', label: 'Trend' }, { key: 'traceability', label: 'Traceability' }, ] export default function ComplianceHubPage() { const hub = useComplianceHub() const score = hub.dashboard?.compliance_score || 0 const scoreColor = score >= 80 ? 'text-green-600' : score >= 60 ? 'text-yellow-600' : 'text-red-600' const scoreBgColor = score >= 80 ? 'bg-green-500' : score >= 60 ? 'bg-yellow-500' : 'bg-red-500' return (
{/* Title Card */}

Compliance Hub

Zentrale Verwaltung aller Compliance-Anforderungen nach DSGVO, AI Act, BSI TR-03161 und weiteren Regulierungen.

{/* Tabs */}
{tabs.map(tab => ( ))}
{/* Error Banner */} {hub.error && (
{hub.error}
)} {/* Seed Button if no data */} {!hub.loading && (hub.dashboard?.total_controls || 0) === 0 && (

Keine Compliance-Daten vorhanden

Initialisieren Sie die Datenbank mit den Seed-Daten.

)} {hub.loading ? (
) : ( <> {hub.activeTab === 'overview' && ( )} {hub.activeTab === 'roadmap' && ( )} {hub.activeTab === 'modules' && ( )} {hub.activeTab === 'trend' && ( )} {hub.activeTab === 'traceability' && ( )} )}
) }