From 2da888f92d1eac37738f94962d1afa04159a46b2 Mon Sep 17 00:00:00 2001 From: librelad Date: Fri, 17 Jul 2026 23:04:12 +0100 Subject: [PATCH] fix(tasks): show LibrePortal logo on system health/network heal task rows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The task-list row only paints the LibrePortal app-logo for commands matched by isLibrePortalSystemTask's whitelist (appless tasks otherwise get just the type icon, so arbitrary custom commands don't get a spurious logo). `libreportal system health/network heal|check` weren't in it — only `system reclaim|image` — so the heal rows showed a bare function icon instead of the logo like "Check for Updates". Add health|network to the whitelist. Co-Authored-By: Claude Opus 4.8 (1M context) Signed-off-by: librelad --- .../frontend/components/tasks/js/tasks-list-render.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/libreportal/frontend/components/tasks/js/tasks-list-render.js b/containers/libreportal/frontend/components/tasks/js/tasks-list-render.js index 57c655c..3077edb 100644 --- a/containers/libreportal/frontend/components/tasks/js/tasks-list-render.js +++ b/containers/libreportal/frontend/components/tasks/js/tasks-list-render.js @@ -287,7 +287,7 @@ Object.assign(TasksManager.prototype, { }, isLibrePortalSystemTask(task) { if (!task || !task.command || task.app) return false; - return /^libreportal (setup|backup\s+all|backup\s+system|backup\s+verify|backup\s+location|backup\s+repo|restore\s+migrate\s+system|restore\s+migrate\s+discover|restore\s+first-run|webui|config|update|verify|system\s+(reclaim|image))\b/.test(task.command); + return /^libreportal (setup|backup\s+all|backup\s+system|backup\s+verify|backup\s+location|backup\s+repo|restore\s+migrate\s+system|restore\s+migrate\s+discover|restore\s+first-run|webui|config|update|verify|system\s+(reclaim|image|health|network))\b/.test(task.command); }, getTaskTypeIcon(task) { if (!task.type) return { icon: '⚙️', class: 'custom' };