From 106abb7adf81df5e01ce81e469d6d23dc1c470aa Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Thu, 29 Jan 2026 10:27:31 -0800 Subject: [PATCH] Add table view with sortable columns for all modes Co-Authored-By: Claude Opus 4.5 --- static/index.html | 394 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 385 insertions(+), 9 deletions(-) diff --git a/static/index.html b/static/index.html index f1c14ca..5d24736 100644 --- a/static/index.html +++ b/static/index.html @@ -279,11 +279,16 @@ align-items: center; } - #mode-selector { + #top-bar { position: fixed; top: 10px; right: 10px; z-index: 1000; + display: flex; + gap: 10px; + } + + .selector-group { display: flex; gap: 0; background: #333; @@ -292,7 +297,7 @@ border: 1px solid #555; } - #mode-selector button { + .selector-group button { padding: 8px 16px; border: none; background: #333; @@ -302,15 +307,84 @@ transition: all 0.2s; } - #mode-selector button:hover { + .selector-group button:hover { background: #444; } - #mode-selector button.active { + .selector-group button.active { background: #555; color: #fff; } + #table-container { + display: none; + padding: 10px; + } + + body.table-view #container { + display: none; + } + + body.table-view #table-container { + display: block; + } + + .data-table { + width: 100%; + border-collapse: collapse; + background: #222; + border-radius: 8px; + overflow: hidden; + } + + .data-table th, .data-table td { + padding: 8px 12px; + text-align: left; + border-bottom: 1px solid #333; + } + + .data-table th { + background: #333; + cursor: pointer; + user-select: none; + white-space: nowrap; + } + + .data-table th:hover { + background: #444; + } + + .data-table th.sorted-asc::after { + content: ' ▲'; + font-size: 10px; + } + + .data-table th.sorted-desc::after { + content: ' ▼'; + font-size: 10px; + } + + .data-table tr:hover { + background: #2a2a2a; + } + + .data-table td.numeric { + text-align: right; + font-variant-numeric: tabular-nums; + } + + .data-table .status-ok { + color: #4f4; + } + + .data-table .status-warn { + color: #fa0; + } + + .data-table .status-error { + color: #f44; + } + body.dante-mode .node { opacity: 0.3; } @@ -910,11 +984,17 @@
-
- - - - +
+
+ + + + +
+
+ + +
@@ -925,6 +1005,7 @@
+