Skip to content

feat: nest stacked pull requests in the PR list - #75

Merged
nachogames merged 1 commit into
mainfrom
feat/pr-stack-nesting
Nov 19, 2026
Merged

nachogames merged 1 commit into
mainfrom
feat/pr-stack-nesting

Conversation

@nachogames

Copy link
Copy Markdown
Owner

Long PR lists get cluttered when several PRs belong to one stack. Now, when two or more PRs from the same stack are in the current list, they sit under one stack row instead of being spread through the list:

▾ ≡ Stack into main · 3 of 5 here · +2 more
    #201 Billing: add the webhook endpoint
    #204 Billing: retry failed webhooks
    #205 Billing: show invoices in settings
  • The stack row takes the spot of its highest-ranked PR under the current sort; inside, PRs run bottom layer first.
  • It folds and unfolds, remembered per stack (web: localStorage; mobile: preferences). It stays open while it holds the selected PR.
  • "+N more" counts layers not in this view: web opens the existing stack popover, mobile opens the first PR (whose page lists every layer).
  • A stack with only one PR here stays a normal row with its badge. Nesting happens inside the current grouping.
  • One pure function in client-runtime (nestPullRequestStacks) is shared by web and mobile.

Verified: web in a real dev client with faked stack data (several stacks, sorts Updated/Largest/Oldest, fold persists). Mobile builds and its list logic is tested, but has not been run on a phone. Typecheck, tests (7 new), lint, knip and i18n check pass.

Model: Claude Opus 5.5 (claude-opus-5-5), Claude Code harness in T3 Code.

🤖 Generated with Claude Code

When two or more PRs from one stack are in the current list, they sit under
one stack row ("Stack into main · 2 of 5 here · +3 more") instead of spread
through the list. The row folds them away and remembers that per stack; it
stays open while it holds the selected PR. "+N more" opens the existing stack
popover on web, and the first PR (whose page lists every layer) on mobile.

The grouping is one pure function in client-runtime shared by web and mobile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@nachogames
nachogames merged commit e826bcf into main Nov 19, 2026
3 checks passed
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