Skip to content

refactor: kebab-case the route tree and drop unused frontend files - #99

Merged
dimslaev merged 1 commit into
masterfrom
refactor/frontend-kebab-and-dead-files
Oct 23, 2026
Merged

dimslaev merged 1 commit into
masterfrom
refactor/frontend-kebab-and-dead-files

Conversation

@dimslaev

Copy link
Copy Markdown
Owner

Renamed

  • src/routeTree.gen.ts -> src/route-tree.gen.ts via the router plugin's generatedRouteTree option. Regenerated by vite build, content unchanged. Updated main.tsx and the biome.json exclude.

Left as is

  • src/shared/api/core/{ApiError,ApiRequestOptions,ApiResult,CancelablePromise,OpenAPI}.ts. @hey-api/openapi-ts 0.73 hardcodes these names in its legacy client writer (writeFileSync(..., "OpenAPI.ts")), with no option to change them.

Deleted (found with knip, each checked by grep for importers)

  • shared/lib/use-copy-to-clipboard.ts, shared/lib/use-mobile.ts (only sidebar used it)
  • shared/ui/: alert, badge, button-group, card, checkbox, command, pagination, popover, select, separator, sidebar, skeleton, table, textarea, tooltip
  • Deps only those files used: @radix-ui/react-{checkbox,popover,select,separator,tooltip}, cmdk. bun.lock regenerated.
  • Biome's vendored-file glob trimmed to what's left in shared/ui.

Dead exports

  • Un-exported useStories and the types Filters, TopicDef, Option, RailMode, ToggleVia. Unused exports inside vendored shadcn files stay.

Not touched

  • knip also flags @radix-ui/react-{radio-group,scroll-area}, form-data, react-error-boundary, react-icons, @tanstack/router-devtools as unused. None were used by the deleted files, so they're out of scope here. Others it flags (fontsource, tailwind, tw-animate-css, typography) are used from index.css.
  • No doc named anything renamed or removed.

Checks: bun run build, lint, lint:layers, check-banned-module-names.sh pass. Playwright: 64/64 locally.


Generated by Claude Code

@dimslaev
dimslaev merged commit e6199a6 into master Oct 23, 2026
6 checks passed
@dimslaev
dimslaev deleted the refactor/frontend-kebab-and-dead-files branch October 23, 2026 19:59
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.

2 participants