Skip to content

fix(web): collapse the pull request panel header on scroll again - #693

Merged
incognitojam merged 1 commit into
mainfrom
fix/web-pr-panel-dead-condensed-header
Oct 9, 2026
Merged

incognitojam merged 1 commit into
mainfrom
fix/web-pr-panel-dead-condensed-header

Conversation

@incognitojam

Copy link
Copy Markdown
Owner

The pull request panel's header is meant to fold into a single compact row as you scroll a tab, then expand again at the top. Upstream has always done this, but the fork's header never collapses.

An earlier upstream intake removed the chromeVariant prop and made collapsing unconditional (pingdotgg#7148). Resolving the conflict with the fork put the gate back: condensed once again required chromeVariant === "collapse", and the scroll handler returned early unless that held. No caller passes chromeVariant, so the compact row, including its Conflicts badge, could never appear. The fork feature ledger records no such difference.

This removes the gate: the prop, its type and default, and the early return. That section of PullRequestDetailPanel.tsx is now identical to upstream at the current intake point (6975efd3dd).

Before (main) After
Header after scrolling on main Header after scrolling with this change

Recordings, which scroll down through the description and back to the top:

Before:

collapse-before.mp4

After:

collapse-after.mp4

Validation: I recorded the same steps on a PR with merge conflicts (#551) in a headless browser, on main and on this branch.

  • On main, the full header stays put while scrolling.
  • On this branch, it folds into the compact row, with the number, title, Conflicts badge and actions on one line, and the metadata line beneath.
  • It expands again at the top.
  • No console errors appeared.
  • Web typecheck passes, and the panel's 32 tests pass. None of them cover the collapse.

The Conflicts badge in the compact row is also restyled by #691, which becomes visible once this lands.


Written by an agent (Claude Code, claude-opus-5-5).

A conflict resolution gated the panel's collapsing header behind a
chromeVariant prop that no caller passes, so the header never folded into
its compact row when a tab scrolled. Drop the prop and the gate so the
header condenses on scroll and unfolds at the top again.

Written by Claude Code (claude-opus-5-5).
@github-actions github-actions Bot added the size:S label Oct 9, 2026
@incognitojam
incognitojam merged commit dfc6c45 into main Oct 9, 2026
18 checks passed
@incognitojam
incognitojam deleted the fix/web-pr-panel-dead-condensed-header branch October 9, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant