Skip to content

Cutover: remove React, swap toolchain, docs/ADR, merge to main #221

Closed

Description

@CameronBrooks11

What

The cutover. With every workflow at Svelte parity on main (behind the dev-only entry), flip the Vite entry to Svelte, remove React entirely, swap the build/test toolchain, update the docs + add an ADR, and post the final metrics — one PR to main.

Why

One source of truth; the shipped app moves from React to Svelte in a single, reviewable, reversible commit (no prolonged dual-framework build).

Where

fiberpath_gui/package.json, vite.config.ts, vitest.config.ts, tsconfig.json, docs/ (overview.md, guides/tech-stack.md, architecture/state-management.md, guides/performance.md, guides/schemas.md, testing.md).

Scope

  • Remove react, react-dom, zustand, lucide-react, react-zoom-pan-pinch, @hello-pangea/dnd, @testing-library/react, @types/react, @types/react-dom.
  • Flip index.html to mount Svelte (retire the dev-only Svelte entry); replace @vitejs/plugin-react with @sveltejs/vite-plugin-svelte in Vite + Vitest configs; migrate any remaining React-Testing-Library tests to @testing-library/svelte.
  • Update the docs to describe the Svelte architecture; add an ADR recording the React→Svelte decision and rationale.
  • Post the final metrics table: handwritten TS + CSS LoC, dependency count, bundle JS/CSS — vs the Svelte 5 foundation + config-forms vertical slice (decision gate) #215 baseline.

Acceptance criteria

  • Zero React / Zustand / RTL dependencies remain.
  • npm run build, lint, svelte-check, vitest, and tauri build all green.
  • Docs updated + ADR added.
  • Final metrics posted (directional targets: handwritten LoC ↓, deps ↓ ≥10 packages, bundle JS ↓).
  • Entry flipped to Svelte; React removed; PR merged to main with CI Check green.

Notes

Depends on #216, #217, #218, #219, #220. Part of #214.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gui

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions