diff --git a/frontend/src/components/navigation/RepoSessionNav.tsx b/frontend/src/components/navigation/RepoSessionNav.tsx index b7cff1b6..02c2ae80 100644 --- a/frontend/src/components/navigation/RepoSessionNav.tsx +++ b/frontend/src/components/navigation/RepoSessionNav.tsx @@ -1,7 +1,6 @@ import { useEffect, useMemo, useState, type CSSProperties, type ReactNode } from 'react' import { useLocation } from 'react-router-dom' -import { Bell, ChevronDown, ChevronRight, HelpCircle, Pin, Plus, X } from 'lucide-react' -import { Button } from '@/components/ui/button' +import { Bell, ChevronDown, ChevronRight, HelpCircle, Loader2, Pin, Plus, X } from 'lucide-react' import { SessionStatusIndicator } from '@/components/ui/session-status-indicator' import { useForms, usePermissions } from '@/contexts/EventContext' import { useCreateSession } from '@/hooks/useOpenCode' @@ -49,18 +48,33 @@ export function RepoNavGroup({ return (
{isOpen && } + {onToggle && ( + + )} - {actions &&
{actions}
} - {onToggle && ( - - )} + {actions &&
{actions}
}
{isOpen && children && (
@@ -266,14 +269,30 @@ export function NewSessionButton({ onOpenSession(getSessionPath(repo.id, session.id)) }) + const isCreating = createSession.isPending + return ( - + + {isCreating ? : } + + ) }