fix: leftover old severity references (info→routine, filter dropdown)

This commit is contained in:
zvx-echo6 2026-05-13 19:10:18 -06:00
commit 2f0cf520fa
3 changed files with 3 additions and 3 deletions

View file

@ -194,7 +194,7 @@ function AlertHistoryTable({
'packet_flood', 'packet_flood',
] ]
const severities = ['all', 'critical', 'warning', 'watch', 'info'] const severities = ["all", "immediate", "priority", "routine"]
return ( return (
<div className="bg-bg-card border border-border rounded-lg"> <div className="bg-bg-card border border-border rounded-lg">

View file

@ -274,7 +274,7 @@ const RULE_TEMPLATES = [
enabled: true, enabled: true,
trigger_type: "schedule" as const, trigger_type: "schedule" as const,
categories: [] as string[], categories: [] as string[],
min_severity: "info", min_severity: "routine",
schedule_frequency: "daily" as const, schedule_frequency: "daily" as const,
schedule_time: "07:00", schedule_time: "07:00",
schedule_time_2: "", schedule_time_2: "",

2
meshai/env/usgs.py vendored
View file

@ -376,7 +376,7 @@ class USGSStreamsAdapter:
flood_status = "Action Stage" flood_status = "Action Stage"
# Fall back to legacy manual thresholds # Fall back to legacy manual thresholds
if severity == "info": if severity == "routine":
threshold = self._flood_thresholds.get(site_id, {}).get(param_type) threshold = self._flood_thresholds.get(site_id, {}).get(param_type)
if threshold and value > threshold: if threshold and value > threshold:
severity = "priority" severity = "priority"