Skip to content

fix(updater): follow the manager theme in the live update window - #2661

Merged
Seiger merged 1 commit into
evolution-cms:3.5.xfrom
elcreator:fix-updater-dialog-theme
Nov 27, 2026
Merged

Seiger merged 1 commit into
evolution-cms:3.5.xfrom
elcreator:fix-updater-dialog-theme

Conversation

@elcreator

Copy link
Copy Markdown

The "System update" window of the dashboard updater was dark in every theme mode, its close cross was a 9 px glyph inside a 37 px framed button, and each poll rebuilt the log scrolled back to the top, so the operator did not see the update progress.

Theme modes. Colours now come from CSS variables set per mode, and change live with the theme toggle (the dialog sits in the dashboard document, whose body carries the mode class):

Mode Header strip (follows the top bar) Body (follows the content area)
everything is light (lightness) #f1f1f1 white
the header is dark (light) #343944 white
header and sidebar are dark (dark) #212328 white
everything is dark (darkness) #212328 #282c34

Close button. A 36×36 button with a 20×20 SVG cross (pointer-events: none, so a click on the cross still reaches the button), and aria-label. Its rules carry the modal id: the manager's button:not(.btn) rule in forms.css outweighed the class and drew a white framed box around it.

Log autoscroll. After each poll the log scrolls to the newest line, unless the operator scrolled up to read earlier lines; once back at the bottom it follows again. Logs come ordered by seq, so the newest line is the last.

The make:site lines in the log stay in English: they are the CLI output.

Tests

  • assets/plugins/updater/tests/live-update.test.js (run by UpdaterManagerUiTest): 4 new tests for follow / stay-when-scrolled-up, a variable set for each theme mode, element rules that use only the variables, and the close button. They fail on the current code; all 16 pass.
  • Checked in a 3.5 manager over a running site_update task with a growing log (headless Chrome over CDP): the log stays at the bottom across polls and keeps its place when scrolled up; computed colours match the table in each mode after evo.tree.toggleTheme(); a real mouse click on the cross closes the window.

🤖 Generated with Claude Code

The window was dark whatever the theme mode, its close cross was a 9 px
glyph in a framed button, and every poll scrolled the log back to the top.

- colours come from variables set per theme mode: the header strip
  follows the top bar, the body the content area (dark only in
  "everything is dark"), and switch live with the theme toggle
- the close button is a 36 px box with a 20 px cross; its rules carry the
  modal id so the manager's button:not(.btn) frame does not apply
- the log follows new lines unless the operator scrolled up to read

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Seiger
Seiger merged commit f1c2935 into evolution-cms:3.5.x Nov 27, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants