Skip to content

Stop mounting panel sidebar accessories in the navigation rail - #4989

Merged
SawyerHood merged 1 commit into
mainfrom
bb/disable-panel-numbers-when-using-nav-rail-thr_jkmht94hj5
Oct 6, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/disable-panel-numbers-when-using-nav-rail-thr_jkmht94hj5

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

With the navigationRail experiment on, the rail mounted each plugin panel's experimental_sidebarAccessory on top of the panel's icon, clipped to 2rem (#4964). Accessories are sized for the trailing column of a sidebar row (4rem by 1.25rem), so a count or short status overlapped the icon and was cut off.

What changed

  • Rail (AppNavRail.tsx): the rail is icon-only. It no longer mounts panel sidebar accessories, so an accessory's queries and subscriptions do not run there either.
  • Sidebar rows: unchanged. With the experiment off, and on compact viewports, accessories behave as before.
  • Docs: docs/api_to_audit.md, the plugin-authoring frontend-core-slots.md reference, and bb-guide-plugins.md now say the rail does not mount accessories.

No plugin API change. With the rail on, an accessory's value is not shown anywhere on wide viewports, because the rail replaces the rows that carry it.

How you verified

  • AppNavRail.test.tsx: new case registers a panel with an accessory and asserts the rail neither mounts it nor shows its text. It fails before the change (the accessory mounted once) and passes after.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar/AppNavRail.test.tsx src/components/layout/AppLayoutSidebar.test.tsx passes (16 tests).
  • pnpm exec turbo run typecheck lint --filter=@bb/app passes.
  • pnpm exec turbo run test --filter=@bb/server -- test/services/plugins/plugin-authoring-docs.test.ts passes.
  • Not checked visually in the running app.

🤖 Generated with Claude Code

AGENT GENERATED

The rail drew each plugin panel's sidebar accessory on top of its icon,
clipped to 2rem. Accessories are sized for the trailing column of a
sidebar row, so counts overlapped the icon and were cut off. The rail is
now icon-only; sidebar rows are unchanged.

Co-Authored-By: Claude Code <[email protected]>
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