feat: stale worktrees#5
Open
felipe-software wants to merge 6 commits into
Open
Conversation
| <Button | ||
| aria-label={`Create ${branch.name} worktree`} | ||
| className="text-danger-foreground | ||
| data-[hover=true]:bg-sidebar-accent |
There was a problem hiding this comment.
🟢 Low sidebar/sidebar-branch-item.tsx:134
The button that creates a worktree uses text-danger-foreground, so it renders with the same danger color as the remove button. Creating a worktree is not a destructive operation, so the button incorrectly signals danger to the user. Change the text color to a neutral class such as text-muted-foreground so that only destructive actions use danger styling.
Suggested change
| data-[hover=true]:bg-sidebar-accent | |
| className="text-muted-foreground |
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @src/lib/components/templates/sidebar/sidebar-branch-item.tsx around line 134:
The button that creates a worktree uses `text-danger-foreground`, so it renders with the same danger color as the remove button. Creating a worktree is not a destructive operation, so the button incorrectly signals danger to the user. Change the text color to a neutral class such as `text-muted-foreground` so that only destructive actions use danger styling.
Evidence trail:
src/lib/components/templates/sidebar/sidebar-branch-item.tsx lines 110-129 (remove worktree button with `text-danger-foreground` and Trash2 icon) and lines 131-150 (create worktree button also with `text-danger-foreground` at line 133 and FolderPlus icon), viewed at REVIEWED_COMMIT.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add stale worktree detection, busy branch indicators, and a docked terminal panel to the sidebar
stale-worktreestatus in the sidebar via a newsidebar-item-status.tsmodule that centralizes icon/pill/label computation for all branch states.GlobalTerminalPanelandStatusBarto the app shell, displaying aggregate counts (stale worktrees, busy terminals, PRs, worktrees, branches) and allowing terminal selection.getBusyTerminalSummaryin the terminal store anduseAppStatusSummaryhook to propagate busy terminal and branch metrics throughout the component tree.MainPanelandBranchEmptyStateswitch fromh-dvhtoh-fullto fit the new bottom-docked layout.📊 Macroscope summarized 0b928cc. 23 files reviewed, 0 issues evaluated, 0 issues filtered, 0 comments posted
🗂️ Filtered Issues
No issues evaluated.