Skip to content

refactor: move prune from Settings to Worktrees view#17

Merged
rrbe merged 3 commits intomainfrom
refactor/move-prune-to-worktrees-view
Mar 29, 2026
Merged

refactor: move prune from Settings to Worktrees view#17
rrbe merged 3 commits intomainfrom
refactor/move-prune-to-worktrees-view

Conversation

@rrbe
Copy link
Copy Markdown
Owner

@rrbe rrbe commented Mar 27, 2026

Summary

  • Moved prune functionality from Settings to the Worktrees view, with +New and Prune buttons in a toolbar above the worktree list
  • Added bold repo name label at the top of the worktrees sidebar panel
  • Replaced inline prune preview with a confirmation modal (ModalShell) that shows candidates before executing
  • Improved topbar repo path visibility with stronger text color and border
  • Cleaned up dead code: removed unused CSS (.topbar-new-btn, .help-icon-*), orphaned translation keys, and unused phase state property
  • Standardized zh-CN translations to use "Worktree" consistently instead of "工作树"
  • Removed global button:hover transform effect and per-element transform: none overrides

Test plan

  • Open a repo and verify repo name appears bold at the top of the worktrees sidebar
  • Verify +New and Prune buttons appear in a toolbar below the repo name
  • Click Prune — confirm a modal appears showing loading, then candidates (or "everything clean")
  • Confirm prune execution works via the modal's danger button
  • Verify the topbar repo path is clearly readable
  • Check both light and dark mode appearance
  • Switch to Chinese locale and verify "Worktree" terminology is consistent

🤖 Generated with Claude Code

rrbe and others added 3 commits March 28, 2026 00:03
Prune is a per-repo worktree operation, so it belongs in the Worktrees
panel rather than the global Settings page. Moved the prune UI to the
bottom of the worktree list sidebar with a separator.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace inline prune preview with a ModalShell-based confirmation flow,
move +New and Prune buttons into a toolbar above the worktree list,
remove help icon tooltip, unused translation keys, and orphaned CSS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…h visibility

Display the repo name prominently above the toolbar in the worktrees
panel. Make the topbar repo path more readable with stronger text color
and border.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rrbe rrbe merged commit 64c2cdc into main Mar 29, 2026
3 checks passed
@rrbe rrbe deleted the refactor/move-prune-to-worktrees-view branch March 29, 2026 14:45
@rrbe rrbe added the Good To Do label Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant