From c284cefadaa98d03b17eb3d83f3d0bb5cd3fc7e0 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Mon, 4 May 2026 22:21:12 +0200 Subject: [PATCH] refactor: Remove Modules step, add Regulations card to Dashboard - Modules step deleted from sdk-steps.ts and SDK Flow (regulations are now shown in Scope-Decision tab with toggles) - Dashboard: "Erkannte Regulierungen" card shows which regulations apply based on Scope-Profiling (DSGVO, AI Act, NIS2, HinSchG) - Dashboard: Amber warning if Scope-Profiling not yet completed - Link to Scope-Decision tab for details & customization Co-Authored-By: Claude Opus 4.6 (1M context) --- admin-compliance/app/sdk/page.tsx | 57 +++++++++++++++++++ .../app/sdk/sdk-flow/steps-vorbereitung.ts | 22 +------ admin-compliance/lib/sdk/types/sdk-steps.ts | 14 +---- 3 files changed, 59 insertions(+), 34 deletions(-) diff --git a/admin-compliance/app/sdk/page.tsx b/admin-compliance/app/sdk/page.tsx index 94e19e4..05e635b 100644 --- a/admin-compliance/app/sdk/page.tsx +++ b/admin-compliance/app/sdk/page.tsx @@ -141,6 +141,63 @@ export default function SDKDashboard() { {/* Industry Presets with Document Preview */} + {/* Applicable Regulations Card */} + {state.complianceScope?.decision && ( +
+
+
+
+ + + +
+
+

Erkannte Regulierungen

+

Basierend auf Ihrem Scope-Profiling (Level {state.complianceScope.decision.level})

+
+
+ + Details & Anpassen + +
+
+ {(state.complianceScope.decision.requiredDocuments || []).length > 0 ? ( + ['DSGVO', 'AI Act', 'NIS2', 'HinSchG', 'TTDSG'].filter(reg => { + const docs = state.complianceScope?.decision?.requiredDocuments || [] + const triggers = state.complianceScope?.decision?.hardTriggers || [] + if (reg === 'DSGVO') return true + if (reg === 'AI Act') return triggers.some((t: string) => t.toLowerCase().includes('ai') || t.toLowerCase().includes('ki')) + if (reg === 'NIS2') return triggers.some((t: string) => t.toLowerCase().includes('nis') || t.toLowerCase().includes('kritisch')) + if (reg === 'HinSchG') return triggers.some((t: string) => t.toLowerCase().includes('whistleblower') || t.toLowerCase().includes('hinweis')) + return false + }).map(reg => ( + + {reg} + + )) + ) : ( + DSGVO + )} +
+
+ )} + {!state.complianceScope?.decision && ( +
+
+ + + +
+
+

Scope-Profiling noch nicht abgeschlossen

+

+ Fuehren Sie das Scope-Profiling durch um zu erfahren welche Regulierungen fuer Ihr Unternehmen gelten. +

+
+
+ )} + {/* Stats Grid */}