From c3802aa02175ffa6a214fe449c368d21100ee799 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Sat, 23 May 2026 21:58:45 -0400 Subject: [PATCH] feat(frontend): add home and compact add button to repo quick switch sheet --- .../navigation/RepoQuickSwitchSheet.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/navigation/RepoQuickSwitchSheet.tsx b/frontend/src/components/navigation/RepoQuickSwitchSheet.tsx index 8d84eb62..796de07f 100644 --- a/frontend/src/components/navigation/RepoQuickSwitchSheet.tsx +++ b/frontend/src/components/navigation/RepoQuickSwitchSheet.tsx @@ -7,7 +7,7 @@ import { Button } from '@/components/ui/button' import { cn, getRepoDisplayName } from '@/lib/utils' import { listRepos } from '@/api/repos' import { AddRepoDialog } from '@/components/repo/AddRepoDialog' -import { FolderGit2, Check, Plus } from 'lucide-react' +import { FolderGit2, Check, Plus, House } from 'lucide-react' import { isAssistantPath, getAssistantPath } from '@/lib/navigation' interface RepoQuickSwitchSheetProps { @@ -75,6 +75,10 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr navigateAndClose(`/repos/${id}`, { replace: true }) } + const handleHomeClick = () => { + navigateAndClose('/') + } + return ( <> @@ -90,6 +94,15 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr autoComplete="off" name="repo-quick-switch" /> +