mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
feat: Introduce default delete branch option for worktrees
This commit adds a new feature allowing users to set a default value for the "delete branch" checkbox when deleting a worktree. Key changes include: 1. **State Management**: Introduced `defaultDeleteBranchByProject` to manage the default delete branch setting per project. 2. **UI Components**: Updated the WorktreesSection to include a toggle for the default delete branch option, enhancing user control during worktree deletion. 3. **Dialog Updates**: Modified the DeleteWorktreeDialog to respect the default delete branch setting, improving the user experience by streamlining the deletion process. These enhancements provide users with more flexibility and control over worktree management, improving overall project workflows.
This commit is contained in:
@@ -598,6 +598,10 @@ export interface ProjectSettings {
|
||||
/** Whether to show the init script indicator panel (default: true) */
|
||||
showInitScriptIndicator?: boolean;
|
||||
|
||||
// Worktree Behavior
|
||||
/** Default value for "delete branch" checkbox when deleting a worktree (default: false) */
|
||||
defaultDeleteBranchWithWorktree?: boolean;
|
||||
|
||||
// Session Tracking
|
||||
/** Last chat session selected in this project */
|
||||
lastSelectedSessionId?: string;
|
||||
|
||||
Reference in New Issue
Block a user