From 8fe0a72897992f4c76c0ab156a89b5c26d530f51 Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Wed, 18 Nov 2026 12:10:58 +0100 Subject: [PATCH] Show the log in the page over the site while updating or upgrading The Update page's overlay carries the update's log; the Packages page gets an overlay too, named after the step that runs. Co-Authored-By: Claude Sonnet 5.5 --- pkgs/router-webui/static/style.css | 2 ++ pkgs/router-webui/templates/update.html | 5 +++-- pkgs/router-webui/templates/upgrade.html | 11 +++++++++-- pkgs/router-webui/upgrade.go | 19 ++++++++++++++++++- pkgs/router-webui/upgrade_test.go | 3 +++ 5 files changed, 35 insertions(+), 5 deletions(-) diff --git a/pkgs/router-webui/static/style.css b/pkgs/router-webui/static/style.css index 15d9088..b258a89 100644 --- a/pkgs/router-webui/static/style.css +++ b/pkgs/router-webui/static/style.css @@ -60,6 +60,8 @@ section { margin: 0 0 1.5rem; } section.busy, section.pending { padding: .75rem 1rem; border-radius: var(--radius); background: var(--warn); } .upload-overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); padding: 1rem; } .upload-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0, 0, 0, .35); padding: 1.25rem 1.5rem; width: min(30rem, 100%); } +.upload-card.wide { width: min(48rem, 100%); } +.upload-card pre.log { margin: .75rem 0 0; max-height: min(18rem, 40vh); } .upload-card h2 { margin: 0 0 .75rem; } .upload-card progress { width: 100%; height: 1rem; accent-color: var(--accent); } .upload-card p { margin: .6rem 0 0; font-size: .9rem; } diff --git a/pkgs/router-webui/templates/update.html b/pkgs/router-webui/templates/update.html index 57e254b..00a3e18 100644 --- a/pkgs/router-webui/templates/update.html +++ b/pkgs/router-webui/templates/update.html @@ -11,10 +11,11 @@ {{if $d.Status.Running}}