From b020a3f43aeb7ab63e000da63a3f14c988545d9d Mon Sep 17 00:00:00 2001 From: librelad Date: Thu, 28 May 2026 21:38:47 +0100 Subject: [PATCH] feat(system): re-add Disk usage to the System trends grid The trends grid lost its disk chart; add it back as a 6th card plotting root-filesystem % over time, alongside CPU/Memory/Network/Load/Swap. The 'disk' history series and metric-detail entry already existed, so the expand-to-detail flow works unchanged. Co-Authored-By: Claude Opus 4.7 Signed-off-by: librelad --- .../libreportal/frontend/js/components/admin/admin-system.js | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/libreportal/frontend/js/components/admin/admin-system.js b/containers/libreportal/frontend/js/components/admin/admin-system.js index ff52b43..3a774df 100644 --- a/containers/libreportal/frontend/js/components/admin/admin-system.js +++ b/containers/libreportal/frontend/js/components/admin/admin-system.js @@ -268,6 +268,7 @@ class AdminSystem { `
↓ ${this.rate(lastRx)}↑ ${this.rate(lastTx)}
`, 'rx / tx', 'net_rx')} ${this.chartCard('Load (1m)', C.areaChart(this.series('load1'), { color: 'accent', fmt: v => v.toFixed(2) }), `${cpu.cores || '?'} cores`, 'load1')} + ${this.chartCard('Disk usage', C.areaChart(this.series('disk'), { color: 'status-success', max: 100, fmt: v => `${Math.round(v)}%` }), 'root %', 'disk')} ${hasSwap ? this.chartCard('Swap usage', C.areaChart(this.series('swap'), { color: 'status-warning', max: 100, fmt: v => `${Math.round(v)}%` }), 'last %', 'swap') : ''} `;