Repository navigation
refactor(gui): remove dead code left after Svelte cutover - #230
Merged
Merged
Conversation
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.
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.
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
canvas.css,tabs.css,panels.cssand the orphanedStreamTab/*.css(7) +Toast/ToastContainer.css— those components now live insrc/components/machine/andsrc/shell/Toasts.sveltewith scoped<style>blocks.buttons.css,forms.css,layout.css,notifications.css,dialogs.css,typography.css.TS
apiClient,commands,recentFiles,schemas,validation,validationErrors,tauri-types, and thetypes/modules (menuConfig.ts+ test deleted entirely).Config
generate-types.json(a standalonejson2tsmanifest superseded by theschema:generate:clientnpm script, referenced nowhere).vitest.config.tscoverage exclude line (src/vite-env.d.ts— file doesn't exist andsrc/**/*.d.tsalready covers it).Verification
tsc --noEmit,svelte-check(367 files, 0 errors)stylelint, CSS-var guardCloses the post-cutover cleanup task tracked under epic #214.