Skip to content

web: CodeMirror source editor in place of the textarea - #10

Merged
deaneeth merged 1 commit into
mainfrom
feat/phase-10-editor
Oct 26, 2026
Merged

deaneeth merged 1 commit into
mainfrom
feat/phase-10-editor

Conversation

@deaneeth

Copy link
Copy Markdown
Member

Replaces the source textarea with a CodeMirror 6 editor (line numbers, undo history, standard editing keys) from the Phase 7 plan.

  • SourceEditor is a controlled wrapper: edits call onChange, and choosing an example replaces the document.
  • Themed from the page's CSS tokens, so it follows light and dark.
  • New e2e check: choosing an example updates the editor. The smoke test still types into the source box and gets the same results.

Checks run locally: lint, typecheck, 4 unit tests, all 7 Playwright tests.

The source box is now a CodeMirror editor with line numbers, history and
standard editing keys, themed from the page's CSS tokens. It keeps the same
interface: the value is controlled, and choosing an example replaces the
document. The smoke test types into it, and checks that choosing an example
updates it.
@deaneeth
deaneeth merged commit db3abd3 into main Oct 26, 2026
2 checks passed
@deaneeth
deaneeth deleted the feat/phase-10-editor branch October 27, 2026 01:16
@deaneeth
deaneeth restored the feat/phase-10-editor branch October 27, 2026 01:16
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