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

refactor(sidebar): drop dead SIDEBAR_ITEMS re-export - #1018

Merged
shiba4life merged 1 commit into
mainfrom
refactor/drop-sidebar-items-reexport
May 12, 2026
Merged

refactor(sidebar): drop dead SIDEBAR_ITEMS re-export#1018
shiba4life merged 1 commit into
mainfrom
refactor/drop-sidebar-items-reexport

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

Delete the dead export { SIDEBAR_ITEMS } re-export at the bottom of
src/server/static-react/src/components/Sidebar.tsx. The named export has
zero consumers anywhere in the codebase — SIDEBAR_ITEMS is only used
internally by the Sidebar component itself (declaration at line 26,
.filter() use inside renderGroup).

Continues the dead-export audit pattern from #1014, #1015, #1016, #1017
which removed SidebarItem and SIDEBAR_ITEMS from constants/ui.ts.
Those PRs explicitly listed this re-export as out-of-scope follow-up.

What stays

  • interface SidebarItemDef (line 17) — local-only, used by the component
  • const SIDEBAR_ITEMS: SidebarItemDef[] (line 26) — local-only, used at line 57
  • export default Sidebar (line 122) — consumed by App.tsx:8

Verification

  • grep "SIDEBAR_ITEMS" src/server/static-react/src/ returns exactly 2 hits
    in Sidebar.tsx (the local declaration and the in-component .filter() use)
    and 0 hits anywhere else.
  • npm run typecheck — clean
  • npm test — 788/788 passing
  • Diff: 1 deletion in 1 file. No imports change.

Test plan

  • Frontend typecheck passes
  • Frontend tests pass (vitest, 65 files / 788 tests)
  • Sidebar still renders (default export untouched; App.tsx import path unchanged)

The named `export { SIDEBAR_ITEMS }` at the bottom of
src/server/static-react/src/components/Sidebar.tsx has no consumers —
the constant is only used internally by the Sidebar component itself
(declaration at line 26, .filter() use inside renderGroup). Continues
the audit pattern from #1014/#1015/#1016/#1017 which removed the
SidebarItem type and SIDEBAR_ITEMS from constants/ui.ts.

The local `interface SidebarItemDef`, `const SIDEBAR_ITEMS`, and the
`export default Sidebar` are untouched.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 12, 2026 08:14
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit 356a27c May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the refactor/drop-sidebar-items-reexport branch May 12, 2026 08:16
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