diff --git a/apps/web/src/components/ProjectSidebar.tsx b/apps/web/src/components/ProjectSidebar.tsx index 9d26f2c..928c1a7 100644 --- a/apps/web/src/components/ProjectSidebar.tsx +++ b/apps/web/src/components/ProjectSidebar.tsx @@ -22,6 +22,7 @@ import { api } from '@/api/client'; import { useSidebar } from '@/hooks/useSidebar'; import { useSidebarDrawer } from '@/hooks/useSidebarDrawer'; import { useViewport } from '@/hooks/useViewport'; +import { usePullToRefresh } from '@/hooks/usePullToRefresh'; import type { SidebarProject } from '@/api/types'; import { giteaUrlFor } from '@/lib/projectUrls'; import { cn } from '@/lib/utils'; @@ -199,6 +200,7 @@ export function ProjectSidebar() { const { open: drawerOpen } = useSidebarDrawer(); const { isMobile } = useViewport(); + const pull = usePullToRefresh(() => retry(), { enabled: isMobile }); // On mobile the sidebar is a slide-in drawer (fixed, z-40, off-screen by // default). On desktop it sits inline as a normal flex column. The @@ -223,7 +225,30 @@ export function ProjectSidebar() { -