Repository navigation
Open the navigation rail's customize editor in a popover - #4968
Merged
Merged
Conversation
Base automatically changed from
bb/mock-left-nav-experiment-with-home-tab-and-thr_8ga9782vvn
to
main
October 5, 2026 23:33
SawyerHood
force-pushed
the
bb/nav-rail-customize-popover-thr_8ga9782vvn
branch
from
October 5, 2026 23:34
95dba12 to
8894179
Compare
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
force-pushed
the
bb/nav-rail-customize-popover-thr_8ga9782vvn
branch
from
October 5, 2026 23:39
8894179 to
060654a
Compare
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]>
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
Builds on #4964 (merged), which added the
navigationRailexperiment. 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
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.openCustomize()calls open the same popover.AppSidebar.tsx): the navigation region is not mounted in rail mode, so theproviderSuppressedpath that Add a navigation rail experiment with Home and Settings tabs #4964 added toSidebarNavigationRegionis removed.SidebarNavigationCustomize.tsx): takes asurfaceprop so the popover uses the compact frame and the "Customize rail" title.No plugin API change.
docs/api_to_audit.mdis 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 hostopenCustomize()call opens the same popover.pnpm exec turbo run typecheck lint --filter=@bb/apppasses.pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar src/components/layout src/components/settings src/components/toolspasses (53 files).🤖 Generated with Claude Code