fix: correct CampaignsView, analysis.py IPv4 split, entities date filter

- CampaignsView: update ClusterData interface to match real API response
  (severity/unique_ips/score instead of threat_level/total_ips/confidence_range)
  Fix fetch to use data.items, rewrite ClusterCard and BehavioralTab
  Remove unused getClassificationColor and THREAT_ORDER constants
- analysis.py: fix IPv4Address object has no attribute 'split' on line 322
  Add str() conversion before calling .split('.')
- entities.py: fix Date vs DateTime comparison — log_date is a Date column,
  comparing against now()-INTERVAL HOUR caused yesterday's entries to be excluded
  Use toDate(now() - INTERVAL X HOUR) for correct Date-level comparison

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
SOC Analyst
2026-03-15 23:10:35 +01:00
parent 8d35b91642
commit 1455e04303
50 changed files with 5442 additions and 7325 deletions

View File

@ -7,34 +7,34 @@ export default {
theme: {
extend: {
colors: {
// Thème sombre Security Dashboard
// Backgrounds — CSS-variable driven for dark/light theming
background: {
DEFAULT: '#0F172A', // Slate 900
secondary: '#1E293B', // Slate 800
card: '#334155', // Slate 700
DEFAULT: 'rgb(var(--color-bg) / <alpha-value>)',
secondary: 'rgb(var(--color-bg-secondary) / <alpha-value>)',
card: 'rgb(var(--color-bg-card) / <alpha-value>)',
},
text: {
primary: '#F8FAFC', // Slate 50
secondary: '#94A3B8', // Slate 400
disabled: '#64748B', // Slate 500
primary: 'rgb(var(--color-text-primary) / <alpha-value>)',
secondary: 'rgb(var(--color-text-secondary)/ <alpha-value>)',
disabled: 'rgb(var(--color-text-disabled) / <alpha-value>)',
},
// Menaces
// Threat levels — vivid, same in both themes
threat: {
critical: '#EF4444', // Red 500
critical: '#EF4444',
critical_bg: '#7F1D1D',
high: '#F97316', // Orange 500
high_bg: '#7C2D12',
medium: '#EAB308', // Yellow 500
medium_bg: '#713F12',
low: '#22C55E', // Green 500
low_bg: '#14532D',
high: '#F97316',
high_bg: '#7C2D12',
medium: '#EAB308',
medium_bg: '#713F12',
low: '#22C55E',
low_bg: '#14532D',
},
// Accents
accent: {
primary: '#3B82F6', // Blue 500
success: '#10B981', // Emerald 500
}
}
primary: '#3B82F6',
success: '#10B981',
},
},
},
},
plugins: [],