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:
webdevcody
2026-01-13 12:19:24 -05:00
parent 8500f71565
commit ff5915dd20
4 changed files with 8 additions and 8 deletions

View File

@@ -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"

View File

@@ -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;
} }

View File

@@ -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>

View File

@@ -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>