@@ -7,7 +7,7 @@ import { Button } from '@/components/ui/button'
77import { cn , getRepoDisplayName } from '@/lib/utils'
88import { listRepos } from '@/api/repos'
99import { AddRepoDialog } from '@/components/repo/AddRepoDialog'
10- import { FolderGit2 , Check , Plus } from 'lucide-react'
10+ import { FolderGit2 , Check , Plus , House } from 'lucide-react'
1111import { isAssistantPath , getAssistantPath } from '@/lib/navigation'
1212
1313interface RepoQuickSwitchSheetProps {
@@ -75,6 +75,10 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
7575 navigateAndClose ( `/repos/${ id } ` , { replace : true } )
7676 }
7777
78+ const handleHomeClick = ( ) => {
79+ navigateAndClose ( '/' )
80+ }
81+
7882 return (
7983 < >
8084 < BottomSheet isOpen = { isOpen } onClose = { onClose } heightClass = "h-[70dvh]" ariaLabel = "Switch repo" >
@@ -90,6 +94,15 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
9094 autoComplete = "off"
9195 name = "repo-quick-switch"
9296 />
97+ < Button
98+ type = "button"
99+ size = "icon-sm"
100+ variant = "outline"
101+ onClick = { handleHomeClick }
102+ >
103+ < House className = "h-4 w-4" />
104+ < span className = "sr-only" > Home</ span >
105+ </ Button >
93106 < Button
94107 type = "button"
95108 size = "sm"
@@ -99,7 +112,8 @@ export function RepoQuickSwitchSheet({ isOpen, onClose }: RepoQuickSwitchSheetPr
99112 } }
100113 className = "flex-shrink-0"
101114 >
102- < Plus className = "h-4 w-4" /> Repo
115+ < Plus className = "h-4 w-4" />
116+ < span className = "hidden sm:inline" > Repo</ span >
103117 < span className = "sr-only" > Add repository</ span >
104118 </ Button >
105119 </ div >
0 commit comments