lucaronin
178d0784d1
refactor: decompose TabBar and Sidebar for reduced complexity
TabBar (8.50 → 9.38):
- Extract useTabDrag hook for drag state management
- Extract computeDropTarget/computeInsertIndex helpers
- Extract TabItem, DropIndicator, TabBarActions sub-components
- TabBar main function reduced from cc=23/176 LoC to ~25 LoC
Sidebar (8.57 → 9.38, SidebarParts 10.0):
- Create SidebarParts.tsx with NavItem, SectionContent, VisibilityPopover
- Extract useSidebarSections hook for section computation
- Extract useEntryCounts hook consolidating 3 useMemos into 1
- Extract useOutsideClick hook (eliminates 3 duplicate useEffect patterns)
- Extract buildCustomizeArgs, computeReorder pure helpers
- Extract CommitButton, ContextMenuOverlay, CustomizeOverlay
- isSelectionActive extracted as pure function (was closure)
- Sidebar reduced from 604 LoC/cc=34 to ~120 LoC/cc=11
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 10:37:33 +01:00
..
2026-02-16 16:56:44 +01:00
2026-02-20 23:07:10 +01:00
2026-02-21 18:45:25 +01:00
2026-02-21 18:45:25 +01:00
2026-02-16 16:56:44 +01:00
2026-02-21 09:41:46 +01:00
2026-02-21 09:42:45 +01:00
2026-02-21 09:41:46 +01:00
2026-02-17 12:07:23 +01:00
2026-02-21 19:07:41 +01:00
2026-02-21 19:07:41 +01:00
2026-02-21 09:39:37 +01:00
2026-02-21 18:36:28 +01:00
2026-02-22 10:02:35 +01:00
2026-02-16 14:50:29 +01:00
2026-02-21 22:27:18 +01:00
2026-02-22 10:22:26 +01:00
2026-02-22 10:22:26 +01:00
2026-02-22 10:18:05 +01:00
2026-02-21 18:36:28 +01:00
2026-02-22 10:18:05 +01:00
2026-02-16 16:56:44 +01:00
2026-02-18 10:52:01 +01:00
2026-02-21 18:36:28 +01:00
2026-02-22 10:37:33 +01:00
2026-02-22 10:37:33 +01:00
2026-02-22 10:18:05 +01:00
2026-02-17 17:45:31 +01:00
2026-02-21 17:24:46 +01:00
2026-02-22 10:37:33 +01:00
2026-02-16 16:56:44 +01:00
2026-02-21 13:27:33 +01:00