From 6c25680115712cedde7fe49f903b16559850fb94 Mon Sep 17 00:00:00 2001 From: Cody Seibert Date: Fri, 19 Dec 2025 20:07:50 -0500 Subject: [PATCH] Changes from pull-request --- apps/ui/src/components/views/board-view.tsx | 32 +++++++++++---------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/apps/ui/src/components/views/board-view.tsx b/apps/ui/src/components/views/board-view.tsx index 527d826a..add0693c 100644 --- a/apps/ui/src/components/views/board-view.tsx +++ b/apps/ui/src/components/views/board-view.tsx @@ -1,4 +1,3 @@ - import { useEffect, useState, useCallback, useMemo, useRef } from "react"; import { PointerSensor, @@ -272,13 +271,16 @@ export function BoardView() { // Calculate unarchived card counts per branch const branchCardCounts = useMemo(() => { - return hookFeatures.reduce((counts, feature) => { - if (feature.status !== "completed") { - const branch = feature.branchName ?? "main"; - counts[branch] = (counts[branch] || 0) + 1; - } - return counts; - }, {} as Record); + return hookFeatures.reduce( + (counts, feature) => { + if (feature.status !== "completed") { + const branch = feature.branchName ?? "main"; + counts[branch] = (counts[branch] || 0) + 1; + } + return counts; + }, + {} as Record + ); }, [hookFeatures]); // Custom collision detection that prioritizes columns over cards @@ -341,7 +343,7 @@ export function BoardView() { const worktrees = useMemo( () => currentProject - ? worktreesByProject[currentProject.path] ?? EMPTY_WORKTREES + ? (worktreesByProject[currentProject.path] ?? EMPTY_WORKTREES) : EMPTY_WORKTREES, [currentProject, worktreesByProject] ); @@ -429,7 +431,11 @@ export function BoardView() { worktree.path, worktree.branch ); - if (result.success && result.result?.hasPR && result.result.prInfo) { + if ( + result.success && + result.result?.hasPR && + result.result.prInfo + ) { fullPRInfo = result.result.prInfo; } } @@ -1244,7 +1250,7 @@ export function BoardView() { open={showCreatePRDialog} onOpenChange={setShowCreatePRDialog} worktree={selectedWorktreeForAction} -<<<<<<< Updated upstream + projectPath={currentProject?.path || null} onCreated={(prUrl) => { // If a PR was created and we have the worktree branch, update all features on that branch with the PR URL if (prUrl && selectedWorktreeForAction?.branch) { @@ -1256,10 +1262,6 @@ export function BoardView() { persistFeatureUpdate(feature.id, { prUrl }); }); } -======= - projectPath={currentProject?.path || null} - onCreated={() => { ->>>>>>> Stashed changes setWorktreeRefreshKey((k) => k + 1); setSelectedWorktreeForAction(null); }}