'use client' /** * DSMS (Data Protection Management System) Admin Page * * Central hub for data protection compliance management */ import AdminLayout from '@/components/admin/AdminLayout' import Link from 'next/link' interface ComplianceModule { id: string title: string description: string status: 'active' | 'pending' | 'inactive' href?: string items: { name: string status: 'complete' | 'in_progress' | 'pending' lastUpdated?: string }[] } export default function DSMSPage() { const modules: ComplianceModule[] = [ { id: 'legal-docs', title: 'Rechtliche Dokumente', description: 'AGB, Datenschutzerklärung, Cookie-Richtlinie', status: 'active', href: '/admin/consent', items: [ { name: 'AGB', status: 'complete', lastUpdated: '2024-12-01' }, { name: 'Datenschutzerklärung', status: 'complete', lastUpdated: '2024-12-01' }, { name: 'Cookie-Richtlinie', status: 'complete', lastUpdated: '2024-12-01' }, { name: 'Impressum', status: 'complete', lastUpdated: '2024-12-01' }, ], }, { id: 'dsr', title: 'Betroffenenanfragen (DSR)', description: 'Art. 15-21 DSGVO Anfragen-Management', status: 'active', href: '/admin/dsr', items: [ { name: 'Auskunftsprozess (Art. 15)', status: 'complete' }, { name: 'Berichtigung (Art. 16)', status: 'complete' }, { name: 'Löschung (Art. 17)', status: 'complete' }, { name: 'Datenübertragbarkeit (Art. 20)', status: 'complete' }, ], }, { id: 'consent', title: 'Einwilligungsverwaltung', description: 'Consent-Tracking und -Nachweis', status: 'active', href: '/admin/consent', items: [ { name: 'Consent-Datenbank', status: 'complete' }, { name: 'Widerrufsprozess', status: 'complete' }, { name: 'Audit-Trail', status: 'complete' }, { name: 'Export-Funktion', status: 'complete' }, ], }, { id: 'tom', title: 'Technische & Organisatorische Maßnahmen', description: 'Art. 32 DSGVO Sicherheitsmaßnahmen', status: 'active', items: [ { name: 'Verschlüsselung (TLS/Ruhe)', status: 'complete' }, { name: 'Zugriffskontrolle', status: 'complete' }, { name: 'Backup & Recovery', status: 'in_progress' }, { name: 'Logging & Monitoring', status: 'complete' }, ], }, { id: 'vvt', title: 'Verarbeitungsverzeichnis', description: 'Art. 30 DSGVO Dokumentation', status: 'pending', items: [ { name: 'Verarbeitungstätigkeiten', status: 'pending' }, { name: 'Rechtsgrundlagen', status: 'pending' }, { name: 'Löschfristen', status: 'in_progress' }, { name: 'Auftragsverarbeiter', status: 'pending' }, ], }, { id: 'dpia', title: 'Datenschutz-Folgenabschätzung', description: 'Art. 35 DSGVO Risikoanalyse', status: 'pending', items: [ { name: 'KI-Verarbeitung', status: 'pending' }, { name: 'Profiling-Risiken', status: 'pending' }, { name: 'Automatisierte Entscheidungen', status: 'pending' }, ], }, ] // Get status badge const getStatusBadge = (status: string) => { switch (status) { case 'active': case 'complete': return Aktiv case 'in_progress': return In Arbeit case 'pending': case 'inactive': return Ausstehend default: return null } } // Calculate overall compliance score const calculateScore = () => { let complete = 0 let total = 0 modules.forEach((m) => { m.items.forEach((item) => { total++ if (item.status === 'complete') complete++ }) }) return Math.round((complete / total) * 100) } const complianceScore = calculateScore() return ( {/* Compliance Score */}

DSGVO-Compliance Score

Gesamtfortschritt der Datenschutz-Maßnahmen

= 80 ? 'text-green-600' : complianceScore >= 50 ? 'text-yellow-600' : 'text-red-600'}`}> {complianceScore}%
Compliance
= 80 ? 'bg-green-500' : complianceScore >= 50 ? 'bg-yellow-500' : 'bg-red-500'}`} style={{ width: `${complianceScore}%` }} />
{/* Quick Actions */}
DSR bearbeiten
Anfragen verwalten
Consents
Einwilligungen prüfen
{/* Compliance Modules */}

Compliance-Module

{modules.map((module) => (

{module.title}

{module.description}

{getStatusBadge(module.status)}
    {module.items.map((item, idx) => (
  • {item.status === 'complete' ? ( ) : item.status === 'in_progress' ? ( ) : ( )} {item.name}
    {item.lastUpdated && ( {item.lastUpdated} )}
  • ))}
{module.href && ( Verwalten → )}
))}
{/* GDPR Rights Overview */}

DSGVO Betroffenenrechte (Art. 12-22)

Art. 15
Auskunftsrecht
Art. 16
Recht auf Berichtigung
Art. 17
Recht auf Löschung
Art. 18
Recht auf Einschränkung
Art. 19
Mitteilungspflicht
Art. 20
Datenübertragbarkeit
Art. 21
Widerspruchsrecht
Art. 22
Automatisierte Entscheidungen
) }