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

refactor(constants/ui): drop 2 dead exports + unexport MutationTypeOption - #1015

Merged
shiba4life merged 1 commit into
mainfrom
refactor/constants-ui-dead-exports
May 12, 2026
Merged

refactor(constants/ui): drop 2 dead exports + unexport MutationTypeOption#1015
shiba4life merged 1 commit into
mainfrom
refactor/constants-ui-dead-exports

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Follow-up to #1014 (the constants/api.ts cleanup) — same audit pattern applied to the sibling constants/ui.ts, which #1014 explicitly carved out as out of scope.

Summary

Three deletions / changes in src/server/static-react/src/constants/ui.ts:

  • TAB_TRANSITION_DURATION_MS (was line 11) — deleted. Zero consumers across src/server/static-react/. The // Tab Configuration and Navigation banner above it is kept because the sibling FORM_FIELD_DEBOUNCE_MS (still live) lives under the same banner.
  • AUTH_INDICATORS + its banner comment (was lines 132-137) — deleted. Zero consumers across src/server/static-react/. Banner only described this one const, so it goes too.
  • MutationTypeOption interface (was line 107) — kept, but export keyword dropped. The interface is still referenced inside this file as the type parameter for MUTATION_TYPES; it has zero external consumers, so it's now file-internal.

Verified by git grep at base commit 2fe8cea:

  • TAB_TRANSITION_DURATION_MS → 1 hit pre-edit (declaration), 0 post-edit
  • AUTH_INDICATORS → 1 hit pre-edit (declaration), 0 post-edit
  • MutationTypeOption → 2 hits both pre- and post-edit, both inside constants/ui.ts (the interface decl + the MUTATION_TYPES type annotation)
  • export interface MutationTypeOption → 0 hits post-edit

Net diff: 1 file, +1/-9.

Test plan

  • npm run typecheck — clean
  • npm run lint — no new warnings/errors in the touched file (the 1 pre-existing error in QueryForm.tsx is unrelated)
  • npm test — 788 tests pass

🤖 Generated with Claude Code

…tion

Follow-up to PR #1014's `constants/api.ts` cleanup, applying the same
audit pattern to the sibling `constants/ui.ts`:

- Delete `TAB_TRANSITION_DURATION_MS` (was ui.ts:11) — zero consumers.
  Sibling `FORM_FIELD_DEBOUNCE_MS` under the same banner stays.
- Delete `AUTH_INDICATORS` block + banner (was ui.ts:132-137) — zero
  consumers.
- Drop `export` keyword from `MutationTypeOption` interface (was
  ui.ts:107) — used only inside this file as the type parameter for
  `MUTATION_TYPES`. Interface body unchanged.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 12, 2026 05:17
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit 9f65e5b May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the refactor/constants-ui-dead-exports branch May 12, 2026 05:19
github-merge-queue Bot pushed a commit that referenced this pull request May 12, 2026
SchemaCacheMeta and DefaultSchemaState are used only inside redux.ts
(as the type of the `cache` field and the annotation on DEFAULT_SCHEMA_STATE,
respectively); the constants barrel doesn't re-export them.

Continues the dead-export audit pattern from PRs #1014, #1015, #1016, #1017,
and #1018. Interfaces are preserved as file-local typing.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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