From cfb7242e2be74d6201d897a295b816a7fcbd292e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 24 Dec 2025 20:16:01 -0600 Subject: [PATCH] Make the Sync button display loading indicators for Push and Pull --- src/components/git-sync/steps/SyncStep.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/components/git-sync/steps/SyncStep.tsx b/src/components/git-sync/steps/SyncStep.tsx index b2addaa6..7f3f7b9b 100644 --- a/src/components/git-sync/steps/SyncStep.tsx +++ b/src/components/git-sync/steps/SyncStep.tsx @@ -70,7 +70,7 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) { // Show success feedback setSyncSuccess(true); - setTimeout(() => setSyncSuccess(false), 1500); + setTimeout(() => setSyncSuccess(false), 2500); } catch (err) { const message = err instanceof Error ? err : new Error(`Failed to ${operation}`); setError(message); @@ -83,8 +83,10 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) { const handleSync = async () => { await executeGitOperation('sync', async () => { // Pull first to get latest changes + setCurrentOperation('pull'); await git.pull({ dir, ref, singleBranch: true }); // Then push local changes + setCurrentOperation('push'); await git.push({ dir, remote: 'origin', ref }); }); }; @@ -348,10 +350,7 @@ export function SyncStep({ projectId, remoteUrl }: SyncStepProps) {
-