From 949fa016b17c3be44d873959c64e4b2438224619 Mon Sep 17 00:00:00 2001 From: D Stephenson Date: Tue, 12 May 2026 20:52:17 +0000 Subject: [PATCH] Add terminal-style scan log panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit scan_state now accumulates log_lines per switch result. The status bar is replaced with a dark terminal panel showing a summary header [done/total ✓ok ✗fail | now: hostname] and a scrolling per-switch log with green/red colouring and timestamps. Co-Authored-By: Claude Sonnet 4.6 --- index.html | 62 ++++++++++++++++++++++++++++++++++++++++++------------ scanner.py | 18 +++++++++++++--- 2 files changed, 64 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 027abd4..e9e2ad3 100644 --- a/index.html +++ b/index.html @@ -382,18 +382,40 @@ var Xr=function(e){if(!(this instanceof Xr))return new Xr(e);this.id="Thenable/1 } /* ── Scan status bar ── */ - .status-bar { + .scan-log { display: none; + flex-direction: column; + background: #0d1117; + border-top: 1px solid #30363d; + flex-shrink: 0; + font-family: 'Consolas', 'Monaco', 'Courier New', monospace; + font-size: 12px; + } + .scan-log.visible { display: flex; } + .scan-log-header { + display: flex; align-items: center; gap: 10px; - padding: 8px 16px; - background: rgba(79,142,247,.08); - border-top: 1px solid rgba(79,142,247,.2); - font-size: 12px; - color: var(--accent); + padding: 6px 14px; + background: #161b22; + border-bottom: 1px solid #21262d; flex-shrink: 0; } - .status-bar.visible { display: flex; } + .scan-log-summary { color: #58a6ff; } + .scan-log-summary .ok-count { color: #3fb950; font-weight: 600; } + .scan-log-summary .fail-count { color: #f85149; font-weight: 600; } + .scan-log-body { + max-height: 140px; + overflow-y: auto; + padding: 4px 14px 6px; + } + .scan-log-line { + padding: 1px 0; + color: #8b949e; + white-space: pre; + } + .scan-log-line.ok { color: #3fb950; } + .scan-log-line.fail { color: #f85149; } .spinner { width: 14px; height: 14px; border: 2px solid rgba(79,142,247,.3); @@ -560,10 +582,13 @@ var Xr=function(e){if(!(this instanceof Xr))return new Xr(e);this.id="Thenable/1 - -
-
- Scanning... + +
+
+
+ Scanning... +
+