Add AT&T modem monitoring and device pages; replace Link Debug
Lint / Python (flake8) (pull_request) Successful in 2m6s
Lint / JS (eslint) (pull_request) Successful in 18s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 2m11s
Test / Python Tests (pytest) (pull_request) Successful in 2m20s
Lint / JS (eslint) (push) Successful in 10s
Lint / Python (flake8) (push) Successful in 1m58s
Lint / Notify on failure (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m58s
Lint / Deploy (push) Successful in 4s
Test / Python Tests (pytest) (push) Successful in 58s
Lint / Python (flake8) (pull_request) Successful in 2m6s
Lint / JS (eslint) (pull_request) Successful in 18s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / Python Security (bandit) (pull_request) Successful in 2m11s
Test / Python Tests (pytest) (pull_request) Successful in 2m20s
Lint / JS (eslint) (push) Successful in 10s
Lint / Python (flake8) (push) Successful in 1m58s
Lint / Notify on failure (push) Skipped
Security / Python Security (bandit) (push) Successful in 1m58s
Lint / Deploy (push) Successful in 4s
Test / Python Tests (pytest) (push) Successful in 58s
Modem and WAN: - Poll the BGW320 status pages read-only for light levels, PON and WAN state, with a WAN / Fiber panel, 7-day Rx trend, and alerts on WAN down, optical limits, and Rx drift - Read WAN outages and Smart Power restarts from the UniFi system log, since outages can be over between 5 minute polls Device pages: - Add device search to the dashboard and a page per host, switch, router, AP, PDU, or modem - Move all Link Debug data into expandable rows there; /links redirects - Collect UDM ports and UniFi device details (firmware, load, WAN, outlets) - Reorder the dashboard Monitoring fixes: - Alert when a configured host stops reporting: its series disappear rather than reporting down, so a dead host never raised an alert - Alert on Prometheus outages instead of blanking the dashboard - Treat a failed Pulse ping as unknown rather than host unreachable - Stop new switch ports reporting lifetime bytes as one interval's rate - Run database sessions in UTC: other server time zones shifted displayed ages and timed suppression expiries Also log every avatar 404 reason, add a favicon, and correct the WAN link labels (1G on Port 9, not 10G SFP+). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #4.
This commit is contained in:
1 parent
e1716d5228
commit
e32499b7f6
25 files changed
+3120
-821
No files matched your search
@@ -1064,3 +1064,88 @@
|
||||
.inspector-panel.open { width: 100%; }
|
||||
.inspector-panel-inner{ width: 100%; }
|
||||
}
|
||||
|
||||
/* ── WAN modem / fiber panel ──────────────────────────────────────── */
|
||||
.modem-stats {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.modem-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
||||
}
|
||||
.modem-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
|
||||
.modem-stat-label { font-size: .68em; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
|
||||
.modem-stat-value { font-size: 1.05em; font-weight: bold; overflow-wrap: anywhere; }
|
||||
.modem-stat-note { font-size: .7em; color: var(--text-muted); display: block; }
|
||||
.modem-error { margin: 12px; padding: 8px 10px; border: 1px solid var(--terminal-red, #f44); color: var(--terminal-red, #f44); }
|
||||
.modem-chart { padding: 0 12px 8px; }
|
||||
.modem-chart-title { font-size: .72em; color: var(--text-muted); margin-bottom: 4px; }
|
||||
.modem-chart-title span { margin-left: 8px; opacity: .8; }
|
||||
.modem-chart svg { display: block; width: 100%; height: 70px; border: 1px solid var(--border-color); }
|
||||
.modem-chart svg polyline { stroke: var(--terminal-cyan, #0ff); stroke-width: 1.5; }
|
||||
.modem-chart-empty { padding: 0 12px 8px; font-size: .72em; color: var(--text-muted); }
|
||||
.modem-updated { padding: 0 12px 10px; }
|
||||
|
||||
/* ── Device search (home page) ────────────────────────────────────── */
|
||||
.device-search { position: relative; }
|
||||
.device-search label { display: block; margin-bottom: 6px; }
|
||||
.device-search .lt-search { width: 100%; }
|
||||
.device-search-input { width: 100%; font-size: 1em; padding-top: 10px; padding-bottom: 10px; }
|
||||
.device-search-results {
|
||||
position: absolute; left: 0; right: 0; z-index: 50; margin-top: 4px;
|
||||
background: var(--bg-card, var(--bg-secondary)); border: 1px solid var(--border-color);
|
||||
max-height: 420px; overflow-y: auto;
|
||||
}
|
||||
.device-search-results[hidden] { display: none; }
|
||||
.device-search-row {
|
||||
display: grid; grid-template-columns: 14px minmax(0, 1.4fr) 70px minmax(0, 1fr) minmax(0, 1fr);
|
||||
gap: 10px; align-items: center; padding: 9px 12px; color: inherit; text-decoration: none;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.device-search-row:last-child { border-bottom: 0; }
|
||||
.device-search-row:hover, .device-search-row.is-active { background: var(--bg-tertiary); }
|
||||
.device-search-name { font-weight: bold; overflow-wrap: anywhere; }
|
||||
.device-search-kind { font-size: .72em; color: var(--text-muted); text-transform: uppercase; }
|
||||
.device-search-meta { font-size: .8em; color: var(--text-muted); overflow-wrap: anywhere; }
|
||||
.device-search-empty { padding: 12px; color: var(--text-muted); }
|
||||
@media (max-width: 700px) {
|
||||
.device-search-row { grid-template-columns: 14px minmax(0, 1fr) auto; }
|
||||
.device-search-row .device-search-meta { grid-column: 2 / -1; }
|
||||
}
|
||||
|
||||
/* ── Device page ───────────────────────────────────────────────────── */
|
||||
a.device-link { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--text-muted); }
|
||||
a.device-link:hover { color: var(--text-accent); border-bottom-color: currentColor; }
|
||||
.device-title { display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
|
||||
.device-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
|
||||
.device-toolbar { padding: 8px 12px; margin: 0; }
|
||||
.device-table td { vertical-align: middle; }
|
||||
.device-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
|
||||
.device-row--down { opacity: .55; }
|
||||
.device-row-name { overflow-wrap: anywhere; }
|
||||
.device-row-sub { font-size: .72em; color: var(--text-muted); }
|
||||
.device-row-toggle { background: none; border: 0; color: inherit; cursor: pointer; font: inherit; padding: 2px 6px; }
|
||||
.device-row-detail > td { background: var(--bg-tertiary); padding: 10px 14px; }
|
||||
.topo-host[data-host] { cursor: pointer; }
|
||||
|
||||
/* WAN outage list in the modem panel */
|
||||
.modem-outages { padding: 0 12px 8px; }
|
||||
.modem-outages ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border-color); }
|
||||
.modem-outages li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 8px; font-size: .8em; }
|
||||
.modem-outages li + li { border-top: 1px solid var(--border-color); }
|
||||
|
||||
.g-section-actions[hidden] { display: none; }
|
||||
/* Rows open a detail panel holding the fields that are hidden here on narrow screens */
|
||||
.device-row-detail .link-stats-grid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
|
||||
.device-table th:nth-child(-n+2), .device-table td:nth-child(-n+2) { width: 1%; white-space: nowrap; }
|
||||
@media (max-width: 700px) {
|
||||
.device-col-wide { display: none; }
|
||||
.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; }
|
||||
}
|
||||
Reference in new issue
Block a user