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

refactor(constants/api): drop 3 dead exports (API_BATCH_REQUEST_LIMIT, SCHEMA_OPERATIONS, API_BASE_URLS dup re-export) - #1014

Merged
shiba4life merged 1 commit into
mainfrom
kanban/c04f3-drop-3-dead-api-exports
May 12, 2026
Merged

refactor(constants/api): drop 3 dead exports (API_BATCH_REQUEST_LIMIT, SCHEMA_OPERATIONS, API_BASE_URLS dup re-export)#1014
shiba4life merged 1 commit into
mainfrom
kanban/c04f3-drop-3-dead-api-exports

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

Sibling cleanup to #1013 — applies the same dead-export audit pattern to constants/api.ts, which #1013 explicitly carved out of scope. Pure deletion across 3 files (-19 / +2). No new files, no churn elsewhere.

Removed

  • API_BATCH_REQUEST_LIMITconstants/api.ts:12 + re-export at api/index.ts:91. Zero consumers in src/server/static-react/.
  • SCHEMA_OPERATIONSconstants/api.ts:144-151 (6 keys) + re-export at api/index.ts:100 + dead name in api/clients/schemaClient.ts:5's multi-name import list (never used in the body, no dynamic SCHEMA_OPERATIONS[...] access either).
  • API_BASE_URLS re-export in constants/api.ts — the constants/api.ts:6 import from ../api/endpoints + the constants/api.ts:62 re-export. The canonical declaration in api/endpoints.ts:49 (generated from Rust OpenAPI) stays put. The single consumer, api/clients/ingestionClient.ts:2, already imports it directly from ../endpoints, so this constants/api.ts re-export was unreachable (api/index.ts doesn't re-export it).

Verified

  • npm run typecheck clean.
  • npm test — 788 tests pass.
  • Post-edit git grep confirms zero hits for all three removed names; API_BASE_URLS remains only in the canonical endpoints.ts + its sole consumer ingestionClient.ts + the codegen script scripts/generate-endpoints.js.

Test plan

  • Frontend Tests CI (npm typecheck + vitest)
  • Rust Tests CI (no Rust changes; should pass clean)
  • E2E UI Tests CI

🤖 Generated with Claude Code

- API_BATCH_REQUEST_LIMIT — declared in constants/api.ts and re-exported
  in api/index.ts; zero consumers anywhere in src/server/static-react/.
- SCHEMA_OPERATIONS — declared, re-exported from the barrel, and named
  in schemaClient.ts's import list but never used in the body; no
  dynamic SCHEMA_OPERATIONS[...] access either.
- API_BASE_URLS re-export in constants/api.ts — the sole consumer
  (ingestionClient.ts) already imports it directly from api/endpoints
  (the canonical generated source). The barrel api/index.ts doesn't
  re-export it, so the constants/api.ts re-export was unreachable.

Sibling cleanup to #1013 (SCHEMA_ACTION_TYPES); same audit pattern,
constants/api.ts was carved out of that PR's scope. Net: pure deletion
across 3 files (-19/+2). api/endpoints.ts (canonical API_BASE_URLS)
untouched.

Verified: npm run typecheck, npm test (788 tests pass).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 12, 2026 04:15
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit 2fe8cea May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the kanban/c04f3-drop-3-dead-api-exports branch May 12, 2026 04:17
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