From 411fee52f368e2d22000da3ead9ad51f35ae46b9 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sun, 23 Aug 2026 20:38:28 -0400 Subject: [PATCH] feat(navigation): add Home to nav drawer and move sidebar collapse toggle to top --- .../components/navigation/DesktopSidebar.tsx | 16 +-- .../navigation/RepoQuickSwitchSheet.tsx | 18 +-- .../navigation/moreDrawerItems.test.ts | 135 +++++++++++------- .../components/navigation/moreDrawerItems.ts | 13 +- 4 files changed, 100 insertions(+), 82 deletions(-) diff --git a/frontend/src/components/navigation/DesktopSidebar.tsx b/frontend/src/components/navigation/DesktopSidebar.tsx index feb46608..7f5cc5f3 100644 --- a/frontend/src/components/navigation/DesktopSidebar.tsx +++ b/frontend/src/components/navigation/DesktopSidebar.tsx @@ -71,14 +71,19 @@ export function DesktopSidebar() { } } + const [homeItem, ...routeItems] = items const navItems: MoreDrawerItem[] = [ + homeItem, { key: 'repos', label: 'Repos', icon: FolderGit2 }, - ...items, + ...routeItems, ] return ( <> +
+ +
{primary.length > 0 && ( @@ -96,15 +101,6 @@ export function DesktopSidebar() { )} -
- {!collapsed && ( -
- Navigation -
- )} - -
-
{navItems.map((item: MoreDrawerItem) => ( { - navigateAndClose('/') - } - return ( <>
-