Skip to content

feat: stack tree modal#45

Open
phall1 wants to merge 1 commit intokitlangton:mainfrom
phall1:stack-tree
Open

feat: stack tree modal#45
phall1 wants to merge 1 commit intokitlangton:mainfrom
phall1:stack-tree

Conversation

@phall1
Copy link
Copy Markdown

@phall1 phall1 commented May 10, 2026

Closes #44.

Groups open PRs by repository and renders them as base/head branch forests in a modal (open with b). The forest is built from each PR's headRefName and baseRefName; rows show review-status coloring and Enter jumps to the selected PR.

baseRefName is plumbed through MockGitHubService and CacheService so the tree works offline and in tests. test/stack.test.ts covers forest construction.

Adds a new modal that visualizes pull requests grouped by repository as
base/head branch forests, making stacked PRs easy to browse and jump to
from a single view.

- src/stack.ts builds a StackForest per repository from PR head/base refs
- src/ui/modals.tsx renders StackTreeModal with PR rows, branch segments,
  and review-status coloring
- new keymap (src/keymap/stackTreeModal.ts) and app command wiring
- MockGitHubService and CacheService updates to support stack data
- test/stack.test.ts covers forest construction
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.

Visibility on target branch for PRs (and a tree view for stacks)

1 participant