Skip to content

Open the navigation rail's customize editor in a popover - #4968

Merged
SawyerHood merged 2 commits into
mainfrom
bb/nav-rail-customize-popover-thr_8ga9782vvn
Oct 5, 2026
Merged

SawyerHood merged 2 commits into
mainfrom
bb/nav-rail-customize-popover-thr_8ga9782vvn

Conversation

@SawyerHood

@SawyerHood SawyerHood commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Builds on #4964 (merged), which added the navigationRail experiment. With the rail on, Customize opened the editor in the thread sidebar, a column away from the icons it edits. When the sidebar was showing Settings, Plugins, or Skills, it also had to jump to Home first so the editor had somewhere to render.

What changed

  • Popover editor (AppNavRail.tsx): Customize opens the existing reorder-and-visibility editor in a popover anchored to the rail's More button, on any screen. The rail updates beside it as items are reordered, shown, or hidden. Done, Escape, or clicking outside closes it and returns focus to More.
  • Pinned position: the popover anchors to where More was when it opened and stays there until it closes. More moves as items are shown or hidden, so anchoring to the button itself slid the editor under the pointer on every toggle.
  • Entry points: the More menu and each rail icon's context menu say "Customize rail" and "Hide from rail". Host openCustomize() calls open the same popover.
  • No Home jump: opening Customize no longer navigates.
  • Thread sidebar (AppSidebar.tsx): the navigation region is not mounted in rail mode, so the providerSuppressed path that Add a navigation rail experiment with Home and Settings tabs #4964 added to SidebarNavigationRegion is removed.
  • Editor (SidebarNavigationCustomize.tsx): takes a surface prop so the popover uses the compact frame and the "Customize rail" title.

No plugin API change. docs/api_to_audit.md is updated to say the editor opens in a popover.

How you verified

  • AppNavRail.test.tsx: the popover keeps its position when More moves (fails if the anchor follows the button); opening Customize from Settings keeps the route, renders the editor outside the rail, toggling items updates the rail, Done closes it and focuses More; a host openCustomize() call opens the same popover.
  • pnpm exec turbo run typecheck lint --filter=@bb/app passes.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar src/components/layout src/components/settings src/components/tools passes (53 files).
  • Source dev app in headless Chrome: opened Customize from Settings mode, showed Search threads, saw it appear in the rail, closed with Escape, focus returned to More. Toggled three items while measuring: More moved from 240px to 126px and the popover stayed at 240px.

🤖 Generated with Claude Code

AGENT GENERATED

@SawyerHood
SawyerHood added this pull request to stack #4970 October 5, 2026 23:33
Base automatically changed from bb/mock-left-nav-experiment-with-home-tab-and-thr_8ga9782vvn to main October 5, 2026 23:33
@SawyerHood
SawyerHood force-pushed the bb/nav-rail-customize-popover-thr_8ga9782vvn branch from 95dba12 to 8894179 Compare October 5, 2026 23:34
SawyerHood and others added 2 commits October 5, 2026 23:37
With the rail on, Customize opened the editor in the thread sidebar, a
column away from the icons it edits, and had to jump to Home first when the
sidebar was showing Settings, Plugins, or Skills.

The editor now opens in a popover anchored to the rail's More button on any
screen, so the rail reorders and shows or hides icons beside it as you edit.
Host openCustomize() calls open the same popover. The thread sidebar no
longer mounts the navigation region in rail mode, which removes the
provider-suppression path added for the in-sidebar editor.

Co-Authored-By: Claude Code <[email protected]>
The popover was anchored to the More button, which moves up or down as
items are shown or hidden, so the editor slid under the pointer on every
toggle. It now anchors to the position More had when the popover opened and
stays there until it closes.

Co-Authored-By: Claude Code <[email protected]>
@SawyerHood
SawyerHood force-pushed the bb/nav-rail-customize-popover-thr_8ga9782vvn branch from 8894179 to 060654a Compare October 5, 2026 23:39
@SawyerHood
SawyerHood merged commit 07a06f5 into main Oct 5, 2026
33 of 34 checks passed
@SawyerHood
SawyerHood deleted the bb/nav-rail-customize-popover-thr_8ga9782vvn branch October 5, 2026 23:45
SawyerHood added a commit that referenced this pull request Oct 5, 2026
## Human comments

## What was wrong

Stacked on #4968, which builds on the merged #4964. In rail mode the
Settings, Plugins, and Skills sidebars showed their name in the sidebar
header, directly beside the page header showing the same name. The rail
already highlights the active tab, so the sidebar title was a third
signal for the same thing.

## What changed

- **Section sidebars** (`SectionSidebar.tsx`): in rail mode the header
row keeps only the back and forward buttons. The `navRailTitle` prop
becomes a `navRailHosted` flag.
- **Unchanged**: New thread stays in the thread sidebar's header, and
the layout with the experiment off is untouched.

## How you verified

- `ResourceSidebars.test.tsx`: the rail-hosted sidebar renders neither
the back row nor its own title.
- `pnpm exec turbo run typecheck lint --filter=@bb/app` passes.
- `pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar
src/components/layout src/components/settings src/components/tools`
passes (53 files).
- Source dev app in headless Chrome: the Plugins and Settings sidebars
show no title in rail mode.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

> AGENT GENERATED

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