Skip to content

fix(theming): say what the next click does, and show settings before saving them (#352, #355, #345) - #636

Merged
EVWorth merged 1 commit into
mainfrom
fix/theming-tooltips-and-preview
Sep 11, 2026
Merged

EVWorth merged 1 commit into
mainfrom
fix/theming-tooltips-and-preview

Conversation

@EVWorth

@EVWorth EVWorth commented Sep 11, 2026

Copy link
Copy Markdown
Owner

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 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.

#345 — the "Report issue" link asked GitHub for labels bug,auto-update. auto-update is 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 uses kind/bug and area/updates. The repository URL itself was spelled out in three files; it's one module now.

Found on the way

  • Every label in the formatter dialog was adjacent to its control, not associated with it — so none was announced with the field it names, and clicking one did nothing. Nine labels, now linked, with a test per label.
  • The issue-report URL is percent-encoded by hand rather than through URLSearchParams, which writes spaces as +. GitHub accepts both, but + doesn't survive a decodeURIComponent, so the URL stopped being readable by the first person who checked what it contained.

Also closed, without code

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

…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]>
@EVWorth
EVWorth merged commit 8c85a3c into main Sep 11, 2026
12 checks passed
@EVWorth
EVWorth deleted the fix/theming-tooltips-and-preview branch September 11, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant