Skip to content

Add sidebar navigation replacement API - #2802

Merged
SawyerHood merged 3 commits into
mainfrom
bb/sidebar-navigation-replacement
Sep 1, 2026
Merged

SawyerHood merged 3 commits into
mainfrom
bb/sidebar-navigation-replacement

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

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-navigation
  • pnpm exec turbo run test --filter=@get-bb/plugin-sdk --filter=@bb/plugin-api-map --filter=@bb/app --force
  • bb plugin build examples/plugins/sidebar-navigation
  • bb plugin build plugins/plugin-api-docs
  • Installed the example plugin against the local development app.
  • Used Doobie to test desktop, compact, search, provider choice, persistence, delegation, navigation, and crash fallback states.

Fixes: none. Extracted from #2443.

AGENT GENERATED

@SawyerHood
SawyerHood force-pushed the bb/sidebar-navigation-replacement branch from 87baa69 to a7d6dce Compare September 1, 2026 16:35
@SawyerHood
SawyerHood force-pushed the bb/sidebar-navigation-replacement branch from a7d6dce to 6782dfb Compare September 1, 2026 16:36
@SawyerHood
SawyerHood merged commit 431f710 into main Sep 1, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/sidebar-navigation-replacement branch September 1, 2026 16:50
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 |
| --- | --- |
| ![Before: app-window annotations follow insertion
order](https://img3.pixhost.to/images/5402/765249867_before-app-shell-1440.png)
| ![After: app-window annotations follow column-major reading order
without
collisions](https://img3.pixhost.to/images/5404/765291623_final-app-shell-1440.png)
|

### Command Palette annotation — 1200×800

| Before — annotation covers the result | After — annotation sits beside
the palette |
| --- | --- |
| ![Before: Command Palette annotation 1 overlaps its annotated
result](https://img3.pixhost.to/images/5402/765249932_before-command-palette-1200.png)
| ![After: Command Palette annotation 1 sits outside the content flush
to the left
edge](https://img3.pixhost.to/images/5402/765249943_after-command-palette-1200.png)
|

### Sidebar annotations 1 and 2 — 1200×800

| Before — badges overlap | After — badges and targets are separated |
| --- | --- |
| ![Before: app-window annotations 1 and 2
overlap](https://img3.pixhost.to/images/5403/765266449_compact-app-shell-1-sidebar-navigation.png)
| ![After: app-window annotations 1 and 2 are
separated](https://img3.pixhost.to/images/5404/765291619_final-sidebar-1200.png)
|

### Thread-header annotation 6 — 1200×800

| Before — badge covers the control | After — badge sits above the
control |
| --- | --- |
| ![Before: annotation 6 covers the thread-header
control](https://img3.pixhost.to/images/5404/765291931_compact-app-shell-6-thread-header.png)
| ![After: annotation 6 sits above the thread-header
control](https://img3.pixhost.to/images/5404/765291618_after-thread-header-1200.png)
|

## 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
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.

1 participant