Skip to content

fix(ui): hide worktree-manager button for non-git sites#357

Merged
geodro merged 2 commits into
mainfrom
feat/hide-worktree-button-no-git
May 15, 2026
Merged

fix(ui): hide worktree-manager button for non-git sites#357
geodro merged 2 commits into
mainfrom
feat/hide-worktree-button-no-git

Conversation

@geodro
Copy link
Copy Markdown
Owner

@geodro geodro commented May 15, 2026

The gear icon next to the worktree picker in the site header opens the worktree-management modal, but on a site without a git repo there's nothing for that modal to manage. The button was gated only on site.paused, so it appeared on non-git linked projects too.

The WorktreePicker on the same row already gates its passive git:(branch) label on site.branch being set. Reusing the same condition here keeps the two affordances consistent: no git, no worktree UI.

geodro added 2 commits May 15, 2026 20:33
The gear icon next to the worktree picker in the site header opens the worktree-management modal, but on a site without a git repo there's nothing for that modal to manage. The button gated only on site.paused, so it appeared anyway on non-git linked projects.

The WorktreePicker on the same row already gates its passive git:(branch) label on site.branch being set (worktree picker line 84). Reuse the same condition here so the two affordances behave consistently: no git, no worktree UI.
@geodro geodro merged commit 42dddd4 into main May 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant