Repository navigation
Lead parent thread rows with their disclosure and count their sub-threads - #5910
Closed
alexandre-vl wants to merge 5 commits into
Closed
alexandre-vl wants to merge 5 commits into
alexandre-vl wants to merge 5 commits into
Conversation
This was referenced Oct 20, 2026
alexandre-vl
force-pushed
the
thread-list-sub-thread-rows
branch
from
October 22, 2026 11:22
c5bb8fd to
f91f1df
Compare
Without provider icons, a parent's toggle hung 16 px left of its title, half outside its row: the hover, selected and focus highlights cut it in two, and the chevrons of rows scrolled under a sticky project header showed beside it. The disclosure now sits in a 16 px slot at the start of the row, 2 px inside the row's left edge and 2 px before the title. Every thread row keeps that slot while icons are hidden, so leaf and parent titles line up and nothing shifts when a parent appears or goes away. Sub-thread guide lines, including the segment a sticky parent draws for its own parent, run through the chevron's center. Parents keep the quick-action space reserved, so the count stays still on hover and Archive keeps its column as on main (get-bb#6088). Rows with provider icons keep the icon-slot toggle. The Action alignment story now hides provider icons, so its check no longer depends on whether a dev server answers the providers request. The check also asserts that the disclosure leads the title inside its row, that titles line up, and that sub-thread guides meet the chevron.
alexandre-vl
added a commit
to alexandre-vl/bb
that referenced
this pull request
Oct 22, 2026
alexandre-vl
force-pushed
the
thread-list-sub-thread-rows
branch
from
October 22, 2026 12:11
f91f1df to
69ccffa
Compare
alexandre-vl
added a commit
to alexandre-vl/bb
that referenced
this pull request
Oct 22, 2026
Main moved the gap after the provider mark from 6 px to 8 px (get-bb#6399), so sibling titles start 24 px into the icon slot. The disclosure that replaces a parent's provider mark still ended at 22 px; its trailing gap now matches.
Contributor
|
This is an automated message. We have closed this pull request because it has been open for more than two weeks. |
3 tasks done
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
#6088 fixed #5909 by keeping a parent's chevron after its title and reserving the quick-action space on parent rows, so Archive and "…" line up on every row. What it left: the chevron's column still moves with each title, sits away from the sub-thread guide it opens, and only shows on hover once the parent is expanded; a collapsed parent's trailing glyph merges its sub-threads' running work into its own status, so the parent looks busy whenever any descendant works; and nothing says how many sub-threads a collapsed parent holds. An earlier version of this PR moved the chevron left by hanging it 16 px outside the title. Without provider icons that put it half outside its row, so the hover, selected and focus highlights cut it in two and it showed beside sticky project headers.
What changed
Ladle story
sidebar/Thread list/Sub threadsat 288 px. Every row is shown hovered: one capture per row, stacked.plugins/thread-list/app/rows/SubThreadToggle.tsx(new):SubThreadToggleputs a parent's disclosure at the left of its title.aria-describedbyadds "3 threads, 2 working, Claude Code". The coarse-pointer hit area is 36 px tall.SubThreadDisclosureSlotgives every other thread row the same empty slot while provider icons are off, so parent and leaf titles line up. The slot is reserved in every list, not only in lists that show a parent. Parents come and go on their own (an agent spawns a sub-thread, the last sub-thread is archived, read-status grouping moves a parent), and a slot that followed them would shift every title of that list under the pointer at those moments. It costs 12 px of title width.SubThreadCountsits after the title: the number of sub-threads, nested ones included and capped at "99+", or busy/total with the busy kind's glyph while some of them work.ThreadRow.tsx:ProjectRow.tsx: without provider icons, sub-thread guide lines run through the chevron's center: the group line, the environment header's continuation, and the segment a sticky parent draws through itself (placed with the newThreadRowOptions.isSubThread). With provider icons they stay at the icon's center.thread-activity.ts:getCollapsedChildActivityalso returnsworkingCount.sidebar/Thread list/Sub threads, with and without provider icons, on mocked providers.Action alignmentstory now hides provider icons. Its check no longer depends on whether a dev server answers/api/v1/system/providersthrough the Ladle proxy.apps/app/.ladle/tests/sidebar-actions.mjsalso checks that the disclosure sits inside its row and before the title, that parent and leaf titles line up, and that the sub-thread guide meets the chevron.How you verified
pnpm exec turbo run typecheck lint test --filter=bb-plugin-thread-list: passes; 455 tests; lint has 0 errors (the 6 warnings are on main too).pnpm exec turbo run typecheck --filter=@bb/app: passes.ThreadRow.test.tsx: "leads a parent's title with its disclosure, in the slot every leaf keeps, without provider icons", collapsed and expanded;ProjectRow.interactions.test.tsx: "runs each sub-thread guide through its parent's disclosure without provider icons".dev-browser run apps/app/.ladle/tests/sidebar-actions.mjson theAction alignmentstory passes at 220, 288 and 360 px. On 687ea6b it fails with "the arrow sticks out of its row".