Skip to content

Replace the collapsed-conversation rail with a panel header toggle - #951

Merged
SawyerHood merged 1 commit into
mainfrom
bb/review-commit-changes-thr_86xfq3dzwa
Aug 3, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/review-commit-changes-thr_86xfq3dzwa

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Summary

  • delete ConversationCollapsedRail and restore the conversation from the right panel's own header control
  • collapse the two macOS traffic-light reserve constants into one now that both surfaces share a px-4 base inset
  • drop the panel's border-l while the conversation is collapsed so it no longer doubles the sidebar's border-r

Why

The rail was a 32px placeholder whose only job was to carry the restore action. resolveConversationCollapseControl already resolves to "Restore conversation" while collapsed, but the panel header suppressed the control in that state so the rail could own it. Rendering it in both states keeps the expand/restore pair in one slot and removes a whole surface.

Two consequences fell out of the deletion:

Traffic-light geometry. The panel's reserve was pl-[68px], sized to sit behind the rail. Without the rail that lands leading content at 84px — under the pinned sidebar trigger, which is BB-46. Both the page header and the collapsed panel now start from the same 16px px-4 inset, so MACOS_COLLAPSED_HEADER_RESERVE_CLASS and MACOS_COLLAPSED_PANEL_TRAFFIC_LIGHT_RESERVE_CLASS merge into MACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASS at pl-[104px]. The paired-geometry test was already stale — it hardcoded RAIL_WIDTH = 36 after #934 shrank the rail to w-8, so it asserted a 120px target the app missed by 4px.

Double seam. Collapsing drops the timeline panel to 0% and the resize handle to 0px, so the panel's border-l border-border-seam landed directly on the app sidebar's border-r border-border-seam and rendered as one 2px line. The panel gives up its border while collapsed; the sidebar owns that boundary. The split-workspace host was never affected — there the panel already omits its border and the host's resize handle is the seam.

Behavior dropped: the rail showed a spinner while the agent ran with the conversation hidden. That signal is gone, by request.

Verification

  • pnpm exec turbo run typecheck --filter=@bb/app
  • Vitest across secondary-panel/, thread-detail/, and bb-desktop.test.ts — 38 files, 279 tests
  • new ThreadSecondaryPanel.collapseControl.test.tsx pins both halves of the disclosure pair; without a rail this control is the only way back from a collapsed conversation, so losing it strands the user. Confirmed it fails when the old gating is restored.
  • ESLint on changed files — 0 errors
  • manual QA in the dev app, measuring the seam pixel columns at the sidebar/panel boundary:
state seam columns
before fix, collapsed 319, 320 — 2px
after fix, collapsed 319 — 1px
after fix, conversation restored 319 — 1px

🤖 Generated with Claude Code

Delete ConversationCollapsedRail and let the right panel's own header
control restore the conversation. The control already resolved to
"Restore conversation" while collapsed; it was suppressed in that state
so the rail could own the action. Rendering it in both states keeps the
expand/restore pair in one slot.

Two consequences handled here:

- Traffic-light geometry. The panel's macOS reserve was sized to sit
  behind the 32px rail. Without the rail both the page header and the
  collapsed panel start from the same px-4 inset, so the two reserve
  constants collapse into one MACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASS at
  104px. The old paired-geometry test was already stale: it asserted a
  36px rail after the rail shrank to 32px.

- Double seam. Collapsing drops the timeline and resize handle to zero
  width, so the panel's border-l landed on the sidebar's border-r and
  read as one 2px line. The panel gives up its border while collapsed;
  the sidebar owns that boundary.

The working-state spinner the rail carried is dropped.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

SlopCop started this review. I will check security, code quality, performance, architecture, and the changed user flow.

@SawyerHood

Copy link
Copy Markdown
Collaborator Author

🚨 SLOP COP 🚨 · review

End-to-end phase complete on the exact pull request SHA.

I opened the right panel and used the header control to collapse the conversation. The control changed to Restore conversation without movement.

The hidden conversation became inert. The same control restored the conversation.

The app typecheck passed. All 52 focused tests passed.

@SawyerHood
SawyerHood merged commit 8a0a2ef into main Aug 3, 2026
10 checks passed
@SawyerHood
SawyerHood deleted the bb/review-commit-changes-thr_86xfq3dzwa branch August 3, 2026 21:13
amadad pushed a commit to amadad/bb that referenced this pull request Aug 14, 2026
…et-bb#951)

## Summary

- delete `ConversationCollapsedRail` and restore the conversation from
the right panel's own header control
- collapse the two macOS traffic-light reserve constants into one now
that both surfaces share a `px-4` base inset
- drop the panel's `border-l` while the conversation is collapsed so it
no longer doubles the sidebar's `border-r`

## Why

The rail was a 32px placeholder whose only job was to carry the restore
action. `resolveConversationCollapseControl` already resolves to
"Restore conversation" while collapsed, but the panel header suppressed
the control in that state so the rail could own it. Rendering it in both
states keeps the expand/restore pair in one slot and removes a whole
surface.

Two consequences fell out of the deletion:

**Traffic-light geometry.** The panel's reserve was `pl-[68px]`, sized
to sit *behind* the rail. Without the rail that lands leading content at
84px — under the pinned sidebar trigger, which is BB-46. Both the page
header and the collapsed panel now start from the same 16px `px-4`
inset, so `MACOS_COLLAPSED_HEADER_RESERVE_CLASS` and
`MACOS_COLLAPSED_PANEL_TRAFFIC_LIGHT_RESERVE_CLASS` merge into
`MACOS_COLLAPSED_TOP_LEFT_RESERVE_CLASS` at `pl-[104px]`. The
paired-geometry test was already stale — it hardcoded `RAIL_WIDTH = 36`
after get-bb#934 shrank the rail to `w-8`, so it asserted a 120px target the
app missed by 4px.

**Double seam.** Collapsing drops the timeline panel to 0% and the
resize handle to 0px, so the panel's `border-l border-border-seam`
landed directly on the app sidebar's `border-r border-border-seam` and
rendered as one 2px line. The panel gives up its border while collapsed;
the sidebar owns that boundary. The split-workspace host was never
affected — there the panel already omits its border and the host's
resize handle is the seam.

**Behavior dropped:** the rail showed a spinner while the agent ran with
the conversation hidden. That signal is gone, by request.

## Verification

- `pnpm exec turbo run typecheck --filter=@bb/app`
- Vitest across `secondary-panel/`, `thread-detail/`, and
`bb-desktop.test.ts` — 38 files, 279 tests
- new `ThreadSecondaryPanel.collapseControl.test.tsx` pins both halves
of the disclosure pair; without a rail this control is the only way back
from a collapsed conversation, so losing it strands the user. Confirmed
it fails when the old gating is restored.
- ESLint on changed files — 0 errors
- manual QA in the dev app, measuring the seam pixel columns at the
sidebar/panel boundary:

| state | seam columns |
| --- | --- |
| before fix, collapsed | 319, 320 — 2px |
| after fix, collapsed | 319 — 1px |
| after fix, conversation restored | 319 — 1px |

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <[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