Skip to content

refactor(app): remove M0's CodeMirror spike - #220

Merged
bketelsen merged 1 commit into
mainfrom
groom/remove-spike
Nov 12, 2026
Merged

bketelsen merged 1 commit into
mainfrom
groom/remove-spike

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Grooming from #213, with no change in behaviour for a user:

  • Remove M0's CodeMirror spike (app/src/spike/, 9 files). It measured CodeMirror 6 in WebKitGTK for M0 (plan 0001, Phase 5) and loaded only in the development browser through ?spike=NAME. Live preview in app/src/editor/preview/ grew from it, and its measurement is done. Nothing outside the folder imported it, and no dependency becomes unused.
  • app/src/desktop.tsx loses the ?spike= switch: runDesktop now only renders App, so it is synchronous, and main.tsx no longer awaits it.
  • docs/design/app.md and AGENTS.md no longer name the folder. The design doc's table also drops a stale FROSTNOTES_SPIKE entry. Plans and ADRs keep their history as written.
  • store.PruneChanges stays. It has no caller outside tests, and the changes log is never pruned. A comment now says so and points at changes log is never pruned: add a retention step that calls store.PruneChanges #219, which tracks the retention step that will call it.

Risk tier

Risk tier: 1 — deletes development-only code and its tests, and changes docs and a comment. The web build for lodge never loaded the spike (main.tsx keeps desktop.tsx out of it). No path in .github/risk-paths.json matches.

Docs housekeeping

  • Cross-links checked: the edited lines in docs/design/app.md link nothing new, and no doc links into app/src/spike/.

Verification

  • make check green (host)
  • make ui-check green (nsl): 95 test files, 810 tests
  • make web-build green (nsl)
  • Development browser on the mock (VITE_MOCK=1 pnpm exec vite in nsl): /?spike=cm6&run now renders the app, with no console error
  • make m4-evidence green (nsl): TestIWebAppInLodge, TestIRenderedNotesRunNoScript and TestIPorterThroughLodge pass in lodge's development build
  • Revert test: exempt (a removal of development-only code with no new behaviour)

The spike (app/src/spike) measured CodeMirror 6 in WebKitGTK for M0 and
loaded only in the development browser through ?spike=. Live preview in
app/src/editor/preview grew from it and the measurement is done, so the
spike, its tests and the ?spike= switch in desktop.tsx go. The design doc
and AGENTS.md no longer name it.

PruneChanges keeps its place in the store with a comment: nothing calls
it yet, and #219 tracks the retention step that will.
@github-actions github-actions Bot added the level:L3 Skim label Nov 12, 2026
@frostyard-machines

Copy link
Copy Markdown
Contributor Author

Cross-review at b065f80 (base 4ceb7fe): reviewer openai/gpt-6.1-sol, coder anthropic/claude-opus-5-5. All 14 changed files reviewed. Result: Ready, no findings, Blocking: none.

@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 12, 2026
@bketelsen
bketelsen merged commit e3c6313 into main Nov 12, 2026
12 checks passed
@bketelsen
bketelsen deleted the groom/remove-spike branch November 12, 2026 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants