Skip to content

fix(web): wire 3 dead settings controls — auto-preview (+refresh), indent-size, title Escape-revert#828

Merged
MrCoder merged 1 commit into
masterfrom
fix/wire-autopreview-indent-title
Jun 18, 2026
Merged

fix(web): wire 3 dead settings controls — auto-preview (+refresh), indent-size, title Escape-revert#828
MrCoder merged 1 commit into
masterfrom
fix/wire-autopreview-indent-title

Conversation

@MrCoder

@MrCoder MrCoder commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes three product bugs the e2e gap suite surfaced (#824, #825, #826), and flips their test.fixme guards to real passing tests. All conservative — defaults preserve existing behavior.

#824 — auto-preview toggle was a dead control

settings.autoPreview was never passed to PreviewFrame. Now wired at both call sites; added a render() method on PreviewHandle and a design-system Refresh control in RendererHeader shown only when auto-preview is off (default stays on → no UI change for existing users). PRV-6 → real debounce-proof test (off → edit → preview stays stale past PREVIEW_DEBOUNCE → Refresh updates it).

#825 — indent-size setting was not wired

Threaded indentWith/indentSize into CodeEditor; sets CM6's indentUnit facet via a live Compartment (matches the theme/keymap pattern). Confirmed the DSL grammar's delimitedIndent reads this facet, so it changes observable block-indent width. SET-4 → real test (default 2 → 4).

#826 — title input had no Escape-to-revert

Added a draft buffer to the title field: keystrokes edit the draft, Enter/blur commit, Escape reverts to the last committed value. Handles the async-store-update flicker edge case; no-op commits don't mark dirty. HDR-2 → real test.

Validation

  • pnpm -C web typecheck clean; pnpm -C web test 1087 passed, 1 pre-existing skip (added unit tests for all 3 fixes).
  • e2e header/settings/preview: 16 passed, 4 skipped, 0 failed (the 3 flipped tests pass; rest green).
  • Kept fixme (genuinely need auth): HDR-3/4/6, SET-7.

Closes #824, #825, #826.

…ze to CM6 (#825), title Escape-revert (#826); flip HDR-2/SET-4/PRV-6 e2e fixmes to real passing tests

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01DaTcJeuioVJaqvH8ULCaY6
@MrCoder MrCoder merged commit dcde1eb into master Jun 18, 2026
4 checks passed
@MrCoder MrCoder deleted the fix/wire-autopreview-indent-title branch June 18, 2026 08:14
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.

Auto-preview toggle is a dead control (settings.autoPreview not wired to PreviewFrame)

1 participant