From 4923afa6a7dba065ac0e52408a278e39c8f4ac6c Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 19 Feb 2026 16:04:36 +0100 Subject: [PATCH] v0.15.7: Fix backup page storage display & rename system drive label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add StorageBars to backupsHandler so all registered storage paths appear - Update backups.html to use StorageBars loop (replacing single HDDConfigured block) - Rename "SSD (/)" → "Rendszer (/)" on backup, monitoring, and dashboard pages Co-Authored-By: Claude Sonnet 4.6 --- CHANGELOG.md | 9 +++++++++ controller/internal/web/handlers.go | 1 + controller/internal/web/templates/backups.html | 10 +++++----- controller/internal/web/templates/dashboard.html | 2 +- controller/internal/web/templates/monitoring.html | 2 +- 5 files changed, 17 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7069775..1665d96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ ## Changelog +### What was just completed (2026-02-19 session 57) +- **v0.15.7 — Fix backup page storage display & rename system drive label:** + + Backup page ("Biztonsági mentés") now shows all registered storage paths instead of only a single "Külső HDD". Added `data["StorageBars"] = s.buildStorageBars()` to `backupsHandler` (was missing unlike dashboard/monitoring handlers). Updated `backups.html` storage bars section to use `StorageBars` loop (same pattern as monitoring page), replacing the old `{{if .HDDConfigured}}` single-HDD block. + + Renamed system root partition label from "SSD (/)" to "Rendszer (/)" on all three pages (backup, monitoring, dashboard), as the root filesystem is not necessarily on an SSD. + + **Files modified (4):** `internal/web/handlers.go`, `internal/web/templates/backups.html`, `internal/web/templates/monitoring.html`, `internal/web/templates/dashboard.html` + ### What was just completed (2026-02-19 session 56) - **v0.15.6 (controller) + hub v0.1.7 — Bug hunt fixes (BUGHUNT.md):** diff --git a/controller/internal/web/handlers.go b/controller/internal/web/handlers.go index 2a1146c..e68371d 100644 --- a/controller/internal/web/handlers.go +++ b/controller/internal/web/handlers.go @@ -434,6 +434,7 @@ func (s *Server) backupsHandler(w http.ResponseWriter, r *http.Request) { // System info for storage overview bars data["SystemInfo"] = system.GetInfo(s.primaryHDDPath(), s.cpuCollector) + data["StorageBars"] = s.buildStorageBars() if s.backupMgr != nil { nextDBDump := scheduler.NextDailyRun(s.cfg.Backup.DBDumpSchedule) diff --git a/controller/internal/web/templates/backups.html b/controller/internal/web/templates/backups.html index 6da4dc8..4214a34 100644 --- a/controller/internal/web/templates/backups.html +++ b/controller/internal/web/templates/backups.html @@ -30,21 +30,21 @@ {{with $.SystemInfo}}
- SSD (/) + Rendszer (/) {{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)
- {{if .HDDConfigured}} + {{range $.StorageBars}}
- Külső HDD - {{fmtGB .HDDUsedGB}} / {{fmtGB .HDDTotalGB}} ({{printf "%.0f" .HDDPercent}}%) + {{.Label}} + {{fmtGB .UsedGB}} / {{fmtGB .TotalGB}} ({{printf "%.0f" .Percent}}%)
-
+
{{end}} diff --git a/controller/internal/web/templates/dashboard.html b/controller/internal/web/templates/dashboard.html index 83598d3..ba25a13 100644 --- a/controller/internal/web/templates/dashboard.html +++ b/controller/internal/web/templates/dashboard.html @@ -58,7 +58,7 @@
- SSD tárhely + Rendszer (/) {{fmtGB .SystemInfo.DiskUsedGB}} / {{fmtGB .SystemInfo.DiskTotalGB}} ({{printf "%.0f" .SystemInfo.DiskPercent}}%)
diff --git a/controller/internal/web/templates/monitoring.html b/controller/internal/web/templates/monitoring.html index 8171349..a112d3d 100644 --- a/controller/internal/web/templates/monitoring.html +++ b/controller/internal/web/templates/monitoring.html @@ -43,7 +43,7 @@ {{with .SystemInfo}}
- SSD (/) + Rendszer (/) {{fmtGB .DiskUsedGB}} / {{fmtGB .DiskTotalGB}} ({{printf "%.0f" .DiskPercent}}%)