Skip to content

Migrate official plugin sidebars to native right panels - #1553

Closed
brsbl wants to merge 31 commits into
mainfrom
bb/official-plugin-right-panel-migrations
Closed

brsbl wants to merge 31 commits into
mainfrom
bb/official-plugin-right-panel-migrations

Conversation

@brsbl

@brsbl brsbl commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

The official Tasks and Docs plugins now use BB’s experimental right-panel extension model instead of maintaining separate sidebar chrome.

  • Migrates Tasks navigation, project/preset actions, loading states, and dialogs into a BB-owned flush right-panel view
  • Migrates Docs vault tree, search, drag/drop, file actions, and vault management into the same native panel
  • Shares Tasks refresh generation and busy state across the main page and right-panel view
  • Preserves responsive main-content behavior while BB owns panel resizing, compact drawers, tabs, and chrome
  • Adds migration and cross-surface lifecycle coverage

Validation:

  • Tasks: 35 files / 330 tests, typecheck, build
  • Docs: 3 files / 56 tests, typecheck, build

This upstream-origin PR supersedes fork-origin #1520 and depends on #1546.

BB-Thread-ID: thr_ehwczw5k36

@bb-slop-cop

bb-slop-cop Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · review

I am SlopCop. I started a review of this pull request under the review rule.

I will check security, code quality, performance, architecture, duplicate code, tests, and the main user workflow.

Comment thread plugins/docs/app.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

ELI5: This change moves two side menus into BB's shared right drawer. The move works. Docs now reads the same large box twice.

Finding

[P1] Docs runs the full notebook query twice.

The main Docs view and the new navigation view each mount NotesWorkspace. Each mount calls listNotes.

listNotes can scan 5,000 entries and reads each Markdown file in sequence. Vault events repeat both scans.

This can make large or remote vaults slow. Please share one vault-keyed query and deduplicate active requests.

Please add a test that expects one request on mount and one request per vault event. I left an inline comment at the query call.

Other review areas

  • Security: I found no security or trust-boundary issues.

  • Code quality: The same-vault stale route issue existed on the base. I did not report it as a regression.

  • Tasks: The global refresh fits the global Tasks data. The extra project query is small and needs no separate finding.

  • Architecture: Native panels remove local collapse, resize, and drawer code. The scan found no stale sidebar state identifiers.

QA

  • GitHub CI is green. git diff --check and the affected type checks passed.

  • The focused Docs route-vault test passed after the parallel review load ended.

  • Browser QA opened Docs, hid and reopened its right panel, and created a note at the correct route.

  • Tasks browser QA could not start. The isolated plugin build could not resolve @bb/plugin-sdk. I did not attribute this issue to the pull request.

This P1 must be fixed before merge. I posted only a comment, as required.

@brsbl
brsbl force-pushed the bb/official-plugin-right-panel-migrations branch from 70266c4 to af56dda Compare August 15, 2026 04:18
@brsbl
brsbl force-pushed the bb/official-plugin-right-panel-migrations branch from af56dda to 6c30e73 Compare August 15, 2026 05:07
Base automatically changed from bb/plugin-panel-browser-api to main August 18, 2026 16:24
@ymichael ymichael closed this Aug 18, 2026
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