Skip to content

Polish Settings and the modals and fix their walk bugs (ENG-2956) - #159

Merged
quanticstudios merged 6 commits into
mainfrom
polish-settings
Nov 2, 2026
Merged

quanticstudios merged 6 commits into
mainfrom
polish-settings

Conversation

@quanticstudios

@quanticstudios quanticstudios commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

BLUF

Fixes the six walk findings in Settings and the modals, and polishes both to the shared look.

Changes

  • Finding 15, font-preference.ts: a code or interface font that isn't installed falls back to the default stack instead of serif. Typed families are quoted and the styles.css default goes after them.
    • Generic keywords: unquoted generics such as Monospace match in any case. A quoted generic stays a family name, as CSS reads it.
  • Finding 16, Jev gate thresholds: the field keeps a draft and saves it only on blur or Enter, and only if it is valid. Typing 0.907 one key at a time no longer saves the 0.9 prefix.
    • Invalid drafts: a value outside 0 to 1, or past its partner bar, shows its reason and isn't saved. Leaving the field drops the draft and shows the saved value again.
    • shared/jev-gates.ts: the rule is jevGateThresholdError, so the sidebar can use it too.
  • Finding 18, update dialog: Acknowledge records the acknowledgement and writes reporting off, because healthReportingEnabled defaults to true behind the acknowledgement. Turning on sharing is its own switch.
    • e2e/electron-navigation.spec.ts: the update-health spec asserted the old behaviour, so it now expects sharing to stay off after Acknowledge, then turns it on and off with Space.
  • Finding 21, Jev save: "Saved" appears next to the button and clears on the next edit. It is announced through aria-live, so the readiness line stays the form's only role="status", which the e2e lookups rely on.
  • Finding 21, settings search: no category stays highlighted while results are showing.
  • Finding 21, fleet copy: Lane routing and Completion check now say pitwall chats ignore them. pitwall's daemon applies only the tool call gate (internal/decide/gates.go).
    • JevGateControls.tsx: deleted. Nothing imported it, and it held a second copy of the fleet text.
  • Update switches: while a change saves, a switch is read-only instead of disabled, so it keeps keyboard focus and a second Space works.
  • Health disclosure: HeroUI dims a disabled switch's description twice (0.5 × 0.5). The text now sits outside the Switch, linked with aria-describedby, so it stays readable while sharing is off.
  • Delete workspace and Worktree setup dialogs: they use floating-surface and a ghost Cancel, like the other dialogs. The Delete checkbox takes the primary accent.
  • Settings inputs: focused fields show a --primary edge. Before this, the caret was the only sign of focus.
  • Settings scroll area: the scrollbar gutter is reserved, so content no longer shifts 5px between short and long pages.
  • Smaller fixes: the Animations select shows 13px text. Jev setup buttons, hints, error text and the disabled key field are styled to match.

Linear

ENG-2956

Verification

  • [verified] Unit tests: bun run test passes. Each fix's new test fails on the code it replaces, including successive keystrokes, blur, Enter and mixed-case generics.
  • [verified] Gates: bunx tsc --noEmit, bun run test:design-tokens and bun run build exit 0.
  • [verified] Biome: bun run check exits 0. Locally it needs the uncommitted .claude/settings.local.json edit set aside.
  • [verified] Threshold keystrokes, in the app: typing 0.907 into Allow below saved 0.90 before the fix. After it, the error shows and the summary keeps "allow < 0.10".
  • [verified] Running app: I shot every settings section at 1280, 1440 and 1920 in Light, Dark and High contrast, and every modal at 1440 in all three, with ENG-2952's token commit cherry-picked locally.
  • [verified] Font fallback: with Code font DejaVu Sans Mono, the root --code-font-family resolves to it followed by the default monospace stack.
  • [verified] Rebase: rebased onto origin/main after Polish the panes and fix their walk bugs (ENG-2955) #157, Polish the chat surface and fix its walk bugs (ENG-2954) #160 and Fix daemon startup and workspace lifecycle walk bugs, and polish their surfaces (ENG-2953) #158. JevSetup.tsx keeps Fix daemon startup and workspace lifecycle walk bugs, and polish their surfaces (ENG-2953) #158's first-run hint and settings-changed event alongside the Saved confirmation, JevSetup.test.tsx holds both suites, and the CHANGELOG keeps every line.
  • CI Electron e2e: confirm the update lifecycle spec passes. It failed at its second Space press because the saving switch had dropped focus. Not run locally.
  • Recheck the modals once ENG-2952's token commit merges. This PR doesn't include it.

Screenshots

Local files in the worktree's polish-shots/, not committed:

  • Threshold keystrokes: before-review-gate-blurred-light-1440.png vs after-review-gate-typed-light-1440.png and after-review-gate-blurred-light-1440.png
  • Jev gates: before-settings-jev-gates-light-1440.png vs after-state-gate-invalid-light-1440.png
  • Jev save: before-settings-jev-light-1440.png vs after-state-jev-saved-light-1440.png
  • Update dialog: before-modal-update-light-1440.png vs after-modal-update-dark-1440.png
  • Delete workspace: before-modal-delete-light-1440.png vs after-modal-delete-contrast-1440.png
  • Search: after-state-search-font-light-1440.png

Refs

  • Deferred: the sidebar's per-workspace gate inputs (SidebarTree.tsx, outside this area) still save on every keystroke and clamp without saying so. They can use jevGateThresholdError and the same blur and Enter commit.
  • Product call: Lane routing and Completion check do nothing for pitwall chats. Removing them, or making pitwall apply them, is a decision beyond polish.

🤖 Generated with Claude Code

@quanticstudios

Copy link
Copy Markdown
Owner Author

auto-merge declined: one of five parallel aide polish PRs (ENG-2952 to ENG-2956). The brief asks to open the PR and stop, and the user lands the batch in order (CHANGELOG and ENG-2952's tokens overlap).

@quanticstudios
quanticstudios force-pushed the polish-settings branch 4 times, most recently from 185c15e to c857a68 Compare November 2, 2026 20:03
A custom font that is not installed now falls back to the default stack
instead of serif: font-preference quotes each typed family and appends the
styles.css default.

Jev gate thresholds keep a draft while you type. A value outside 0 to 1, or
past its partner bar, stays on screen with the reason under it and is not
saved; leaving the field shows the saved value again. The check lives in
shared/jev-gates (jevGateThresholdError) so the sidebar can use it too.

Jev settings show "Saved" after a save. Settings search no longer leaves the
previous category highlighted. Lane routing and Completion check say pitwall
chats ignore them, since pitwall's daemon applies only the tool call gate.
The unused JevGateControls component, which carried the old fleet copy, is
gone.

Acknowledge in the update dialog records only the acknowledgement. The
health-report disclosure moves out of the HeroUI Switch, whose disabled state
dimmed it twice to a quarter opacity.

Smaller finish: focus edges on settings inputs, a stable scrollbar gutter, a
13px Animations select, styled Jev buttons, hints and errors, and the Delete
workspace and Worktree setup dialogs on the shared surface with a ghost Cancel.
…any case (ENG-2956)

Saving on every keystroke stored each valid prefix, so typing 0.907 into
Allow below saved 0.9 before the error appeared, widening auto-approval. The
field now keeps a draft and saves it on blur or Enter, only when it passes
jevGateThresholdError. An invalid draft is dropped and the saved value shows
again.

fontStack treated "Monospace" as a family name and quoted it, so the stack
fell through to Geist. Unquoted generic keywords now match in any case. A
quoted generic stays a family name, as CSS reads it.
The Saved confirmation carried role="status", so the form had two status
regions and the e2e lookups of settings.getByRole('status') hit two
elements. aria-live still announces Saved without adding a second status.
…NG-2956)

The walk found that Acknowledge also switched sharing on, which reads as
reading a disclosure, not opting in. The spec asserted that old behaviour;
it now acknowledges, then switches sharing on and off with Space.
…(ENG-2956)

healthReportingEnabled defaults to true and only the acknowledgement gates
it, so sending the acknowledgement alone still started sharing. Acknowledge
now writes reporting off as well, and the switch turns it on. The unit test
uses the real default, which the earlier fixture hid.
A switch with a save in flight was disabled, and a disabled input drops
keyboard focus, so a second Space after toggling went nowhere. The e2e that
toggles health reporting on and back off hit this at its second press.
Read-only keeps focus and still ignores presses until the save finishes.
@quanticstudios
quanticstudios merged commit debc554 into main Nov 2, 2026
4 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.

1 participant