From 3a2470dca31d45d196447bc8557e75ca77c6c36f Mon Sep 17 00:00:00 2001 From: chihlasm Date: Tue, 24 Feb 2026 01:12:23 -0500 Subject: [PATCH] refactor: move Generate All into empty-state button group with subtle separator Co-Authored-By: Claude Opus 4.6 --- .../ai-builder/BranchDetailView.tsx | 61 +++++++++---------- 1 file changed, 28 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/ai-builder/BranchDetailView.tsx b/frontend/src/components/ai-builder/BranchDetailView.tsx index 629c2acd..dfb73147 100644 --- a/frontend/src/components/ai-builder/BranchDetailView.tsx +++ b/frontend/src/components/ai-builder/BranchDetailView.tsx @@ -51,38 +51,6 @@ export function BranchDetailView() { return (
- {/* Generate All / Stop control */} - {(() => { - const undetailedCount = selectedBranches.filter((b) => !b.steps).length - if (undetailedCount === 0) return null - return ( -
- - {undetailedCount} branch{undetailedCount !== 1 ? 'es' : ''} need detail - - {isGeneratingAll ? ( - - ) : ( - - )} -
- ) - })()} {/* Content area */}
@@ -143,7 +111,7 @@ export function BranchDetailView() {

Generate AI detail for this branch

-
+
+ + {/* Subtle separator + Generate All */} + {selectedBranches.filter((b) => !b.steps).length > 1 && ( + <> +
+ {isGeneratingAll ? ( + + ) : ( + + )} + + )}
)}