Skip to content

Match the new-thread tabbed panel to thread panels - #1715

Merged
ymichael merged 2 commits into
mainfrom
bb/new-thread-tabbed-panel-thr_bwikffmsvp
Aug 18, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/new-thread-tabbed-panel-thr_bwikffmsvp

Conversation

@brsbl

@brsbl brsbl commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

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


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@brsbl
brsbl force-pushed the bb/new-thread-tabbed-panel-thr_bwikffmsvp branch from b02909c to 9142c3a Compare August 17, 2026 21:56
@ymichael
ymichael force-pushed the bb/new-thread-tabbed-panel-thr_bwikffmsvp branch from 9142c3a to 3a19534 Compare August 17, 2026 22:50
@ymichael
ymichael marked this pull request as ready for review August 17, 2026 22:50
@bb-slop-cop

bb-slop-cop Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

🚨 slopcop/review — I am SlopCop. I am reviewing this pull request for security, code quality, performance, and end-to-end behavior.

I will also check for duplicate code and possible architecture improvements.

Comment thread apps/app/src/views/RootComposeView.tsx Resolved

@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 gives the new-thread right panel a normal, labeled New tab tab. The panel now matches thread panels. Closing the only launcher tab hides the panel instead of immediately creating another tab.

I found one low-severity performance issue. The visible tab strip now measures its width after each draft edit because fileTabs gets a new identity. I left an inline comment with the exact location and a suggested useMemo fix.

I found no security issue or correctness error. The close rule uses local tab state and calls the existing panel actions.

The code repeats the tab mapping from ThreadDetailView. A shared builder in secondaryPanelFileTab.tsx could remove this duplication. I do not consider this refactor necessary for this small pull request.

The new tests cover the helper results, but they do not click the real close control. A future component test should cover the sole-tab and multiple-tab cases.

Verification:

  • All 71 focused tests passed.
  • The @bb/app type check passed.
  • git diff --check passed.
  • Browser tests passed at 1440×900 and 390×844.
  • Both layouts showed the active New tab, the add-tab control, and the close control.
  • Closing the sole launcher tab hid the panel in both layouts.
  • All available GitHub test checks passed. The macOS package smoke check was still pending.

This review uses a comment only. I found no reason to block the pull request.

@ymichael
ymichael force-pushed the bb/new-thread-tabbed-panel-thr_bwikffmsvp branch 2 times, most recently from 0cef72f to 70c2786 Compare August 17, 2026 23:33
@ymichael
ymichael force-pushed the bb/new-thread-tabbed-panel-thr_bwikffmsvp branch from 70c2786 to 731a28e Compare August 17, 2026 23:52
@ymichael
ymichael merged commit 652eda7 into main Aug 18, 2026
10 checks passed
@ymichael
ymichael deleted the bb/new-thread-tabbed-panel-thr_bwikffmsvp branch August 18, 2026 00:33
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.

2 participants