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

refactor(cloud-migration): unexport 3 internal poll-timing constants - #1027

Merged
shiba4life merged 1 commit into
mainfrom
refactor/cloud-migration-unexport-poll-constants
May 13, 2026
Merged

refactor(cloud-migration): unexport 3 internal poll-timing constants#1027
shiba4life merged 1 commit into
mainfrom
refactor/cloud-migration-unexport-poll-constants

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

ts-unused-exports tsconfig.json flagged three exports in src/server/static-react/src/components/tabs/CloudMigrationSettings.tsx:

  • UPGRADE_POLL_INTERVAL_MS
  • UPGRADE_POLL_MAX_MS
  • CANCELLED_BANNER_MS

All four call sites for these constants are inside the same file (lines 91, 120, 124, 127). The colocated test file src/test/components/tabs/CloudMigrationSettings.test.tsx does not import them — it exercises the poll behavior end-to-end through the public component.

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.

Test plan

  • npx ts-unused-exports tsconfig.json no longer lists CloudMigrationSettings.tsx
  • npm run typecheck clean
  • npm run lint — 0 errors (warning count unchanged)
  • npm test — 788/788 passing, including the CloudMigrationSettings test file

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.
@shiba4life
shiba4life enabled auto-merge May 13, 2026 00:20
@shiba4life
shiba4life added this pull request to the merge queue May 13, 2026
Merged via the queue into main with commit de56046 May 13, 2026
12 checks passed
@shiba4life
shiba4life deleted the refactor/cloud-migration-unexport-poll-constants branch May 13, 2026 00:22
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