Repository navigation
refactor(app): remove M0's CodeMirror spike - #220
Merged
Merged
Conversation
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.
Contributor
Author
bketelsen
approved these changes
Nov 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Grooming from #213, with no change in behaviour for a user:
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 inapp/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.tsxloses the?spike=switch:runDesktopnow only rendersApp, so it is synchronous, andmain.tsxno longer awaits it.docs/design/app.mdandAGENTS.mdno longer name the folder. The design doc's table also drops a staleFROSTNOTES_SPIKEentry. Plans and ADRs keep their history as written.store.PruneChangesstays. It has no caller outside tests, and thechangeslog 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.tsxkeepsdesktop.tsxout of it). No path in.github/risk-paths.jsonmatches.Docs housekeeping
docs/design/app.mdlink nothing new, and no doc links intoapp/src/spike/.Verification
make checkgreen (host)make ui-checkgreen (nsl): 95 test files, 810 testsmake web-buildgreen (nsl)VITE_MOCK=1 pnpm exec vitein nsl):/?spike=cm6&runnow renders the app, with no console errormake m4-evidencegreen (nsl):TestIWebAppInLodge,TestIRenderedNotesRunNoScriptandTestIPorterThroughLodgepass in lodge's development build