From a08883c4b3c068eacfddf22c9348af21a494e71c Mon Sep 17 00:00:00 2001 From: Sean Dolbec Date: Sat, 22 Aug 2026 16:33:13 -0400 Subject: [PATCH] fix: port Monitoring Hub into Flask template (runtime parity) PR #228 only updated the repo-root index.html used by the Node runtime; the Flask app serves templates/index.html which still had the old Dragnet card and the pre-#210 socket bootstrap. Ports the hub card, its init wiring, and verifies end-to-end with auth enabled: socket connects via token, hub renders Auto-Monitor state + change summary, reports jump button works, zero page errors. --- templates/index.html | 37 +++++++++++++++++++++++++++++++++---- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index bdb340b..c2d0d33 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1375,14 +1375,40 @@

Deep Scan

Critical CVEs: --

-
-

Dragnet Scan

+
+
+

Monitoring Hub

+ +
+ +
-

Time taken: --:--:--

-

Total Hosts: --

+

Last sweep: --:--:--

+

Hosts seen: --

Open Ports: --

Critical CVEs: --

+ +
+ +
+ Auto-Monitor + Off +
+ + + +
+ Changes vs last scan + -- +
+ + +
+

nmap -iL discovered - exhaustive

@@ -1652,6 +1678,9 @@

Scan Complete!

if (typeof initializeCustomerUI === 'function') { initializeCustomerUI(socket); } + if (typeof initializeMonitoringHub === 'function') { + initializeMonitoringHub(socket); + } if (typeof initializeAuditLog === 'function') { initializeAuditLog(); }