From 977c40f85bb0430a635f696032c28b8d63618045 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 24 Dec 2025 20:05:55 -0600 Subject: [PATCH] Make Sync button a Collapsible instead of a Dropdown --- src/components/git-sync/steps/SyncStep.tsx | 90 ++++++++++++---------- 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/src/components/git-sync/steps/SyncStep.tsx b/src/components/git-sync/steps/SyncStep.tsx index d42290ad..41eecd72 100644 --- a/src/components/git-sync/steps/SyncStep.tsx +++ b/src/components/git-sync/steps/SyncStep.tsx @@ -9,6 +9,7 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; +import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'; import { ExternalFavicon } from '@/components/ExternalFavicon'; import { SyncStepError } from './SyncStepError'; import { ForcePullDialog } from './ForcePullDialog'; @@ -35,7 +36,7 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) { const [error, setError] = useState(null); const [copiedUrl, setCopiedUrl] = useState(false); const [syncSuccess, setSyncSuccess] = useState(false); - const [dropdownOpen, setDropdownOpen] = useState(false); + const [isExpanded, setIsExpanded] = useState(false); const [showForcePullDialog, setShowForcePullDialog] = useState(false); const [showForcePushDialog, setShowForcePushDialog] = useState(false); @@ -60,7 +61,6 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) { if (!remoteUrl) return; setIsSyncing(true); - setDropdownOpen(false); setCurrentOperation(operation); setError(null); setSyncSuccess(false); @@ -330,53 +330,61 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) { )} -
-
- -
- - + +
+
+
- - -
+
+ - -
- - + +
+
+ + +
+ + +
+
-
+