Polish: phone alert cards, quieter badges, footer, small layout fixes
Lint / JS (eslint) (push) Successful in 14s
Lint / Python (flake8) (push) Successful in 1m17s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / Python (flake8) (pull_request) Successful in 57s
Security / Python Security (bandit) (push) Successful in 1m0s
Test / Python Tests (pytest) (push) Successful in 1m56s
Security / Python Security (bandit) (pull_request) Successful in 1m52s
Lint / JS (eslint) (pull_request) Successful in 8s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Test / Python Tests (pytest) (pull_request) Successful in 1m25s

- Active alerts on the dashboard become one card per alert on phones
  instead of a table squeezed to a letter per line.
- Section count badges are neutral; red is kept for active alerts and
  tickets to follow up, so "History 0" no longer looks like a problem.
- Host cards only tag the data source when it isn't node_exporter
  (a ping-only host), instead of "prometheus" on every card.
- WAN / Fiber: the BGW320 doesn't report uptime here, so show the last
  restart instead of a permanent "Uptime -".
- Footer: CFG and HELP read like the hints beside them rather than grey
  browser buttons, and the footer sits at the bottom of short pages.
- Wider alert filter and suppression name fields so their hints fit.
- "just now" instead of a negative age when a clock runs a little ahead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-18 01:36:20 -05:00
1 parent 73787daaec
commit 7da4cc26e2
6 files changed
+87 -35

No files matched your search

+30 -8
View File
@@ -177,13 +177,18 @@
text-transform: uppercase;
letter-spacing: .08em;
}
/* A count. Neutral by default; red only where it counts problems (active alerts, follow-ups). */
.g-section-badge {
font-size: .72em;
font-weight: bold;
color: var(--accent-red);
border: 1px solid var(--accent-red);
color: var(--text-muted);
border: 1px solid var(--border-color);
padding: 1px 7px;
}
.g-section-badge-alert {
color: var(--accent-red);
border-color: var(--accent-red);
}
.g-section-badge-resolved {
font-size: .68em;
color: var(--text-muted);
@@ -330,7 +335,6 @@
letter-spacing: .04em;
font-weight: bold;
}
.source-prometheus { color: var(--orange); border-color: var(--orange-dim); }
.source-ping { color: var(--cyan); border-color: var(--cyan-dim); }
.iface-list { border-top: 1px solid var(--border-color); padding-top: 6px; margin-bottom: 8px; }
.iface-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; }
@@ -345,8 +349,9 @@
/* ── Form layout helpers (used in suppressions.html form grids) ───── */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.form-row-align { align-items: flex-end; }
.form-row > .lt-form-group { flex: 1 1 220px; }
.form-group-wide { flex: 3; }
.form-group-submit { flex: 0 0 auto; min-width: unset; }
.form-group-submit, .form-row > .form-group-submit { flex: 0 0 auto; min-width: unset; }
.required { color: var(--red); }
/* ── Duration pills ───────────────────────────────────────────────── */
@@ -914,10 +919,6 @@ a.device-link:hover { color: var(--text-accent); border-bottom-color: current
.device-table th, .device-table td { padding-left: 6px; padding-right: 6px; }
}
.device-search-row.is-active { box-shadow: inset 3px 0 0 var(--terminal-cyan, #0ff); }
@media (max-width: 700px) {
/* Scroll inside the wrapper rather than squeezing every column to a few letters */
#events-table { min-width: 760px; }
}
/* ── Port inspector on the device page ────────────────────────────── */
.device-inspector { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 16px; align-items: start; }
@@ -1827,3 +1828,24 @@ body.fp-marks-off .fp-svg .fp-mark { display: none; }
.lt-header-user, .lt-cmd-hint-btn, .lt-header-right [data-action="start-maintenance"] { display: none; }
}
.g-drawer-action { background: none; border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
/* ── Footer: the CFG and HELP buttons read like the keyboard hints beside them ── */
button.lt-footer-hint {
background: none; border: 0; padding: 0; margin: 0;
font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
button.lt-footer-hint:hover, button.lt-footer-hint:focus-visible { color: var(--accent-cyan, var(--cyan)); }
/* ── Footer at the bottom of the window on short pages, not halfway up ── */
body { display: flex; flex-direction: column; }
body > .lt-main { flex: 1 0 auto; width: 100%; }
body > .lt-footer { flex-shrink: 0; }
/* ── Active alerts: room for the filter's hint; full-width cards on phones ── */
#events-search { min-width: 300px; }
@media (max-width: 767px) {
#events-search { min-width: 0; }
#events-table, #events-table tbody { display: block; width: 100%; }
#events-table td { max-width: none; }
#events-table td.desc-cell { white-space: normal; text-align: right; }
}