From e2c2e0025e311f1819bfdd44cf8ab4fa0e6ce880 Mon Sep 17 00:00:00 2001 From: Tom Tang <4220945+shiba4life@users.noreply.github.com> Date: Tue, 12 May 2026 15:18:03 +0800 Subject: [PATCH] refactor(constants/ui): drop dead SidebarItem + SIDEBAR_ITEMS Both have zero importers. Sidebar.tsx defines its own local SidebarItemDef interface and SIDEBAR_ITEMS constant, never importing from constants/ui. Continues the dead-export audit from #1014, #1015, and #1016. - Delete `export interface SidebarItem` (was ui.ts:20-25) - Delete `export const SIDEBAR_ITEMS` (was ui.ts:62-72) plus its misleading comment claiming it was used by the Sidebar component Co-Authored-By: Claude Opus 4.7 (1M context) --- src/server/static-react/src/constants/ui.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/server/static-react/src/constants/ui.ts b/src/server/static-react/src/constants/ui.ts index 91d888c6..bedbfc51 100644 --- a/src/server/static-react/src/constants/ui.ts +++ b/src/server/static-react/src/constants/ui.ts @@ -17,13 +17,6 @@ export interface TabDefinition { group: "main" | "advanced"; } -export interface SidebarItem { - id: string; - label: string; - icon: string; - group: string; -} - // Tab Definitions // Main tabs: core user-facing features (5 tabs max visible) // Advanced tabs: developer/power-user tools in "More" dropdown @@ -59,18 +52,6 @@ export const DEFAULT_TABS: readonly TabDefinition[] = [ { id: "conflicts", label: "Sync Conflicts", icon: "⚡", group: "advanced" }, ]; -// Sidebar Navigation Items (used by Sidebar component) -export const SIDEBAR_ITEMS: readonly SidebarItem[] = [ - { id: "agent", label: "Agent", icon: "\u{1F916}", group: "MAIN" }, - { id: "data-browser", label: "Browse", icon: "\u{1F4CA}", group: "DATA" }, - { id: "query", label: "Query", icon: "\u{1F50D}", group: "DATA" }, - { id: "schemas", label: "Schemas", icon: "\u{1F4CB}", group: "DATA" }, - { id: "smart-folder", label: "Import", icon: "\u{1F4E5}", group: "IMPORT" }, - { id: "file-upload", label: "Files", icon: "\u{1F4C4}", group: "IMPORT" }, - { id: "people", label: "People", icon: "\u{1F465}", group: "SOCIAL" }, - { id: "discovery", label: "Discover", icon: "\u{1F310}", group: "SOCIAL" }, -]; - // Button Text Constants export const BUTTON_TEXT = { approve: "Approve",