Repository navigation
feat(gui): cut over to Svelte 5, remove React (#221) - #229
Merged
Merged
Conversation
Closes #221. Completes the React->Svelte 5 migration (epic #214). Flips the shipped app to Svelte and removes React entirely. - Entry: index.html now mounts src/main.svelte.ts (#svelte-root); the dev-only index.svelte.html and src/main.tsx are gone. - Deleted all React source: every .tsx/.test.tsx (67 files), src/hooks/, src/stores/ (Zustand), src/contexts/, src/layouts/, the RTL integration tests, and the orphaned lib/fileOperations.ts. - Removed 10 packages: react, react-dom, zustand, lucide-react, react-zoom-pan-pinch, @hello-pangea/dnd, @testing-library/react, @types/react, @types/react-dom, @vitejs/plugin-react (and the unused @testing-library/user-event). - Toolchain: vite/vitest drop the react() plugin (keep svelte() + svelteTesting()); tsconfig drops the dead jsx setting. Decoupled tests/setup.ts, lib/numericFields.ts and lib/streamFeedback.ts from the deleted modules. - Docs: new migration ADR (+ nav + overview link), updated overview + 9 secondary docs (React->Svelte), a CHANGELOG entry, and the bundle baseline reset to ~308 KB. Final metrics vs the React baseline: production code 8,712 -> 6,031 LoC (-31%), tests 7,695 -> 4,572 (-41%), frontend deps -10 packages, production JS bundle 599 KB -> 308 KB (-48%). Fixes #147 (shipped earlier in the viewport rewrite). 362 tests; tsc + svelte-check clean; coverage 80.5/70.3/81.1/85.7. dist/index.html mounts Svelte. Adversarially reviewed (zero surviving React; final-cutover pass). Closes #221. Completes #214.
7 tasks
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.
Closes #221. The cutover — flips the shipped app to Svelte and removes React. This is the final slice of epic #214; with it merged, the React→Svelte 5 migration is complete.
What changed
index.htmlnow mountssrc/main.svelte.ts(#svelte-root); the dev-onlyindex.svelte.htmlandsrc/main.tsxare gone..tsx/.test.tsx(67 files),src/hooks/,src/stores/(Zustand),src/contexts/,src/layouts/, the RTL integration tests, and the orphanedlib/fileOperations.ts.react,react-dom,zustand,lucide-react,react-zoom-pan-pinch,@hello-pangea/dnd,@testing-library/react,@types/react,@types/react-dom,@vitejs/plugin-react.vite.config.ts/vitest.config.tsdrop thereact()plugin (keepsvelte()+svelteTesting());tsconfig.jsondrops the deadjsxsetting. Three framework-agnostic files were decoupled from deleted modules (tests/setup.ts,lib/numericFields.ts,lib/streamFeedback.ts).overview.md+ 9 secondary architecture/guide docs (React→Svelte), a CHANGELOG entry, and the bundle baseline reset to the new reality.Final metrics (vs the React baseline)
Verification
tsc(clean),svelte-check(0/0), 362 vitest tests, coverage 80.5/70.3/81.1/85.7 (> 60/50/65/60), stylelint,lint:css:vars,vite build(→ 308 KB), bundle budget (vs the new 308 KB baseline).src/orpackage.json./→index.html) renders the full Svelte app (Prepare/Machine workspaces, forms, viewport, layers, dialogs, CLI banner, status bar).dist/index.htmlcorrectness, docs).Notes for reviewers
types/converters.tswindDefinitionToProject(superseded bywindDefinitionToDocument) and the unused prop-type aliases intypes/components.ts.Closes #221. Completes #214.