Skip to content

Align new-thread panel opener chrome - #1700

Closed
brsbl wants to merge 1 commit into
mainfrom
bb/new-thread-panel-consistency-thr_bwikffmsvp
Closed

brsbl wants to merge 1 commit into
mainfrom
bb/new-thread-panel-consistency-thr_bwikffmsvp

Conversation

@brsbl

@brsbl brsbl commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Give the closed new-thread right-panel opener the same subtle foreground token used by thread panel controls and the open panel's Hide control.
  • Preserve the existing 28px target, disclosure semantics, pinned placement, shortcut, compact drawer behavior, and handoff to panel-owned chrome.
  • Add a focused regression assertion for the shared resting and hover foreground classes.

Rationale and boundary

Thread and new-thread pages already share SecondaryPanelLayout and ThreadSecondaryPanel for width persistence, responsive drawer behavior, tabs, Browser/Terminal bodies, focus lifecycle, and resize seams. This patch stays at the new-thread wrapper boundary and changes no shared panel internals.

The new-thread page intentionally keeps its own pinned opener while the panel is closed because it has no shared page header. When open, the shared panel owns Hide and New Tab. It also intentionally omits thread-only Info, Diff, and Full Screen actions. Navigation-panel plugins remain page-header-owned and are outside this patch.

This PR is standalone on main. It does not depend on the plugin right-panel stack (#1546 → #1553) or the thread split-pane PR (#1601), and it has no file overlap with either.

Verification

  • Focused Vitest: RootComposeRightPanelToggle.test.tsx and RootComposeSecondaryContent.test.tsx — 10 tests passed.
  • turbo run typecheck --filter=@bb/app — passed.
  • Targeted ESLint and Prettier checks — passed.
  • git diff --check — passed.
  • Exact-branch BB desktop app plus browser-driven real interface at 390×844, 768×900, 1440×900, and 3440×1440 — passed.
  • 767/768/769 responsive transition and five open/close cycles per representative viewport — passed.

BB-Thread-ID: thr_bwikffmsvp

AGENT GENERATED: by GPT-5.6 Sol

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain-English summary: This pull request adjusts the control that opens the right panel in the new-thread view. It also updates the related tests.

I am the Slop Cop. I am reviewing this change for security, code quality, architecture, performance, and end-to-end behavior. I will post the full result after the parallel checks finish.

@brsbl
brsbl requested review from ymichael August 17, 2026 19:43

@bb-slop-cop bb-slop-cop Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 SLOP COP 🚨 · review

Plain-English summary: This PR gives the new-thread panel button the same quiet icon color as nearby panel controls. It also adds style checks.

I found no security, correctness, performance, or accessibility defect.

  • Security: The change adds one fixed class token. It adds no new data path or trust boundary.
  • Code quality: The change uses the established shared chrome token. The class merge gives the intended hover color.
  • Architecture: The similar split-workspace button follows a separate window-level policy. It serves thread, compose, and plugin panes.
  • Refactor scan: Some panel-toggle logic repeats. A shared component could remove it, but this PR does not require that refactor.
  • Performance: The change adds no hook, state, listener, node, or layout class. The test adds only three direct DOM checks.

Validation passed on the exact head SHA:

  • The focused test passed with two tests.
  • The @bb/app Turbo typecheck passed.
  • git diff --check passed.
  • The browser check opened and closed the right panel on the new-thread page.
  • The browser found the subtle token classes and no data-state value.

The GPT-5.6 review gate found no issue that needs an inline comment. This is a comment-only review.

@brsbl

brsbl commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator Author

Closing because this PR addressed only opener styling and did not implement the requested new-thread tabbed-panel consistency work. A correctly scoped replacement will follow.

@brsbl brsbl closed this Aug 17, 2026
ymichael added a commit that referenced this pull request Aug 18, 2026
## Summary

- render the new-thread launcher as a normal active `New tab` pill in
the shared right-panel tab strip
- keep the shared add-tab, tab-close, resize, hide, and responsive
drawer interactions aligned with thread panels
- hide the panel when its lone launcher tab is closed, avoiding an
immediate close-and-respawn loop

## Why

Root compose was explicitly marking its launcher tab as hidden. The
panel therefore opened to an unlabeled launcher body with only a bare
`+`, even though it already used the same panel shell as thread pages.

This replaces closed PR #1700, which changed only the external opener
color and did not address the requested tabbed panel.

## Intentional differences

The new-thread surface still omits Info, Diff, and conversation
full-screen controls because there is no materialized thread, thread
metadata, or conversation pane yet. The panel shell, tab strip,
launcher, resizing, hide control, persistence, and compact drawer remain
shared.

## Verification

- focused `@bb/app` panel tests — 73 tests passed
- `pnpm exec turbo run typecheck --filter=@bb/app` — passed
- `pnpm exec turbo run lint --filter=@bb/app` — passed with repository
baseline warnings and no errors
- changed-file ESLint for `RootComposeView.tsx` and its test — passed
with no findings
- real BB UI at 390×844, 768×900, 1440×900, and 3440×1440 — visible
active `New tab`, adjacent add-tab control, lone-tab close behavior, and
five open/close cycles passed
- `git diff --check` — passed

BB-Thread-ID: thr_bwikffmsvp

> AGENT GENERATED: by GPT-5

<!-- codesmith:footer -->
---
<a
href="https://app.blacksmith.sh/get-bb/codesmith/bb/pr/1715"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-light-v2.svg"><img
alt="View with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/view-with-codesmith-dark-v2.svg"></picture></a>
<a
href="https://backend.blacksmith.sh/track/enable-autofix?expires=1789594897&installation_model_id=432835&pr_number=1715&repository=get-bb%2Fbb&return_to=https%3A%2F%2Fgithub.com%2Fget-bb%2Fbb%2Fpull%2F1715&signature=ab96e0f8229a393a4bf8523dd3578325ddd32583e5ae1b636c0f1f3cdc379272"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-light.svg"><img
alt="Autofix with [code]smith"
src="https://pr-comments-assets.blacksmith.sh/codesmith/autofix-with-codesmith-dark.svg"></picture></a>
<sup>Need help on this PR? Tag <code>@codesmith-bot</code> with what you
need. Autofix is disabled.</sup>

<!-- codesmith:autofix:disabled -->
<!-- /codesmith:footer -->

---------

Co-authored-by: Michael Yong <[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