From ec661ee079e78d23a93bc43182ba5210a0e32b17 Mon Sep 17 00:00:00 2001 From: serversdown Date: Mon, 11 May 2026 19:36:38 +0000 Subject: [PATCH] refactor(sfm): drop ACH/monitor/live-device UI; scope SFM tab to watcher-forwarded events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /sfm page was originally designed around a Python ACH-server replacement that would land call-home sessions, monitor-log intervals, and live-device control alongside triggered events. That work is paused — deployment uses Blastware's official ACH server and series3- watcher forwards events to SFM's /db/import/blastware_file. The sessions/monitor-log/live-device surfaces have no path to populate under this architecture and were rendering 0/0 everywhere. Removed (UI only — SFM backend untouched): - KPI tiles "Monitor Intervals" + "ACH Sessions" (always 0 under watcher-forward pipeline) - Tabs Monitor Log / ACH Sessions / Live Device + their loaders - Units card columns total_monitor_entries + total_sessions - Orphaned helpers fmtDuration / fmtBytes - Live-device state vars + status poll timer - Subtitle and empty-state copy updated to match reality - Sidebar: "SFM Live Data" -> "SFM Events" SFM-side code (ach_sessions/monitor_log tables, /db/sessions, /db/monitor_log, /device/* endpoints, protocol RE library) is preserved intact — re-surfacing the tabs later is a UI-only revert. backend/routers/sfm.py catch-all proxy unchanged. Co-Authored-By: Claude Opus 4.7 --- templates/base.html | 2 +- templates/sfm.html | 657 +------------------------------------------- 2 files changed, 8 insertions(+), 651 deletions(-) diff --git a/templates/base.html b/templates/base.html index 5cf5e81..4385b0e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -126,7 +126,7 @@ - SFM Live Data + SFM Events diff --git a/templates/sfm.html b/templates/sfm.html index e55e0c3..770eacb 100644 --- a/templates/sfm.html +++ b/templates/sfm.html @@ -6,7 +6,7 @@

SFM Event Data

-

Live device control and ACH event database

+

Blastware ACH events forwarded by series3-watcher

@@ -19,7 +19,7 @@
-
+
Known Units @@ -28,14 +28,6 @@ Total Events
-
- Monitor Intervals - -
-
- ACH Sessions - -
@@ -50,18 +42,6 @@ class="sfm-tab shrink-0 px-6 py-4 text-sm font-medium border-b-2 transition-colors"> Units - - -
@@ -133,259 +113,6 @@
- - - - - - - - - @@ -439,10 +166,6 @@