Reveal profile summary on upward scroll anywhere in the feed - #3465
Conversation
The summary previously re-expanded only within a few px of the top. Both toggle legs now read one signed scroll run (same-direction deltas accumulate, direction flips reset, layout-jump deltas zero it): 60px of continuous upward drag reveals the header mid-list and collapse requires 20px of downward run, so a cooldown recheck can no longer undo a mid-list reveal. Dead zone, cooldown and reflow-blip handling unchanged.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 4 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Closes #1915
Most of what this 2021 issue asked for already landed in the recent profile design pass: the collapse is animated (500ms CollapsibleCard height), automated (dead zone plus cooldown against oscillation) and revertable at the top. The remaining gap was the reveal: the header only re-expanded within 8px of the top, so scrolling back up mid-list never brought it back.
Both toggle legs now read one signed scroll run: same-direction deltas accumulate, a direction flip resets the run to the new delta and per-event deltas of 250px or more are treated as layout blips (post-toggle reflow, tab switches) that zero it. 60px of continuous upward drag reveals the header anywhere in the list; collapse now requires 20px of downward run on top of the existing 80px threshold, which keeps a cooldown recheck from undoing a mid-list reveal (the old code could assume open means near-top; this change breaks that invariant so collapse had to become direction-aware too).
Out of scope, noted for the record: a fully interactive proportional collapse (header tracking the finger, head-tab-view style) would need the header restructured into an overlay with a shared animated value across every tab's list. The issue itself recorded that attempt as not worth the trouble; this delivers the missing behavior with the existing machinery.
Device pass: profile feed scroll down (collapses past 80px), drag up mid-list (header reveals after ~60px), flick between tabs at different offsets (no spurious toggles), settle at top (stays expanded).