Repository navigation
fix(theming): say what the next click does, and show settings before saving them (#352, #355, #345) - #636
Merged
Conversation
…saving them Three of the theming findings, and two things they were sitting on top of. FR: the theme button's tooltip said "click to cycle", which is not something a user can act on (#352). The order is dark, light, system — so getting from dark to light is one click and from dark to system is two, with no way to tell which without trying. It now names the theme the next click lands on. The formatter settings dialog had no preview at all, so settings could only be judged by saving them, pressing Format, and undoing if the output was wrong (#355). It now shows the user's own statement formatted with the settings being edited — falling back to a sample when the editor is empty or holds something the formatter cannot parse, because a blank pane would make the settings look broken rather than show what they do. The preview goes through the same `formatSql` the Format button uses. The twelve options were spelled out separately in the toolbar and in the editor's own command; a third copy for the preview could disagree with what the button actually does, which is the one thing a preview must not do. The "Report issue" link asked GitHub for labels `bug,auto-update` (#345). `auto-update` is not a label this repo has — GitHub drops one it does not recognise, so every update report arrived unlabelled and missed the triage filters it was meant for. The repo uses `kind/bug` and `area/updates`. The repository itself was spelled out in three files; it is one module now. Two things found on the way: - Every label in the formatter dialog was adjacent to its control rather than associated with it, so none was announced with the field it names and clicking one did nothing. - The issue-report URL is percent-encoded by hand rather than through URLSearchParams, which writes spaces as `+`. GitHub accepts both, but `+` does not survive a `decodeURIComponent`, so the URL stopped being readable by the first person who checked what it contained. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Sep 11, 2026
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.
Three theming findings, and two things they were sitting on top of.
#352 — the theme button's tooltip said "click to cycle", which isn't something a user can act on. The order is dark → light → system, so dark-to-light is one click and dark-to-system is two, with no way to tell which without trying. It now names the theme the next click lands on.
#355 — the formatter settings dialog had no preview at all, so settings could only be judged by saving them, pressing Format, and undoing if the output was wrong. It now shows the user's own statement formatted with the settings being edited — falling back to a sample when the editor is empty or holds something the formatter can't parse, because a blank pane would make the settings look broken rather than show what they do.
The preview goes through the same
formatSqlthe Format button uses. The twelve options were spelled out separately in the toolbar and in the editor's own command; a third copy for the preview could disagree with what the button actually does, which is the one thing a preview must not do.#345 — the "Report issue" link asked GitHub for labels
bug,auto-update.auto-updateis not a label this repo has — GitHub drops one it doesn't recognise, so every update report arrived unlabelled and missed the triage filters it was meant for. The repo useskind/bugandarea/updates. The repository URL itself was spelled out in three files; it's one module now.Found on the way
URLSearchParams, which writes spaces as+. GitHub accepts both, but+doesn't survive adecodeURIComponent, so the URL stopped being readable by the first person who checked what it contained.Also closed, without code
useThemealready listsmonacoin its dependency array, so the effect re-runs when Monaco mounts. I added the test the issue says is missing; it passes against the unmodified hook. (Also removed a test in that file that set up two renders and then asserted nothing.)buildRpmUrlis gone and the backend reports the running architecture.2457 unit + 340 browser tests. The live-preview test was mutation-checked against the saved-settings version.
Closes #352
Closes #355
Closes #345
🤖 Generated with Claude Code