Skip to content

Collapse Info panel sections from their headings - #4998

Merged
brsbl merged 5 commits into
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6ffrom
bb/info-panel-collapsible-sections-thr_6ii952bx6f
Oct 6, 2026
Merged

brsbl merged 5 commits into
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6ffrom
bb/info-panel-collapsible-sections-thr_6ii952bx6f

Conversation

@brsbl

@brsbl brsbl commented Oct 6, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The redesigned thread Info panel (#4898) stacks properties, Commits, Changes, Forks, and Thread storage in one scrolling column. On active threads it gets long, and there was no way to put away a section you don't need.

What changed

  • Collapse from the heading: clicking a section heading (Commits, Changes, Forks, Thread storage) collapses or expands it. The heading is a button with aria-expanded, and it gets a rounded highlight on hover.
  • Collapsed sections stay quiet: a collapsed section keeps its label and count. Its controls hide: the Uncommitted / Committed switcher, the +/− totals, and the storage search button.
  • Synced preference: the collapsed set is a new server-backed UI preference, infoPanel.collapsedSections. It's a list of section ids (commits, changes, forks, threadStorage) and follows the user across windows and devices.
    • CLI: bb settings ui get and bb settings ui set read and write it.
    • Docs: docs/configuration.md, the bb-cli skill reference, and the bb guide customization chapter cover it.
  • Fix for late-loaded preferences: a synced preference atom created in a lazily loaded module missed the initial reconcile, so it kept its default until the next refetch. Registration now reconciles from the cached server response, without overriding pending local writes.

Compatibility: the change is additive. An older server that lacks the key leaves the preference local to the device, which is existing behavior for missing entries. Old clients ignore the extra key.

How you verified

Screenshots come from the branch web app in headless Chrome for Testing through the Browser Automation plugin, at 1440×900 and 2×, with the same fixture and pointer positions.

Before: cf56d66 (#4898 head) · After: 329c78a · Captured at 2×

The current head f05ef84 adds only documentation and rebases onto #4898's latest head. The collapse code is unchanged.

Screen / state Viewport Before After
Changes heading / hover Desktop · 1440×900 Before: heading hover has no affordance After: heading hover highlight
Changes / after clicking the heading Desktop · 1440×900 Before: clicking the heading does nothing After: Changes collapsed
  • Browser QA: toggling Changes three times kept aria-expanded and the server value in sync. After a reload the collapsed state came back from the server, both before and after the late-registration fix.
  • Tests:
    • an InfoSection test covers aria-expanded, hiding the body, and hiding the heading controls;
    • a sync test covers hydrating a preference registered after sync starts.
  • Remote CI: runs on the PR head. Tests, typecheck, and lint were not run locally.

Follow-ups (P2, not in this PR):

  • Close Thread storage search when its section collapses, so focus doesn't jump to the input on expand.
  • Make bb settings ui list/get/set tolerate older servers that lack newer keys. This predates this PR.

BB-Thread: Enhance info panel to thread navigation
BB-Thread-ID: thr_6ii952bx6f

AGENT GENERATED

🤖 Generated with Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@brsbl
brsbl added this pull request to stack #4999 October 6, 2026 04:00
@brsbl
brsbl force-pushed the bb/info-panel-collapsible-sections-thr_6ii952bx6f branch from dce49ed to c776093 Compare October 6, 2026 04:08
@brsbl
brsbl force-pushed the bb/info-panel-collapsible-sections-thr_6ii952bx6f branch 2 times, most recently from f05ef84 to 4f0d03c Compare October 6, 2026 05:41
brsbl and others added 5 commits October 5, 2026 22:57
Clicking a section heading collapses or expands it. Collapsed sections
keep their count, totals, and heading controls, and show a chevron.
The collapsed set is a synced UI preference, infoPanel.collapsedSections,
so it follows the user across windows and devices.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A synced preference atom created in a lazily loaded module missed the
initial reconcile, so it kept its default until the next refetch.
Registration now reconciles from the cached server response.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@brsbl
brsbl force-pushed the bb/info-panel-collapsible-sections-thr_6ii952bx6f branch from 4f0d03c to 41a51a1 Compare October 6, 2026 05:57
@brsbl
brsbl merged commit df913a7 into main Oct 6, 2026
41 checks passed
@brsbl
brsbl deleted the bb/info-panel-collapsible-sections-thr_6ii952bx6f branch October 6, 2026 06:11
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.

1 participant