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 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 12:10:58 +01:00
co-authored by Claude Sonnet 5.5
parent d6de7781fe
commit 8fe0a72897
5 changed files with 35 additions and 5 deletions
+3
View File
@@ -141,6 +141,9 @@ func TestUpgradePage(t *testing.T) {
if r := request(); r["action"] != "preview" || r["force"] != true || r["downgrade"] != true {
t.Fatalf("%v", r)
}
if data, _ := os.ReadFile(filepath.Join(a.sys.upgradeDir(), "action")); string(data) != "preview" {
t.Fatalf("the running step is not recorded: %q", data)
}
if resp := post("/upgrade/format-disk", url.Values{}); resp.StatusCode != http.StatusNotFound {
t.Fatalf("unknown step: %d", resp.StatusCode)
}