From 0819ee153277a20b5bde2d18ef87895b452091a5 Mon Sep 17 00:00:00 2001 From: MBO-Tech-IT Date: Wed, 22 Jul 2026 09:52:04 +0200 Subject: [PATCH] feat: add top 5 blocked threats ranking to FamilyGuard report preview Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01LhY1QhDXGWfyhrxaJvfpNt --- components/FlyerReportPreview.tsx | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/components/FlyerReportPreview.tsx b/components/FlyerReportPreview.tsx index 926a96b..6311b12 100644 --- a/components/FlyerReportPreview.tsx +++ b/components/FlyerReportPreview.tsx @@ -13,6 +13,16 @@ const monthlyData = [ const maxValue = Math.max(...monthlyData.map((d) => d.value)); +const topThreats = [ + { label: "Werbung & Tracker", value: 112 }, + { label: "Erwachseneninhalte", value: 54 }, + { label: "Phishing-Versuche", value: 38 }, + { label: "Schadsoftware-Domains", value: 24 }, + { label: "Social-Media-Tracker", value: 19 }, +]; + +const maxThreatValue = Math.max(...topThreats.map((t) => t.value)); + const stats = [ { value: 247, suffix: "", label: "Blockierte Gefahren (Mär)", accent: "orange" as const }, { value: 6, suffix: "", label: "Geschützte Geräte", accent: "blue" as const }, @@ -141,6 +151,34 @@ export default function FlyerReportPreview() { ))} + + {/* Top 5 Gefahrenkategorien */} +
+

+ Top 5 blockierte Gefahren (Mär) +

+
+ {topThreats.map((t, i) => ( +
+ + {i + 1} + + + {t.label} + +
+
+
+ + {t.value} + +
+ ))} +
+
); }