mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-03 21:03:08 +00:00
fix: address PR 161 review comments
- Fix unknown status bypassing worktree filtering in use-board-column-features.ts - Remove unused props projectPath and onWorktreeCreated from use-board-drag-drop.ts - Fix test expecting worktreePath during edit (worktrees created at execution time) - Remove unused setAutoModeRunning from dependency array - Remove unused imports (BranchAutocomplete, cn) - Fix htmlFor accessibility issue in branch-selector.tsx - Remove empty finally block in resume-feature.ts - Remove duplicate setTimeout state reset in create-pr-dialog.tsx - Consolidate duplicate state reset logic in context-view.tsx - Simplify branch name defaulting logic in use-board-actions.ts - Fix branchName reset to null when worktree is deleted
This commit is contained in:
@@ -103,10 +103,7 @@ export function useBoardActions({
|
||||
// Simplified: Only store branchName, no worktree creation on add
|
||||
// Worktrees are created at execution time (when feature starts)
|
||||
// Empty string means user chose "use current branch" - don't save a branch name
|
||||
const finalBranchName =
|
||||
featureData.branchName === ""
|
||||
? undefined
|
||||
: featureData.branchName || undefined;
|
||||
const finalBranchName = featureData.branchName || undefined;
|
||||
|
||||
const newFeatureData = {
|
||||
...featureData,
|
||||
@@ -139,8 +136,7 @@ export function useBoardActions({
|
||||
requirePlanApproval?: boolean;
|
||||
}
|
||||
) => {
|
||||
const finalBranchName =
|
||||
updates.branchName === "" ? undefined : updates.branchName || undefined;
|
||||
const finalBranchName = updates.branchName || undefined;
|
||||
|
||||
const finalUpdates = {
|
||||
...updates,
|
||||
|
||||
Reference in New Issue
Block a user