From f3751a4efa1aceab6dd8504d2808a13814ab50fe Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Tue, 12 May 2026 00:19:51 +0200 Subject: [PATCH] feat(compliance-check): show business profile + banner check result in UI Add two info boxes above the checklist results: - Business profile (B2B/B2C, industry, regulated profession) - Banner check status (CMP detected, violations count, cross-check hint) Co-Authored-By: Claude Opus 4.6 (1M context) --- .../agent/_components/ComplianceCheckTab.tsx | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx b/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx index 4d5bb5f..3e04e2d 100644 --- a/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx +++ b/admin-compliance/app/sdk/agent/_components/ComplianceCheckTab.tsx @@ -307,6 +307,52 @@ export function ComplianceCheckTab() { {/* Results */} {results && results.results && (
+ {/* Business Profile */} + {results.business_profile && ( +
+
Erkanntes Geschaeftsmodell
+
+ Typ: {results.business_profile.business_type?.toUpperCase()} + Branche: {results.business_profile.industry} + {results.business_profile.has_online_shop && Online-Shop} + {results.business_profile.is_regulated_profession && Regulierter Beruf ({results.business_profile.regulated_profession_type})} +
+
+ )} + + {/* Banner Check Result */} + {results.banner_result && ( +
0 + ? 'bg-amber-50 border-amber-200' + : results.banner_result.detected + ? 'bg-green-50 border-green-200' + : 'bg-gray-50 border-gray-200' + }`}> +
+ 0 ? 'bg-amber-500' + : results.banner_result.detected ? 'bg-green-500' : 'bg-gray-400' + }`} /> + + Cookie-Banner-Check (automatisch) + +
+
+ {results.banner_result.detected ? ( + <> + Banner erkannt{results.banner_result.provider ? ` (${results.banner_result.provider})` : ''}. + {results.banner_result.violations > 0 + ? ` ${results.banner_result.violations} Auffaelligkeit${results.banner_result.violations !== 1 ? 'en' : ''} gefunden — Cross-Check-Ergebnisse sind in der Cookie-Richtlinie-Checkliste enthalten.` + : ' Keine Auffaelligkeiten beim Banner-Cookie-Abgleich.'} + + ) : ( + 'Kein Cookie-Banner erkannt oder Banner-Check nicht moeglich.' + )} +
+
+ )} + {/* Email status */}