Repository navigation
Redesign the thread Info panel around one list system - #4898
Merged
brsbl merged 26 commits intoOct 6, 2026
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
brsbl
force-pushed
the
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
branch
from
October 5, 2026 08:28
9570e0e to
49e1687
Compare
brsbl
force-pushed
the
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
branch
from
October 5, 2026 09:29
9cd6cc7 to
1d054f0
Compare
brsbl
force-pushed
the
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
branch
from
October 5, 2026 22:58
5790b32 to
505967f
Compare
brsbl
changed the base branch from
bb/generate-parent-child-naming-ideas-in-bb-thr_7xmbr7vsqz
to
main
October 5, 2026 22:58
Forks, commits, changes, and thread storage share one section heading with a count pill, 24px rows with a 12px glyph column, hover highlights with inline actions (copy SHA, open file), compact ages, and a collapsible overflow row, separated by dividers. Changed files use boxed git status icons and a five-block size bar that shows exact counts on hover. Thread storage becomes a flat list with search instead of a file tree, so @pierre/trees leaves the app. Property rows get smaller, quieter icons and hover-only copy buttons, and Git status keeps its label unless the summary already restates it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move the list primitives and each section (related threads, commits, changes, thread storage) into secondary-panel/info, share the changed-files bucket menu and selection hook with the commit dialog, reuse the path helpers, and add stories for the primitives and a work-in-progress panel. Pickers and the bucket switcher in the panel now use the same 12px caret as the overflow row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restore coarse-pointer sizing for thread storage search, remove the truncated list and multi-bucket row the redesign left unused, move the bucket menu next to its only consumer, drop the unreachable storage loading state, and keep row ages hoverable above the row link. Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
force-pushed
the
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
branch
from
October 6, 2026 00:10
d154999 to
0e8897a
Compare
Underline clickable row names on hover, name each git status icon in a tooltip, show an open action on thread storage rows, shorten home directories to ~ and keep the end of the path visible, match the new thread in environment icon to the other row icons, and give the Git status label the same weight as the other values. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Commits get the same external-link action as changed files and thread storage, which opens the commit in the Diff tab. Open actions use the app's ExternalLink icon without a tooltip; copy keeps its tooltip. Row names no longer underline on hover. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copy reads "Copy commit SHA", file open actions read "Open in tab", and the commit open action reads "Open diff". The Directory value replaces the home directory with ~/ and truncates at the end. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The search input fills the heading row and the close button takes the search button's place, so opening and closing search no longer shifts the list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Thread storage shows a search field under its heading once the list is long enough to collapse, instead of a search button that swapped the heading for an input. Escape or the clear button empties the query. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The search button appears once the list collapses, opens a soft-bordered field in the heading row, and the close button takes the search button's place. An empty field closes when it loses focus. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rows with more than one action keep them inline on hover, and show a single more-actions menu on touch screens. Untracked files read as Added, because bb's commit stages every change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brsbl
deleted the
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
branch
October 6, 2026 06:11
brsbl
added a commit
that referenced
this pull request
Oct 6, 2026
## 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 |  |  | | Changes / after clicking the heading | Desktop · 1440×900 |  |  | - **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](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_6ii952bx6f) BB-Thread-ID: thr_6ii952bx6f > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Oct 6, 2026
brsbl
added a commit
that referenced
this pull request
Oct 7, 2026
## Human comments ## What was wrong #4898 replaced the thread storage file tree with a flat list. Files in nested folders lost their structure and showed only the last folder name as a hint. The Info panel rows also highlighted on every hover, and the changed-file line counts appeared whenever the pointer crossed a row. That made the panel busy to move through. ## What changed **Thread storage tree** - Thread storage is a folder tree again, built from the same Info list rows instead of `@pierre/trees`. - Folders start closed, show a 12px caret, and list before files. - A folder holding only one subfolder shows as one row (`qa/screenshots`). - Children indent one glyph per level, with guide lines in the commit rail's style. - Folder names use the quiet tertiary color. File names stay full color. - Search opens every matching folder and keeps the five-row cap and "N more". - Selecting a stored file elsewhere (a tab or file search) opens the folders above it. **Info rows** - Rows no longer get a hover background. Clickable rows show a pointer cursor. - Keyboard focus shows a soft row background (`bg-state-hover`) instead of a ring. - The row action is labelled "Open file in tab". **Changed files** - The line counts appear only while the size squares are hovered, or while the row has keyboard focus. Their hover target is 64×24px, and clicking it opens the diff. - The folder hint shows the full parent path with a trailing slash (`src/feature/`). It is truncated from the left, so the nearest folder stays visible, and it gives way before the file name. **Panel** - The commit timeline continues past the last commit with a fading tail, so a single commit still reads as a timeline. - When only the properties block renders, it ends with a divider. **Shared code** - `TruncateStart` adds a trailing direction mark, so trailing punctuation stays at the end. No API, CLI, SDK, persisted data or wire changes. ## How you verified Screenshots come from the branch web app in headless Chrome for Testing through the Browser Automation plugin, at 2×. Both revisions use the same seeded fixture threads: - **Full:** 8 commits, 8 uncommitted files including a deeply nested path, 14 nested storage files, and 2 forks. - **Merge conflict:** 1 commit. - **Clean:** properties only. Before: `54a4a22` (merge base) · After: `e61dba9`, except the properties-only row at `652e555` (PR head). The only commit after `e61dba9` changes the keyboard-focus reveal of line counts, which none of these states show. Captured at 2×. | Screen / state | Viewport | Before | After | | --- | --- | --- | --- | | Info panel / default | Desktop · 1440×1800 |  |  | | Thread storage / fully shown (before: "N more" opened; after: folders opened) | Desktop · 1440×1800 |  |  | | Thread storage / search "md" | Desktop · 1440×1800 |  |  | | Uncommitted file / size squares hovered | Desktop · 1440×1800 |  |  | | Commits / one commit | Desktop · 1440×1800 |  |  | | Info panel / properties only | Desktop · 1440×1800 |  |  | | Thread storage / fully shown | Mobile · 390×844 |  |  | **Slop Cop** (one cumulative review of all five panels, at `d1b5033`): - Security, architecture, code quality and performance were reviewed. End-to-end QA in the exact build passed all seven flows with no console errors. - **Two P1s, both fixed in `7a74b10`:** - Row names were set not to shrink. Commit rows have two actions, which then slid under the timestamp. - Storage search rendered every match without the row cap. - **P2s go to a follow-up PR:** - collator reuse in the tree sort - merged folders collapsing when they split - expanded folders carrying over between threads - the overflow cap counting only top-level entries - reusing `directoryFromPath` Manual QA: signed off by the user. **Tests:** new unit tests cover tree building, folder merging, ordering, ancestor paths, and opening the folders above a selected file. Remote CI runs on the PR. Tests, typecheck and lint were not run locally. BB-Thread: [Thread storage viz design](https://brsbl.getbb.app/projects/proj_khiw2za95v/threads/thr_pkx7jnw5gf) BB-Thread-ID: thr_pkx7jnw5gf > AGENT GENERATED 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The thread Info panel was a single label/value table with lists bolted on. Commit IDs and file paths competed with commit subjects and file names, and each section used a different layout. Thread storage was a file tree that looked detached from the rest of the panel. Rows also didn't say what clicking them would do.
What changed
Layout
Actions
Changes and storage
@pierre/treesleaves the app. Lists longer than six files get a search button in the heading. It opens a soft-bordered field in the same row, and the close button takes the search button's place, so the list doesn't move.Properties
~/and truncates at the end.Code structure
secondary-panel/info/, built from shared primitives ininfo-list.tsx:InfoSection,InfoList,InfoListRow,InfoRowAction,InfoRowTime, andInfoMenuTrigger. This prepares the panel for Make the thread Info panel a bundled, forkable plugin (like thread-list) #4956 (Info panel as a forkable plugin).RelatedThreadsSectionrenders any thread list, so subthreads can reuse it.TruncatedListis removed.No API, CLI, SDK, or wire changes.
How you verified
Screenshots come from the branch web app in headless Chrome for Testing through the Browser Automation plugin, at 2×, with identical seeded data. The fixture is a subthread on a branch 6 commits ahead of
main, with modified, renamed, added, deleted, and untracked files, 32 committed files, and four stored files. The storage search row uses the parent thread, which has seven stored files.Before:
a71d215· After: desktop rows atcf56d66, mobile rows at1cde32f(PR head) · Captured at 2×The commits after
cf56d66change only the untracked label, touch-screen row actions, and a slightly later truncation point for long row names. The desktop rows otherwise look the same at the head.The PR is based on
630bdf4. Nothing betweena71d215and630bdf4touches the Info panel.The state rows have no "Before" capture. Capturing them would have moved the live QA preview off the PR head while QA was in progress.
Browser QA (Chrome for Testing, light and dark):
User QA: signed off.
Tests:
GitStatusRowtests cover the dirty icon and the label rule.Remote CI runs on the PR head. Tests, typecheck, and lint were not run locally.
Follow-ups (P2, not in this PR):
InfoRowTimeagainst out-of-range commit dates.BB-Thread: Enhance info panel to thread navigation
BB-Thread-ID: thr_6ii952bx6f
🤖 Generated with Claude Code