Skip to content

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

Merged
Seiger merged 2 commits into
evolution-cms:3.6.xfrom
elcreator:fix-updater-dialog-theme-3.6
Nov 27, 2026
Merged

Seiger merged 2 commits into
evolution-cms:3.6.xfrom
elcreator:fix-updater-dialog-theme-3.6

Conversation

@elcreator

Copy link
Copy Markdown

3.6.x counterpart of #2661, plus the evo-ui top bar.

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 body follows the content area (dark only in "everything is dark"); the header strip follows the top bar of the manager theme in use:

Mode Strip, default theme Strip, evo-ui theme Body
everything is light (lightness) #f1f1f1 white white
the header is dark (light) #343944 white white
header and sidebar are dark (dark) #212328 oklch(26.5% 0.011 265) white
everything is dark (darkness) #212328 oklch(18.5% 0.012 265) #282c34

evo-ui renders the dashboard with the default views, so the dashboard document does not say which theme is active: the plugin passes managerTheme in the window's payload and the modal gets is-evo-ui. The evo-ui values are its --color-base-100 / --color-base-content for each data-theme.

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.

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): 5 new tests for follow / stay-when-scrolled-up, a variable set for each theme mode, element rules that use only the variables, the close button, and the evo-ui strip. All 17 pass.
  • Checked in a 3.6 manager, under both default and evo-ui, 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

elcreator and others added 2 commits November 27, 2026 02:18
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>
evo-ui draws its top bar in the EvoUI base colours, white in both light
modes, and the dashboard document does not say which theme is active:
the plugin passes manager_theme and the header strip takes those colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Seiger
Seiger merged commit bedb66f into evolution-cms:3.6.x Nov 27, 2026
14 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