Repository navigation
Add sidebar navigation replacement API - #2802
Merged
Merged
Conversation
SawyerHood
force-pushed
the
bb/sidebar-navigation-replacement
branch
from
September 1, 2026 16:35
87baa69 to
a7d6dce
Compare
Co-authored-by: Michael Bullington <[email protected]>
SawyerHood
force-pushed
the
bb/sidebar-navigation-replacement
branch
from
September 1, 2026 16:36
a7d6dce to
6782dfb
Compare
brsbl
added a commit
that referenced
this pull request
Sep 2, 2026
## Human comments ## What was wrong The Plugin Guide had several annotation layout problems: - An annotation at the app-window edge could be clipped. - Command Palette annotation 1 sat over the result it described. - App-window badges 1 and 2 overlapped at compact widths. - Annotation 1 captured annotation 2's target, and annotation 2's inline bounds spilled into annotation 4. - Annotation 6 covered the thread-header plugin control. The first-page numbers also followed insertion order instead of the diagram's spatial reading order. **This PR adds no annotations.** The merge base already contains the same 14 app-window surfaces after [#2802](#2802). ## What changed - Renumbered the app-window annotations by column: columns left-to-right, then top-to-bottom within each column. - Let edge annotations render outside the app-window frame without clipping. - Moved Command Palette annotation 1 flush against the palette's left side. - Gave annotation 2 block-level bounds and explicit ownership above its intentionally nested parent overlay. - Anchored annotation 1's exterior badge to the top of its region so it stays separate from annotation 2 at compact widths. - Moved annotation 6 into the measured space above its control. - Added focused tests and one compact maintenance checklist for spatial order, badge collisions, overlay bounds, and pointer ownership; annotation-only work now routes through that checklist. ## Before and after ### App-window annotations — 1440×900 | Before — insertion order | After — spatial order and corrected placement | | --- | --- | |  |  | ### Command Palette annotation — 1200×800 | Before — annotation covers the result | After — annotation sits beside the palette | | --- | --- | |  |  | ### Sidebar annotations 1 and 2 — 1200×800 | Before — badges overlap | After — badges and targets are separated | | --- | --- | |  |  | ### Thread-header annotation 6 — 1200×800 | Before — badge covers the control | After — badge sits above the control | | --- | --- | |  |  | ## How you verified - Tested the exact PR branch in the branch web app with Chrome for Testing 151.0.7922.71. - Checked the app-window fixture at 1440×900 and 1200×800 after initial load, hard reload, and client navigation away and back. - Confirmed badges 1 and 2 have no rendered intersection at either viewport. - Confirmed annotation 2 owns every sampled point in its visible target and has no intersection with annotation 4. - Confirmed annotation 6 has no intersection with its thread-header control. - Focused the changed target and external badge through the real UI; no console errors occurred. - Built and reloaded the real `plugin-api-docs` plugin bundle used for QA. - Evaluated the annotation-only match and internal-refactor near miss in fresh read-only threads. - `git diff --check` and GitHub CI pass on the current head. Fixes: no linked issue. BB-Thread-ID: thr_pqa3x7rwny > AGENT GENERATED
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.
Human comments
What was wrong
Pull request #2443 combined the sidebar navigation API with other replacement surfaces. Its sidebar search contract also described UI that no longer exists.
What changed
This change adds only
app.slots.experimental_sidebarNavigation. Plugins receive semantic actions for New thread, Search, Extensions, and plugin panels.Search opens the current quick palette. The API has no inline search field, query, combobox, or result list.
BB still owns routes, split rules, shortcuts, the thread list, the footer, and the responsive drawer. A crash restores BB navigation.
The change adds an Appearance setting, Plugin Guide coverage, authoring references, SDK 0.4.33, and a complete example plugin.
This change does not alter the host daemon protocol.
How you verified
pnpm exec turbo run typecheck --filter=@get-bb/plugin-sdk --filter=@bb/app --filter=@bb/plugin-api-map --filter=bb-plugin-sidebar-navigationpnpm exec turbo run test --filter=@get-bb/plugin-sdk --filter=@bb/plugin-api-map --filter=@bb/app --forcebb plugin build examples/plugins/sidebar-navigationbb plugin build plugins/plugin-api-docsFixes: none. Extracted from #2443.