Repository navigation
Restore sidebar quick-action order on parent threads - #6088
Merged
Merged
Conversation
brsbl
marked this pull request as ready for review
October 21, 2026 23:26
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
alexandre-vl
added a commit
to alexandre-vl/bb
that referenced
this pull request
Oct 22, 2026
With provider icons off, the toggle hung 16 px left of the title. A top-level row has 8 px of left padding, so the chevron sat on the sidebar's edge, half outside the row: the hover, selected and focus highlights cut it in two, and the chevrons of rows scrolled under a sticky project header showed beside and above it. Without an icon slot, the disclosure now follows the title, before the count, and the row reserves the quick-action space as on main (get-bb#6088), so the chevron stays still on hover and Archive keeps its column. Rows with a provider icon keep the icon-slot toggle and the leaf geometry.
alexandre-vl
added a commit
to alexandre-vl/bb
that referenced
this pull request
Oct 22, 2026
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.
3 tasks done
ymichael
added a commit
that referenced
this pull request
Nov 23, 2026
## Human comments ## What was wrong In the sidebar, a parent thread row with children always reserved the full quick-action width (30 px per configured action) on its right edge. The 26 px slot of its disclosure chevron stayed reserved too, also when the chevron was hidden at rest. #6088 added this reserve to fix #5909: it keeps the chevron still on hover, so Archive cannot appear where the chevron was. But an expanded parent hides its chevron until hover, so there is nothing to keep still at rest. Its title still truncated 56 px (1 action) to 116 px (3 actions) earlier than a leaf title. [Reproduction report](https://get-bb.github.io/reports/issues/8053.html). ## What changed `plugins/thread-list/app/rows/ThreadRow.tsx`: - Only collapsed parents keep the permanent reserve, because their chevron shows at rest. Expanded parents use the hover-only inset, the same as leaf rows. - At rest, the hidden chevron of an expanded parent goes out of the layout flow (`absolute`). It comes back into the flow under the same row states that apply the inset: hover, keyboard focus, or an open actions menu. It stays focusable, so Tab from the row link still goes to the chevron. Touch screens (`hover: none`) do not change. This is a partial fix for #8053. Collapsed parents still reserve the space. A full fix needs the chevron at the leading edge of the row. The table compares three layouts, each built and measured in Chromium. It shows the title width at rest in a 288 px sidebar, with a long title and provider icons on. The leaf title is 210 px. | Layout | Expanded parent | Collapsed parent | |---|---|---| | main | 154 px (1 action), 94 px (3 actions) | 154 px, 94 px | | A: reserve only on collapsed parents (this PR) | 210 px | 154 px, 94 px | | B: chevron before the title | 190 px | 190 px | | C: chevron in the provider icon slot | 210 px | 210 px | In all three layouts, Archive and the menu stay in the leaf columns and the chevron does not move on hover. A is the closest to how the app works now. Every expandable row (project headers, environment groups, sidebar sections, timeline disclosures) keeps the chevron right after its label. B and C also fix collapsed parents, but they add a new pattern. With C, a collapsed parent also does not show its provider icon. B or C can follow in a separate PR if the maintainer prefers. No wire, SDK, CLI or setting change. ## How you verified - `ThreadRow.test.tsx`: the test "reserves quick-action space after parent disclosure" now asserts that a collapsed parent keeps the permanent padding and an expanded parent uses the hover-only inset. The expanded case fails on main (`expected true to be false`) and passes with this change. - `pnpm exec turbo run typecheck test lint --filter=bb-plugin-thread-list`: typecheck passes. Lint has 0 errors. Its 6 warnings are also on main. Tests: 460 of 460 pass. On Node 26, `app.test.tsx` "keys its slot and preferences mirror" fails because Node's own `localStorage` replaces the jsdom one. It passes with `NODE_OPTIONS=--no-experimental-webstorage`. CI uses Node 22. - Browser check in Chromium with hover. The rows are real `ThreadRow` DOM from the test harness, with the built app CSS and thread-list plugin CSS. Sidebar width 288 px, depth 0, 1 and 3 actions, provider icons on and off. Positions are from the left edge of the row: | Row (1 action, icons on) | main: title at rest | This PR: title at rest | Chevron x on hover | Archive x on hover | Space from chevron to Archive | |---|---|---|---|---|---| | Leaf, long title | 210 | 210 | - | 220 | - | | Expanded parent | 154 | 210 | 192 (main 192) | 220 | 8 px | | Collapsed parent | 154 | 154 | 192 (main 192) | 220 | 8 px | | Sticky expanded parent | 154 | 210 | 192 (main 192) | 220 | 8 px | With 3 actions: expanded parent 94 px to 210 px, chevron at 132 px, Archive at 160 px, 8 px between them. With provider icons off: expanded parent 178 px to 234 px (1 action) and 118 px to 234 px (3 actions). - In every case the row height is 28 px at rest and on hover, and the menu is at 250 px. - A click at the visible chevron of a collapsed parent hits Expand. - Keyboard focus on the row link and an open actions menu both show the chevron and apply the inset. Tab from the link goes to the chevron, then Archive, as on main. - Rename mode is the same as on main: 246 px input, chevron hidden, no padding. - Not checked: WebKit, the packaged desktop app, touch devices with a real pointer. Fixes #8053 > AGENT GENERATED --------- Co-authored-by: Michael Yong <[email protected]> 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
Parent rows measured the space beside their disclosure arrow and shifted quick actions left when titles were long. This put Archive before the arrow and moved it out of alignment with leaf rows.
What changed
How you verified
95d2dcc382.95d2dcc382.95d2dcc382, including the parent order/reserved-space unit coverage.Desktop web, 1440 × 900 viewport, default 320px sidebar, captured at 2×. Before uses main’s row implementation (
d9912408c2); after uses95d2dcc382.Fixes #5909
BB-Thread-ID: thr_b5w9teuwgi