Repository navigation
Match the new-thread tabbed panel to thread panels - #1715
Conversation
b02909c to
9142c3a
Compare
9142c3a to
3a19534
Compare
|
🚨 I will also check for duplicate code and possible architecture improvements. |
There was a problem hiding this comment.
🚨 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/apptype check passed. git diff --checkpassed.- 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.
0cef72f to
70c2786
Compare
70c2786 to
731a28e
Compare
Summary
New tabpill in the shared right-panel tab stripWhy
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
@bb/apppanel tests — 73 tests passedpnpm exec turbo run typecheck --filter=@bb/app— passedpnpm exec turbo run lint --filter=@bb/app— passed with repository baseline warnings and no errorsRootComposeView.tsxand its test — passed with no findingsNew tab, adjacent add-tab control, lone-tab close behavior, and five open/close cycles passedgit diff --check— passedBB-Thread-ID: thr_bwikffmsvp
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.