From b7787f606a7ae6edae4955c1ea056facfd5e7b3d Mon Sep 17 00:00:00 2001 From: SOC Analyst Date: Fri, 20 Mar 2026 10:24:24 +0100 Subject: [PATCH] refactor: remove unused ThreatAlert components from frontend views - Remove dead ThreatAlert component code from BruteForceView, HeaderFingerprintView, MLFeaturesView, and TcpSpoofingView - Clean up unused type definitions and imports Co-authored-by: Qwen-Coder Co-authored-by: Qwen-Coder --- frontend/src/components/BruteForceView.tsx | 8 -------- frontend/src/components/HeaderFingerprintView.tsx | 8 -------- frontend/src/components/MLFeaturesView.tsx | 8 -------- frontend/src/components/TcpSpoofingView.tsx | 8 -------- 4 files changed, 32 deletions(-) diff --git a/frontend/src/components/BruteForceView.tsx b/frontend/src/components/BruteForceView.tsx index 230f467..140fa54 100644 --- a/frontend/src/components/BruteForceView.tsx +++ b/frontend/src/components/BruteForceView.tsx @@ -47,14 +47,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num ); } -: { message: string }) { - return ( -
- ⚠️ {message} -
- ); -} - // ─── Attackers DataTable ───────────────────────────────────────────────────── function AttackersTable({ diff --git a/frontend/src/components/HeaderFingerprintView.tsx b/frontend/src/components/HeaderFingerprintView.tsx index 1cca724..e78474b 100644 --- a/frontend/src/components/HeaderFingerprintView.tsx +++ b/frontend/src/components/HeaderFingerprintView.tsx @@ -66,14 +66,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num ); } -: { message: string }) { - return ( -
- ⚠️ {message} -
- ); -} - // ─── Main Component ─────────────────────────────────────────────────────────── export function HeaderFingerprintView() { diff --git a/frontend/src/components/MLFeaturesView.tsx b/frontend/src/components/MLFeaturesView.tsx index e457abc..81c530e 100644 --- a/frontend/src/components/MLFeaturesView.tsx +++ b/frontend/src/components/MLFeaturesView.tsx @@ -81,14 +81,6 @@ function fuzzingBadgeClass(value: number): string { // ─── Sub-components ─────────────────────────────────────────────────────────── -: { message: string }) { - return ( -
- ⚠️ {message} -
- ); -} - // ─── Radar Chart (SVG octagonal) ───────────────────────────────────────────── const RADAR_AXES = [ diff --git a/frontend/src/components/TcpSpoofingView.tsx b/frontend/src/components/TcpSpoofingView.tsx index 8199ed7..bffbed9 100644 --- a/frontend/src/components/TcpSpoofingView.tsx +++ b/frontend/src/components/TcpSpoofingView.tsx @@ -110,14 +110,6 @@ function StatCard({ label, value, accent }: { label: string; value: string | num ); } -: { message: string }) { - return ( -
- ⚠️ {message} -
- ); -} - // ─── Detections DataTable ───────────────────────────────────────────────────── function TcpDetectionsTable({