diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 4155bb7..379c752 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -21,6 +21,8 @@ import { HeaderFingerprintView } from './components/HeaderFingerprintView'; import { MLFeaturesView } from './components/MLFeaturesView'; import ClusteringView from './components/ClusteringView'; import { useTheme } from './ThemeContext'; +import { Tooltip } from './components/ui/Tooltip'; +import { TIPS } from './components/ui/tooltips'; // ─── Types ──────────────────────────────────────────────────────────────────── @@ -144,19 +146,29 @@ function Sidebar({ counts }: { counts: AlertCounts | null }) { {/* Alert stats */} {counts && (
-
Alertes 24h
+ +
+ Alertes 24h ⓘ +
+
{counts.critical > 0 && (
- CRITICAL + + CRITICAL + {counts.critical}
)}
- HIGH + + HIGH + {counts.high}
- MEDIUM + + MEDIUM + {counts.medium}
diff --git a/frontend/src/components/ClusteringView.tsx b/frontend/src/components/ClusteringView.tsx index fdf2e93..e6010d2 100644 --- a/frontend/src/components/ClusteringView.tsx +++ b/frontend/src/components/ClusteringView.tsx @@ -14,6 +14,8 @@ import DeckGL from '@deck.gl/react'; import { OrthographicView } from '@deck.gl/core'; import { ScatterplotLayer, PolygonLayer, TextLayer, LineLayer } from '@deck.gl/layers'; import { RadarChart, PolarGrid, PolarAngleAxis, Radar, ResponsiveContainer, Tooltip } from 'recharts'; +import { InfoTip } from './ui/Tooltip'; +import { TIPS } from './ui/tooltips'; import axios from 'axios'; // ─── Types ──────────────────────────────────────────────────────────────────── @@ -359,10 +361,13 @@ export default function ClusteringView() { {/* Sensibilité */}
- Sensibilité + + Sensibilité + + {sensitivity <= 0.5 ? 'Grossière' : sensitivity <= 1.0 ? 'Normale' : sensitivity <= 2.0 ? 'Fine' : sensitivity <= 3.5 ? 'Très fine' : sensitivity <= 4.5 ? 'Maximale' : 'Extrême'} - {' '}({Math.round(k * sensitivity)} clusters effectifs) + {' '}({Math.round(k * sensitivity)} clusters effectifs)
Paramètres avancés