Repository navigation
fix(updater): follow the manager theme in the live update window - #2661
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):
lightness)#f1f1f1light)#343944dark)#212328darkness)#212328#282c34Close button. A 36×36 button with a 20×20 SVG cross (
pointer-events: none, so a click on the cross still reaches the button), andaria-label. Its rules carry the modal id: the manager'sbutton:not(.btn)rule informs.cssoutweighed 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:sitelines in the log stay in English: they are the CLI output.Tests
assets/plugins/updater/tests/live-update.test.js(run byUpdaterManagerUiTest): 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.evo.tree.toggleTheme(); a real mouse click on the cross closes the window.🤖 Generated with Claude Code