From 2f0cf520fa0052f132aae00a98c27f1ef4ea65cd Mon Sep 17 00:00:00 2001 From: zvx-echo6 Date: Wed, 13 May 2026 19:10:18 -0600 Subject: [PATCH] =?UTF-8?q?fix:=20leftover=20old=20severity=20references?= =?UTF-8?q?=20(info=E2=86=92routine,=20filter=20dropdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard-frontend/src/pages/Alerts.tsx | 2 +- dashboard-frontend/src/pages/Notifications.tsx | 2 +- meshai/env/usgs.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard-frontend/src/pages/Alerts.tsx b/dashboard-frontend/src/pages/Alerts.tsx index b1d5e37..e6faa5c 100644 --- a/dashboard-frontend/src/pages/Alerts.tsx +++ b/dashboard-frontend/src/pages/Alerts.tsx @@ -194,7 +194,7 @@ function AlertHistoryTable({ 'packet_flood', ] - const severities = ['all', 'critical', 'warning', 'watch', 'info'] + const severities = ["all", "immediate", "priority", "routine"] return (
diff --git a/dashboard-frontend/src/pages/Notifications.tsx b/dashboard-frontend/src/pages/Notifications.tsx index 8cfb6cd..5556d55 100644 --- a/dashboard-frontend/src/pages/Notifications.tsx +++ b/dashboard-frontend/src/pages/Notifications.tsx @@ -274,7 +274,7 @@ const RULE_TEMPLATES = [ enabled: true, trigger_type: "schedule" as const, categories: [] as string[], - min_severity: "info", + min_severity: "routine", schedule_frequency: "daily" as const, schedule_time: "07:00", schedule_time_2: "", diff --git a/meshai/env/usgs.py b/meshai/env/usgs.py index fe9be6b..cb7d7f6 100644 --- a/meshai/env/usgs.py +++ b/meshai/env/usgs.py @@ -376,7 +376,7 @@ class USGSStreamsAdapter: flood_status = "Action Stage" # Fall back to legacy manual thresholds - if severity == "info": + if severity == "routine": threshold = self._flood_thresholds.get(site_id, {}).get(param_type) if threshold and value > threshold: severity = "priority"