You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(sidebar): show worktrees under their repository
Add an opt-in sidebar mode that lists linked worktrees beneath their main repository so repository switching can stay in the main sidebar instead of requiring the worktree dropdown.
Changes:
- add a secondary appearance setting to show worktrees in the repository sidebar when worktree support is enabled
- group linked worktrees under their main repository and synthesize sidebar rows for worktrees that are not already stored as repositories
- render nested rows with the worktree folder name, keep alias styling behavior unchanged, and avoid duplicate pull-all work for linked worktrees
- persist sidebar worktree metadata in repository state and expose main worktree path helpers needed for grouping
- add unit coverage for grouped and synthetic worktree rows and throttle sidebar worktree refreshes to reduce repeated git worktree list churn during indicator updates
Testing:
- yarn test:unit app/test/unit/repositories-list-grouping-test.ts
- yarn eslint app/src/lib/stores/app-store.ts app/src/ui/repositories-list/group-repositories.ts app/src/ui/repositories-list/repositories-list.tsx app/src/ui/repositories-list/repository-list-item.tsx app/src/ui/preferences/appearance.tsx app/src/ui/preferences/preferences.tsx app/src/lib/git/worktree.ts app/src/models/repository.ts app/src/lib/app-state.ts app/src/ui/app.tsx app/src/ui/dispatcher/dispatcher.ts app/test/unit/repositories-list-grouping-test.ts
- yarn compile:dev
0 commit comments