Skip to content

Make ReviewDiscussion collapsible to keep diff near top - #201

Merged
C-Hipple merged 1 commit into
mainfrom
claude/pr-review-collapse-states-a21r54
Jul 31, 2026
Merged

Make ReviewDiscussion collapsible to keep diff near top#201
C-Hipple merged 1 commit into
mainfrom
claude/pr-review-collapse-states-a21r54

Conversation

@C-Hipple

Copy link
Copy Markdown
Owner

Summary

Makes the ReviewDiscussion section collapsible by default so the diff stays closer to the top of the page, improving navigation on review pages. Also changes the PR description to start expanded since it provides important context.

Changes

  • ReviewDiscussion.tsx: Convert header from static div to interactive button with collapse/expand toggle

    • Starts collapsed to keep the diff prominent
    • Shows a rotating chevron indicator and "click to expand" hint when collapsed
    • Hides review content when collapsed, shows border only when expanded
  • Review.tsx: Change PR description initial state from collapsed to expanded

    • Updated comment to reflect that description provides context for everything below it

Test Plan

  • bun run type-check passes
  • bun run lint passes
  • Manual verification: ReviewDiscussion collapses/expands on click with smooth animation
  • Manual verification: Diff appears near top of page on initial load

https://claude.ai/code/session_017dWbfQR6HkY9TCJybUAwqZ

The description is the context for the rest of the review, so it now
renders open on load. The review discussion moves the other way: it gets
a collapsible header (matching the description and review-feedback
toggles) and starts closed, keeping the diff near the top of the page.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017dWbfQR6HkY9TCJybUAwqZ
@C-Hipple
C-Hipple merged commit 7e2dc18 into main Jul 31, 2026
7 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.

2 participants