Skip to content

chore: knip cleanup - remove unused exports and dead code#2761

Open
Myestery wants to merge 4 commits intofix/deploy-and-ephemeral-invoke-cli-argsfrom
knip
Open

chore: knip cleanup - remove unused exports and dead code#2761
Myestery wants to merge 4 commits intofix/deploy-and-ephemeral-invoke-cli-argsfrom
knip

Conversation

@Myestery
Copy link
Contributor

Summary

  • Ran knip --strict to identify and remove unused exports, dead code, and duplicate exports across the desktop app
  • Removed @tauri-apps/plugin-http dependency from JS (npm), Rust (Cargo.toml), plugin init (lib.rs), capabilities (default.json), and storybook mocks — it was never imported in TS source
  • Added knip.json configuration to handle false positives (Modal.tsx used by stories, setup.ts used by vitest, tailwindcss-animate used in tailwind config)
  • Consolidated duplicate named + default exports to single default exports
  • Removed unused type definitions, interfaces, and utility functions

Test plan

  • npm run typecheck passes
  • npm run format passes
  • npm run lint:fix passes
  • npx knip --strict passes clean

The log viewer's copy button was copying the empty `logs` prop instead
of falling back to `title` like the display does. Also fixes pre-existing
typecheck errors in test files.
…ency

Ran knip --strict to identify and remove unused exports across UI components,
services, types, and utilities. Removed the unused tauri-plugin-http dependency
from both JS and Rust sides. Added knip.json configuration for false positives.
Rename `host` + `subdomain` fields to single `domain` field and
`definition` to `definitions` in HttpApiDeployment type. Add
migrateDeploymentSchema to auto-migrate legacy YAML files before
deploy, deployment list, and deployment delete operations.
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