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) {