From 17b88eb1e5da88f4faf04f5f4c6253f2f599a506 Mon Sep 17 00:00:00 2001 From: Tom Tang <4220945+shiba4life@users.noreply.github.com> Date: Tue, 12 May 2026 16:14:02 +0800 Subject: [PATCH] refactor(sidebar): drop dead SIDEBAR_ITEMS re-export MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/server/static-react/src/components/Sidebar.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/server/static-react/src/components/Sidebar.tsx b/src/server/static-react/src/components/Sidebar.tsx index 7f6dc90a..9094ea73 100644 --- a/src/server/static-react/src/components/Sidebar.tsx +++ b/src/server/static-react/src/components/Sidebar.tsx @@ -118,5 +118,4 @@ function Sidebar({ activeTab, onTabChange }: SidebarProps) { ) } -export { SIDEBAR_ITEMS } export default Sidebar