fix(web): allow collapsing the settled threads tail - #6380
Conversation
Expanding "Show 25 more" had no way back; the paging row now offers a hover rollback while pages remain and collapses to "Show less" once fully expanded.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
ApprovabilityVerdict: Approved 77178e0 This PR adds a 'Show less' button to collapse expanded settled threads in the sidebar - a minor UI enhancement complementing the existing 'Show more' feature. The changes are self-contained within the Sidebar component with no impact beyond the UI affordance. You can customize Macroscope's approvability policy. Learn more. |
settledVisibleCount only resets on a project-scope change, so un-settling, deleting, or reclassifying threads could shrink the settled list back to (or below) the initial page while leaving a stale, orphaned "Show less" row.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 74d92d3. Configure here.
… no-op The open-thread pin can already put the tail at the same row count that collapsing to the initial page would produce, so basing "expanded" on settledVisibleCount alone showed a Show less control that changed nothing when clicked. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 77178e0

What Changed
Why
The settled threads list shows the first 10 threads with a "Show 25 more" button, but there was no way to collapse it back once expanded. This adds a small, reversible affordance consistent with the existing un-settle icon pattern, without adding an extra row to the sidebar.
UI Changes
Before: the settled tail paging row only offers "Show 25 more" — no way back once expanded.
After: hovering the paging row reveals a rollback icon aligned with the thread rows' un-settle affordance, letting you collapse back to the initial page.
Checklist
Implemented with Claude Sonnet 5 in Claude Code.
Note
Low Risk
Sidebar-only UI and local
settledVisibleCountstate; no API, auth, or data changes.Overview
Adds Show less for the settled threads tail so expanding with Show N more is reversible, without an extra sidebar row.
Paging logic now tracks the active route thread via
settledRouteThreadIndex, and usessettledFloorVisibleCount/settledIsExpandedso collapse only appears when it would actually hide rows (including when a deep-linked thread stays pinned visible). The paging row shows Show more while hidden threads remain; when fully expanded it becomes Show less, and while more pages exist a hover undo icon on the same row collapses back to the initial page—aligned with settled rows’ un-settle affordance.Reviewed by Cursor Bugbot for commit 77178e0. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Allow collapsing the settled threads list in the sidebar
Macroscope summarized 77178e0.