Skip to content

Redesign the thread Info panel around one list system - #4898

Merged
brsbl merged 26 commits into
mainfrom
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f
Oct 6, 2026
Merged

brsbl merged 26 commits into
mainfrom
bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f

Conversation

@brsbl

@brsbl brsbl commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Sections: Forks, Commits, Changes, and Thread storage share one heading with a count pill, separated by dividers.
  • Rows: every row is 24px with a 12px glyph column, so names line up across sections. Names are full color; glyphs, folder hints, and compact ages ("5h", "1d") are tertiary.
  • Overflow: long lists show five rows, then an "N more" row that expands in place.

Actions

  • Hovering a row highlights it and shows its actions right after the name. Each action has its own nested hover and a short tooltip. On touch screens, a row with more than one action shows a single "…" beside its timestamp that opens them in the mobile drawer:
    • Commits: "Open diff" and "Copy commit SHA".
    • Changed files and stored files: "Open in tab".
  • Clicking a row:
    • a commit or changed file opens its diff;
    • a stored file opens it;
    • a fork opens that thread.

Changes and storage

  • Changes: boxed git status icons with one-word tooltips (Modified, Added, Deleted, Renamed, Conflict). Untracked files read as Added because bb's commit stages every change. Each row shows a filename with its folder, and a five-block size bar that swaps to exact counts on hover. The Uncommitted / Committed switcher sits next to the count.
  • Thread storage: a flat list replaces the file tree, so @pierre/trees leaves 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

  • Icons are smaller and quieter, and copy buttons appear on hover.
  • The new-thread-in-environment icon matches the other row icons.
  • Directory: shows the home folder as ~/ and truncates at the end.
  • Git status: a dirty working tree shows a red icon with an "Uncommitted changes" tooltip. The "Ahead" or "Behind" label is dropped when the summary already says it.
  • Carets: every caret is 12px.

Code structure

  • Each section is its own module under secondary-panel/info/, built from shared primitives in info-list.tsx: InfoSection, InfoList, InfoListRow, InfoRowAction, InfoRowTime, and InfoMenuTrigger. This prepares the panel for Make the thread Info panel a bundled, forkable plugin (like thread-list) #4956 (Info panel as a forkable plugin).
  • RelatedThreadsSection renders any thread list, so subthreads can reuse it.
  • The commit dialog's changed-files row is single-bucket. The unused TruncatedList is 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 at cf56d66, mobile rows at 1cde32f (PR head) · Captured at 2×

The commits after cf56d66 change 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 between a71d215 and 630bdf4 touches the Info panel.

Screen / state Viewport Before After
Info panel Desktop · 1440×900 Before: Info panel After: Info panel
Commit row / hover Desktop · 1440×900 Not captured After: commit hover with open diff and copy
Changed file / hover Desktop · 1440×900 Not captured After: file hover with counts and open action
Bucket switcher / menu open Desktop · 1440×900 Not captured After: bucket menu open
Committed bucket / expanded Desktop · 1440×900 Not captured After: committed files expanded
Thread storage / search Desktop · 1440×900 Not captured After: storage search in the heading
Info panel / dark Desktop · 1440×900 Not captured After: dark theme
Info panel Mobile · 390×844 Not captured After: mobile Info panel
Commit actions menu Mobile · 390×844 Not captured After: mobile commit actions drawer

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):

  • The commit open action opens the Diff tab; copying a commit SHA shows a toast.
  • File hover shows exact counts. "Open in tab" opens the file.
  • The bucket switcher and "N more" work.
  • Storage search filters in place, and Escape closes it.
  • Rows are reachable by keyboard.
  • All carets measure 12×12.

User QA: signed off.

Tests:

  • New tests cover the compact time format, the size-bar scale, the list overflow threshold, and storage search.
  • GitStatusRow tests 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):

  • Guard InfoRowTime against out-of-range commit dates.
  • Cap expanded lists for very large thread storage.
  • Fetch forks once and pass them in as data.
  • Share the Ahead/Behind label rule with the commit dialog.
  • Let a click on the 12px status icon open the diff.
  • Align the composer's "New thread in this environment" wording.

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 #4899 October 5, 2026 08:27
@brsbl
brsbl force-pushed the bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f branch from 9570e0e to 49e1687 Compare October 5, 2026 08:28
@brsbl brsbl changed the title Show related subthreads and align git lists in the Info panel Link related subthreads and align git lists in the Info panel Oct 5, 2026
@brsbl
brsbl force-pushed the bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f branch from 9cd6cc7 to 1d054f0 Compare October 5, 2026 09:29
@brsbl brsbl changed the title Link related subthreads and align git lists in the Info panel Align git lists in the Info panel Oct 5, 2026
@brsbl brsbl changed the title Align git lists in the Info panel Redesign the thread Info panel around one list system Oct 5, 2026
@brsbl
brsbl removed this pull request from stack #4899 October 5, 2026 22:58
@brsbl
brsbl force-pushed the bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f branch from 5790b32 to 505967f Compare October 5, 2026 22:58
@brsbl
brsbl changed the base branch from bb/generate-parent-child-naming-ideas-in-bb-thr_7xmbr7vsqz to main October 5, 2026 22:58
brsbl and others added 4 commits October 5, 2026 17:08
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]>
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
brsbl force-pushed the bb/enhance-info-panel-to-thread-navigation-thr_6ii952bx6f branch from d154999 to 0e8897a Compare October 6, 2026 00:10
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]>
brsbl and others added 11 commits October 5, 2026 17:41
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]>
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]>
brsbl and others added 6 commits October 5, 2026 20:08
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]>
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]>
@brsbl
brsbl removed this pull request from stack #4984 October 6, 2026 04:00
@brsbl
brsbl added this pull request to stack #4999 October 6, 2026 04:00
brsbl and others added 4 commits October 5, 2026 21:07
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]>
@brsbl
brsbl merged commit 65e104c into main Oct 6, 2026
41 checks passed
@brsbl
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 | ![Before: heading hover
has no
affordance](https://github.com/user-attachments/assets/c481e307-6a4a-44a5-aeea-c768ebfab142)
| ![After: heading hover
highlight](https://github.com/user-attachments/assets/ce0e539b-f7dd-4a3f-aec6-6f7bf750dda1)
|
| Changes / after clicking the heading | Desktop · 1440×900 | ![Before:
clicking the heading does
nothing](https://github.com/user-attachments/assets/b7a87276-9df1-403c-a72e-be03fd58def9)
| ![After: Changes
collapsed](https://github.com/user-attachments/assets/feb26480-f25a-4ba8-aac7-ce0cb1b312cc)
|

- **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]>
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 | ![Before: Info panel /
default](https://github.com/user-attachments/assets/6effed3d-478b-4033-901f-9dcc66f1afb6)
| ![After: Info panel /
default](https://github.com/user-attachments/assets/c4e54241-f388-4daa-9249-e9e3d30874ac)
|
| Thread storage / fully shown (before: "N more" opened; after: folders
opened) | Desktop · 1440×1800 | ![Before: Thread storage / fully shown
(before: "N more" opened; after: folders
opened)](https://github.com/user-attachments/assets/6f4dc43a-4536-40e2-ad5f-4c8c47e43918)
| ![After: Thread storage / fully shown (before: "N more" opened; after:
folders
opened)](https://github.com/user-attachments/assets/f2395284-6ff7-4486-a4e2-deb0f4f7b9f9)
|
| Thread storage / search "md" | Desktop · 1440×1800 | ![Before: Thread
storage / search
"md"](https://github.com/user-attachments/assets/f8002b41-1acd-46ec-8b84-77f3c048781e)
| ![After: Thread storage / search
"md"](https://github.com/user-attachments/assets/a8e15c88-af41-4dc2-8101-1896d1084976)
|
| Uncommitted file / size squares hovered | Desktop · 1440×1800 |
![Before: Uncommitted file / size squares
hovered](https://github.com/user-attachments/assets/7e70b1f7-3daa-44eb-9cdc-f3ed84a17bfd)
| ![After: Uncommitted file / size squares
hovered](https://github.com/user-attachments/assets/9723d79b-8082-48af-a880-d0e2ef8957bd)
|
| Commits / one commit | Desktop · 1440×1800 | ![Before: Commits / one
commit](https://github.com/user-attachments/assets/301e8adb-6483-4607-a97a-f36db9ca15d7)
| ![After: Commits / one
commit](https://github.com/user-attachments/assets/43117c02-faf3-407a-aeeb-2bc44501c7b5)
|
| Info panel / properties only | Desktop · 1440×1800 | ![Before: Info
panel / properties
only](https://github.com/user-attachments/assets/e5a3333b-266a-4f76-a81d-fb43ba15d924)
| ![After: Info panel / properties
only](https://github.com/user-attachments/assets/3f3c3ad1-3155-4494-839d-77b1af62ab8d)
|
| Thread storage / fully shown | Mobile · 390×844 | ![Before: Thread
storage / fully
shown](https://github.com/user-attachments/assets/073e92d7-016a-4137-bb34-6b8f15e0dcd7)
| ![After: Thread storage / fully
shown](https://github.com/user-attachments/assets/72824ba1-2639-460e-8b97-b612e36034c8)
|


**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]>
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