diff --git a/admin-compliance/app/sdk/compliance-hub/_components/MappingsAndFindings.tsx b/admin-compliance/app/sdk/compliance-hub/_components/MappingsAndFindings.tsx new file mode 100644 index 0000000..1fb5d1a --- /dev/null +++ b/admin-compliance/app/sdk/compliance-hub/_components/MappingsAndFindings.tsx @@ -0,0 +1,91 @@ +'use client' + +import Link from 'next/link' +import { DashboardData, MappingsData, FindingsData } from '../_hooks/useComplianceHub' + +export function MappingsAndFindings({ + dashboard, + mappings, + findings, +}: { + dashboard: DashboardData | null + mappings: MappingsData | null + findings: FindingsData | null +}) { + return ( +
{mappings?.total || 0}
+Mappings gesamt
+Nach Verordnung
++ Automatisch generierte Verknuepfungen zwischen {dashboard?.total_controls || 0} Controls + und {dashboard?.total_requirements || 0} Anforderungen aus {dashboard?.total_regulations || 0} Verordnungen. +
+{findings?.open_majors || 0}
+offen (blockiert Zertifizierung)
+{findings?.open_minors || 0}
+offen (erfordert CAPA)
+Audit Checkliste
+{dashboard?.total_requirements || '...'} Anforderungen
+ + + +Controls
+{dashboard?.total_controls || '...'} Massnahmen
+ + + +Evidence
+Nachweise
+ + + +Risk Matrix
+5x5 Risiken
+ + + +Service Registry
+Module
+ + + +Audit Report
+PDF Export
+ +| Code | +Name | +Typ | +Anforderungen | +
|---|---|---|---|
| + {reg.code} + | +
+ {reg.name} + |
+ + + {reg.regulation_type === 'eu_regulation' ? 'EU-VO' : + reg.regulation_type === 'eu_directive' ? 'EU-RL' : + reg.regulation_type === 'bsi_standard' ? 'BSI' : + reg.regulation_type === 'de_law' ? 'DE' : reg.regulation_type} + + | ++ {reg.requirement_count} + | +
+ {dashboard?.controls_by_status?.pass || 0} von {dashboard?.total_controls || 0} Controls bestanden +
+Verordnungen
+{dashboard?.total_regulations || 0}
+{dashboard?.total_requirements || 0} Anforderungen
+Controls
+{dashboard?.total_controls || 0}
+{dashboard?.controls_by_status?.pass || 0} bestanden
+Nachweise
+{dashboard?.total_evidence || 0}
+{dashboard?.evidence_by_status?.valid || 0} aktiv
+Risiken
+{dashboard?.total_risks || 0}
++ {(dashboard?.risks_by_level?.high || 0) + (dashboard?.risks_by_level?.critical || 0)} kritisch +
+Audit Checkliste
-{dashboard?.total_requirements || '...'} Anforderungen
- - - -Controls
-{dashboard?.total_controls || '...'} Massnahmen
- - - -Evidence
-Nachweise
- - - -Risk Matrix
-5x5 Risiken
- - - -Service Registry
-Module
- - - -Audit Report
-PDF Export
- -- {dashboard?.controls_by_status?.pass || 0} von {dashboard?.total_controls || 0} Controls bestanden -
-Verordnungen
-{dashboard?.total_regulations || 0}
-{dashboard?.total_requirements || 0} Anforderungen
-Controls
-{dashboard?.total_controls || 0}
-{dashboard?.controls_by_status?.pass || 0} bestanden
-Nachweise
-{dashboard?.total_evidence || 0}
-{dashboard?.evidence_by_status?.valid || 0} aktiv
-Risiken
-{dashboard?.total_risks || 0}
-- {(dashboard?.risks_by_level?.high || 0) + (dashboard?.risks_by_level?.critical || 0)} kritisch -
-{mappings?.total || 0}
-Mappings gesamt
-Nach Verordnung
-- Automatisch generierte Verknuepfungen zwischen {dashboard?.total_controls || 0} Controls - und {dashboard?.total_requirements || 0} Anforderungen aus {dashboard?.total_regulations || 0} Verordnungen. -
-{findings?.open_majors || 0}
-offen (blockiert Zertifizierung)
-{findings?.open_minors || 0}
-offen (erfordert CAPA)
-| Code | -Name | -Typ | -Anforderungen | -
|---|---|---|---|
| - {reg.code} - | -
- {reg.name} - |
- - - {reg.regulation_type === 'eu_regulation' ? 'EU-VO' : - reg.regulation_type === 'eu_directive' ? 'EU-RL' : - reg.regulation_type === 'bsi_standard' ? 'BSI' : - reg.regulation_type === 'de_law' ? 'DE' : reg.regulation_type} - - | -- {reg.requirement_count} - | -
+ {bannerTexts.description} +
+{category.description}
+| Cookie | +Anbieter | +Zweck | +Ablauf | +
|---|---|---|---|
| {cookie.name} | +{cookie.provider} | +{cookie.purpose} | +{cookie.expiry} | +
- {bannerTexts.description} -
-{category.description}
-| Cookie | -Anbieter | -Zweck | -Ablauf | -
|---|---|---|---|
| {cookie.name} | -{cookie.provider} | -{cookie.purpose} | -{cookie.expiry} | -
+ {DSR_TYPE_INFO[selectedType].description} +
+- {DSR_TYPE_INFO[selectedType].description} -
-