Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

refactor(api/views): drop 3 dead exports + unexport 2 internal types - #1022

Merged
shiba4life merged 1 commit into
mainfrom
kanban/45ca9-views-dead-exports
May 12, 2026
Merged

refactor(api/views): drop 3 dead exports + unexport 2 internal types#1022
shiba4life merged 1 commit into
mainfrom
kanban/45ca9-views-dead-exports

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

src/server/static-react/src/api/clients/viewsClient.ts exported six
symbols that ts-unused-exports flagged. Of those:

  • ViewState, getView, createView, CreateViewRequest — zero
    references anywhere in the codebase → deleted.
  • TransformView, ViewListResponse — only used file-locally
    (TransformView indirectly through the still-exported ViewWithState
    tuple, ViewListResponse as the response type for listViews)
    kept but unexported.

ViewWithState and the four active CRUD functions (listViews,
approveView, blockView, deleteView) are untouched. The only
external consumer — src/server/static-react/src/components/tabs/ViewsTab.tsx
— imports exactly those five symbols and nothing else from this file,
so its imports are unaffected.

Net diff: 1 file changed, 2 insertions(+), 31 deletions(-).

Same pattern as #1014 / #1015 / #1017 / #1018.

Test plan

  • npm run typecheck passes (no missed references)
  • npm test (vitest) — 65 files / 788 tests pass
  • npx ts-unused-exports tsconfig.json | grep viewsClient.ts returns
    nothing
  • No other files touched

🤖 Generated with Claude Code

viewsClient.ts exported ViewState, getView, createView, and
CreateViewRequest with zero references anywhere else in the codebase;
TransformView and ViewListResponse were exported but only used
file-locally (TransformView indirectly through ViewWithState).

Removed the dead symbols and dropped the export keyword on the two
file-local types. ViewWithState and the four active CRUD functions
(listViews, approveView, blockView, deleteView) are untouched, and
ViewsTab.tsx — the only external consumer — is unchanged.

Same pattern as #1014/#1015/#1017/#1018.
@shiba4life
shiba4life enabled auto-merge May 12, 2026 11:14
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit 562404d May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the kanban/45ca9-views-dead-exports branch May 12, 2026 11:17
github-merge-queue Bot pushed a commit that referenced this pull request May 13, 2026
…1027)

ts-unused-exports flagged UPGRADE_POLL_INTERVAL_MS, UPGRADE_POLL_MAX_MS,
and CANCELLED_BANNER_MS in CloudMigrationSettings.tsx. All four call
sites are inside the same file; the colocated test file does not import
them. Drop the `export` keyword on the three const declarations.

Behavior-preserving — pure dead-export sweep. Continues the cleanup
from #1014/#1015/#1017/#1018/#1022/#1023/#1024/#1025/#1026.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant