Skip to content

feat: stale worktrees#5

Open
felipe-software wants to merge 6 commits into
mainfrom
style/sidebar-and-pages
Open

feat: stale worktrees#5
felipe-software wants to merge 6 commits into
mainfrom
style/sidebar-and-pages

Conversation

@felipe-software

@felipe-software felipe-software commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Add stale worktree detection, busy branch indicators, and a docked terminal panel to the sidebar

  • Introduces a stale-worktree status in the sidebar via a new sidebar-item-status.ts module that centralizes icon/pill/label computation for all branch states.
  • Branch rows in the sidebar now show busy spinners, hide the age pill when an action is active, and support creating a worktree via a new checkout button when none exists.
  • Busy projects are promoted to the top of their group and trigger branch loading even when collapsed, showing a preview of their busy branches.
  • Adds a bottom-docked, pointer-resizable GlobalTerminalPanel and StatusBar to the app shell, displaying aggregate counts (stale worktrees, busy terminals, PRs, worktrees, branches) and allowing terminal selection.
  • Introduces getBusyTerminalSummary in the terminal store and useAppStatusSummary hook to propagate busy terminal and branch metrics throughout the component tree.
  • Behavioral Change: MainPanel and BranchEmptyState switch from h-dvh to h-full to 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.

<Button
aria-label={`Create ${branch.name} worktree`}
className="text-danger-foreground
data-[hover=true]:bg-sidebar-accent

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

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