From 54a102f029dae3763fe8673445ca6678de0f7e1e Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Tue, 16 Dec 2025 02:41:00 -0500 Subject: [PATCH] moving pull push button --- .../components/worktree-selector.tsx | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/apps/app/src/components/views/board-view/components/worktree-selector.tsx b/apps/app/src/components/views/board-view/components/worktree-selector.tsx index 426d24e7..24c5e930 100644 --- a/apps/app/src/components/views/board-view/components/worktree-selector.tsx +++ b/apps/app/src/components/views/board-view/components/worktree-selector.tsx @@ -305,38 +305,6 @@ export function WorktreeSelector({ })()} - - Sync - - {/* Pull option */} - handlePull(worktree)} - disabled={isPulling} - className="text-xs" - > - - {isPulling ? "Pulling..." : "Pull"} - {behindCount > 0 && ( - - {behindCount} behind - - )} - - {/* Push option */} - handlePush(worktree)} - disabled={isPushing || aheadCount === 0} - className="text-xs" - > - - {isPushing ? "Pushing..." : "Push"} - {aheadCount > 0 && ( - - {aheadCount} ahead - - )} - - onCreateBranch(worktree)} className="text-xs" @@ -368,7 +336,11 @@ export function WorktreeSelector({ )} {/* Actions dropdown */} - + { + if (open) { + fetchBranches(worktree.path); + } + }}> - + + {/* Pull option */} + handlePull(worktree)} + disabled={isPulling} + className="text-xs" + > + + {isPulling ? "Pulling..." : "Pull"} + {behindCount > 0 && ( + + {behindCount} behind + + )} + + {/* Push option */} + handlePush(worktree)} + disabled={isPushing || aheadCount === 0} + className="text-xs" + > + + {isPushing ? "Pushing..." : "Push"} + {aheadCount > 0 && ( + + {aheadCount} ahead + + )} + + {/* Commit changes */} {worktree.hasChanges && (