Skip to content

refactor(gui): remove dead code left after Svelte cutover - #230

Merged
CameronBrooks11 merged 1 commit into
mainfrom
chore/post-cutover-cleanup
Jun 27, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
chore/post-cutover-cleanup

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

What

Post-cutover dead-code sweep of the GUI now that the React→Svelte 5 migration (epic #214) is complete and React is fully removed. Deletion-only — no behavior change.

Net −3372 lines across 38 files.

CSS

  • Deleted the React-era stylesheets canvas.css, tabs.css, panels.css and the orphaned StreamTab/*.css (7) + Toast/ToastContainer.css — those components now live in src/components/machine/ and src/shell/Toasts.svelte with scoped <style> blocks.
  • Removed dead classes from buttons.css, forms.css, layout.css, notifications.css, dialogs.css, typography.css.
  • CSS bundle 64.2 → 35.8 KB (−44%).

TS

  • Removed dead exports and their paired test blocks across apiClient, commands, recentFiles, schemas, validation, validationErrors, tauri-types, and the types/ modules (menuConfig.ts + test deleted entirely).

Config

  • Dropped the vestigial generate-types.json (a standalone json2ts manifest superseded by the schema:generate:client npm script, referenced nowhere).
  • Removed a dead vitest.config.ts coverage exclude line (src/vite-env.d.ts — file doesn't exist and src/**/*.d.ts already covers it).

Verification

  • ✅ tsc --noEmit, svelte-check (367 files, 0 errors)
  • ✅ stylelint, CSS-var guard
  • ✅ 315 tests pass, build, bundle budget
  • ✅ Full visual sweep of every surface (Prepare forms/layer editor, Machine streaming UI, menubar dropdown, About, Diagnostics) — no live style removed
  • ✅ Adversarial review of the diff — every removed symbol/class confirmed to have zero live references

Closes the post-cutover cleanup task tracked under epic #214.

Sweep the GUI for code orphaned by the React->Svelte 5 migration now
that React is fully removed. Deletion-only; no behavior change.

- CSS: drop the React-era stylesheets (canvas/tabs/panels and the
  StreamTab/Toast component CSS, now scoped inside their Svelte
  components) and dead classes across buttons/forms/layout/
  notifications/dialogs/typography. CSS bundle 64.2 -> 35.8 KB.
- TS: remove dead exports and their paired test blocks across
  apiClient, commands, recentFiles, schemas, validation,
  validationErrors, tauri-types, and the types/ modules.
- Config: drop the vestigial generate-types.json (superseded by the
  schema:generate:client npm script) and a dead vitest coverage
  exclude line.

Verified: tsc, svelte-check, stylelint, css-var guard, 315 tests,
build, and bundle budget all green; a full visual sweep of every
surface confirms no live style was removed.
@CameronBrooks11
CameronBrooks11 merged commit 725b153 into main Jun 27, 2026
18 checks passed
@CameronBrooks11
CameronBrooks11 deleted the chore/post-cutover-cleanup branch June 27, 2026 02:09
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