feat(desktop): fold resolved review threads on the PR pane
Merged
AV
2mo ago+212+212+012345678901234567890123456789-62-62-01234567890123456789
What & why
On the PR pane's Activity rail, every resolved review thread showed at full height. On a PR with many bot findings, the open threads were buried under ones already dealt with. The diff views already fold resolved and outdated threads; the pane's cards did not.
A resolved or outdated thread now renders as its header alone: author, file and line, "Resolved" or "Outdated", and when. The header is one button that unfolds the body, replies and footer. A chevron beside Copy and Reply folds it again. Resolving a thread from its footer folds it once the threads refetch; unresolving leaves it open.
PullRequestActivityCardgainscollapsedandonCollapsedChange. While folded, the file path is plain text and the time is not a link, so nothing interactive sits inside the header button.PullRequestCommentCardfolds when the thread is resolved or outdated, matching the diff views.- The narrow-pane row layout already folds every card and is unchanged.
How I tested it
- New tests cover fold, unfold and refold on the shared card, and a resolved thread on the comment card. All pull-request and PR pane suites pass (71 tests).
- In the dev app over CDP, on a real PR with 8 review threads: 7 resolved or outdated threads rendered as 38px headers and the one open thread stayed expanded. Clicking a header expanded it with Unresolve and Open in diff in the footer; the chevron folded it back. No console errors.
- Baseline: with the previous versions of the two files hot-swapped in, the same rail showed no folded threads and the same resolved thread at 343px.
Checklist
- PR title follows conventional commits (
type(scope): subject) - Biome is clean on the changed files; the i18n check passes with no catalog changes. Local
typecheckfails only on existing Better Auth type errors unrelated to this change, so CI is the check there.
Summary by cubic
Folds resolved and outdated review threads on the PR pane's Activity rail so open threads aren't buried beneath closed ones.
- A resolved or outdated thread now shows as its header alone—author, file and line, status, and when—as one button that expands to the body, replies, and footer.
- A chevron beside the actions folds the card back; the card refolds whenever its thread becomes resolved or outdated, no matter what caused it.
PullRequestActivityCardgainscollapsedandonCollapsedChange, and the header stays free of interactive content while folded so it can be one button.- The resolve button shows a spinner until the refetched thread carries the new state, keeping it disabled instead of springing back early.
Summary by CodeRabbit
- New Features
- Resolved and outdated pull request comments now start collapsed, keeping discussions compact. Expand a comment to view its content and replies or open its location in the diff.
- Pull request activity cards can now be collapsed and expanded. Collapsed cards show their headers; expanding reveals their content and actions.
- Bug Fixes
- Resolve actions now show a loading indicator while the update is in progress.