mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 09:13:08 +00:00
refactor: update terminology in board view components
- Renamed "Worktrees" to "Worktree Bar" in the BoardHeader component for clarity. - Updated comments and labels in AddFeatureDialog, PlanSettingsDialog, and WorktreeSettingsDialog to reflect the new terminology and improve user understanding of worktree mode functionality.
This commit is contained in:
@@ -138,7 +138,7 @@ export function BoardHeader({
|
|||||||
<div className={controlContainerClass} data-testid="worktrees-toggle-container">
|
<div className={controlContainerClass} data-testid="worktrees-toggle-container">
|
||||||
<GitBranch className="w-4 h-4 text-muted-foreground" />
|
<GitBranch className="w-4 h-4 text-muted-foreground" />
|
||||||
<Label htmlFor="worktrees-toggle" className="text-sm font-medium cursor-pointer">
|
<Label htmlFor="worktrees-toggle" className="text-sm font-medium cursor-pointer">
|
||||||
Worktrees
|
Worktree Bar
|
||||||
</Label>
|
</Label>
|
||||||
<Switch
|
<Switch
|
||||||
id="worktrees-toggle"
|
id="worktrees-toggle"
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ interface AddFeatureDialogProps {
|
|||||||
selectedNonMainWorktreeBranch?: string;
|
selectedNonMainWorktreeBranch?: string;
|
||||||
/**
|
/**
|
||||||
* When true, forces the dialog to default to 'current' work mode (work on current branch).
|
* When true, forces the dialog to default to 'current' work mode (work on current branch).
|
||||||
* This is used when the "Use selected worktree branch" setting is disabled.
|
* This is used when the "Default to worktree mode" setting is disabled.
|
||||||
*/
|
*/
|
||||||
forceCurrentBranchMode?: boolean;
|
forceCurrentBranchMode?: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export function PlanSettingsDialog({
|
|||||||
className="text-sm font-medium cursor-pointer flex items-center gap-2"
|
className="text-sm font-medium cursor-pointer flex items-center gap-2"
|
||||||
>
|
>
|
||||||
<GitBranch className="w-4 h-4 text-brand-500" />
|
<GitBranch className="w-4 h-4 text-brand-500" />
|
||||||
Use selected worktree branch
|
Default to worktree mode
|
||||||
</Label>
|
</Label>
|
||||||
<Switch
|
<Switch
|
||||||
id="plan-worktree-branch-toggle"
|
id="plan-worktree-branch-toggle"
|
||||||
@@ -55,8 +55,8 @@ export function PlanSettingsDialog({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-muted-foreground leading-relaxed">
|
<p className="text-xs text-muted-foreground leading-relaxed">
|
||||||
When enabled, features created via the Plan dialog will be assigned to the currently
|
Planned features will automatically use isolated worktrees, keeping changes separate
|
||||||
selected worktree branch. When disabled, features will be added to the main branch.
|
from your main branch until you're ready to merge.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ export function WorktreeSettingsDialog({
|
|||||||
className="text-sm font-medium cursor-pointer flex items-center gap-2"
|
className="text-sm font-medium cursor-pointer flex items-center gap-2"
|
||||||
>
|
>
|
||||||
<GitBranch className="w-4 h-4 text-brand-500" />
|
<GitBranch className="w-4 h-4 text-brand-500" />
|
||||||
Use selected worktree branch
|
Default to worktree mode
|
||||||
</Label>
|
</Label>
|
||||||
<Switch
|
<Switch
|
||||||
id="worktree-branch-toggle"
|
id="worktree-branch-toggle"
|
||||||
@@ -55,8 +55,8 @@ export function WorktreeSettingsDialog({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-xs text-muted-foreground leading-relaxed">
|
<p className="text-xs text-muted-foreground leading-relaxed">
|
||||||
When enabled, the Add Feature dialog will default to custom branch mode with the
|
New features will automatically use isolated worktrees, keeping changes separate
|
||||||
currently selected worktree branch pre-filled.
|
from your main branch until you're ready to merge.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user