Skip to content

Add sidebar-navigation and Changes-view replacement slots - #2443

Closed
SawyerHood wants to merge 1 commit into
bb/garden-2-escape-to-stopfrom
bb/garden-3-app-replacement-slots
Closed

SawyerHood wants to merge 1 commit into
bb/garden-2-escape-to-stopfrom
bb/garden-3-app-replacement-slots

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Plugins could replace the thread list but not the two other sidebar/secondary-panel surfaces people wanted to own: the navigation controls block (New thread / Search / Extensions / plugin panels) and the whole Changes view (toolbar + file list). Plugin-owned dialogs also lacked a host-provided non-modal drawer.

What changed

Two exclusive replacement slots and one helper, all experimental_ and entered in docs/api_to_audit.md:

  • app.slots.experimental_sidebarNavigation: a semantic item list (new-thread, search-threads, extensions, plugin-panel:<pluginId>/<panelId>), activeItemId, experimental_activate(itemId, { openInSplit }), experimental_Original. bb keeps the drawer, search field, thread list, footer, and shortcuts (SidebarNavigationRegion, sidebarNavigationItems.ts). Settings → Appearance → Navigation picks the provider.
  • app.slots.experimental_changesView: replaces the Changes toolbar and file list; ChangesViewHost passes experimental_target (file/commit intents with a sequence) and experimental_Original. The built-in view remembers its selection per environment and its line-overflow mode.
  • experimental_ResponsiveDrawer (PluginResponsiveDrawer): the shared persistent responsive drawer for plugin UIs.
  • PluginSourceCodeRendererProps.experimental_Original / PluginDiffRendererProps.experimental_Original.
  • Plugin SDK bumps to 0.4.19; plugin-app-collector, plugin-slots, the testing harness, and the replacement-lab-* example plugins cover the new slots.

No wire change. Prerequisite: #2442 (stack order only).

How you verified

turbo run typecheck; turbo run test for @get-bb/plugin-sdk, @bb/app (sidebar, secondary-panel, settings, plugin), @bb/server (plugin-authoring docs), @bb/cli (packaged plugin build with the examples).

Fixes: none (upstream stack split).

AGENT GENERATED

SawyerHood added a commit that referenced this pull request Sep 1, 2026
## 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

---------

Co-authored-by: Michael Bullington <[email protected]>
@SawyerHood

Copy link
Copy Markdown
Collaborator Author

This is an automated message. We have closed this pull request because it has been open for more than two weeks.

@SawyerHood SawyerHood closed this Sep 9, 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.

1 participant