From e825749041aa9b5e0c5c8e18699a8b1a5d35315b Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 28 May 2026 23:22:49 +0100 Subject: [PATCH] ux(system): replace metric page's dev-jargon subline with a plain description MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Live · binary ring backed" meant nothing to a user; show a per-metric sentence describing what the chart is (e.g. "Root-filesystem usage over time.") instead. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- .../js/components/admin/system-metric-page.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/containers/libreportal/frontend/js/components/admin/system-metric-page.js b/containers/libreportal/frontend/js/components/admin/system-metric-page.js index 4da23d0..f6518dc 100644 --- a/containers/libreportal/frontend/js/components/admin/system-metric-page.js +++ b/containers/libreportal/frontend/js/components/admin/system-metric-page.js @@ -211,9 +211,18 @@ class SystemMetricPage { } } + // Plain-language description of what the page shows, per metric. _subline() { - // Stub — populated more fully once data lands (sample count + tier). - return 'Live · binary ring backed'; + const descs = { + cpu: 'Processor load over time, across all cores.', + mem: 'Memory in use over time, as a share of total RAM.', + swap: 'Swap in use over time, as a share of total swap.', + disk: 'Root-filesystem usage over time.', + load1: 'System load average (1-minute) over time.', + net_rx: 'Inbound network throughput over time.', + net_tx: 'Outbound network throughput over time.', + }; + return (this.metric && descs[this.metric.key]) || 'Live history over time.'; } async _loadRange() {