Add nav panel menu example plugin - #2406
Open
brsbl wants to merge 2 commits into
Open
Conversation
brsbl
force-pushed
the
bb/sidebar-plugin-menu-example-layer2-thr_jgmy8ay2qd
branch
from
August 25, 2026 16:02
ab235f6 to
0c8d9af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong
The new optional plugin-page menu contract had no in-repository consumer, so its group ordering, context helpers, and lazy-submenu shape could regress without exercising the same API a real plugin would import.
What changed
examples/plugins/nav-panel-menu, a self-contained plugin that registers two labeled groups and a lazyAPI surfacessubmenu throughexperimental_menu.MenuContext.navigateandopenInSplitfrom real menu actions while keeping lazy submenu items unresolved until the submenu opens.engines.bbPluginSdk >=0.4.18floor; unrelated examples and the shared released baseline are unchanged.Before — parent layer
dd32116ceAfter — this PR head
0c8d9af82How you verified
pnpm install --lockfile-only --frozen-lockfile --ignore-scripts --offlineagainst an isolated modules directory.pnpm exec oxfmt --threads=1 --check examples/plugins/nav-panel-menupassed.pnpm exec oxlint examples/plugins/nav-panel-menupassed.@get-bb/plugin-sdk/appsource in 9.7 seconds.runningagainst the exact SDK 0.4.18 branch app; its two groups rendered, the lazy submenu produced Agents / App slots / Storage only on open, and selecting Agents navigated tosurfaces/agentswithout a console exception.Fixes
No linked issue; supplies the required living consumer layer for Phase 3 of the Updated Sidebar Spec.
BB-Thread-ID: thr_jgmy8ay2qd