Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: +1 kB (+0.01%) Total Size: 8.69 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. should select synced pattern in
|
Every expanded list in a List View with appenders now ends with an appender, so an item can be added to a submenu, a Buttons block or a Social Icons block from the List View. An empty container gets one too, unless it hides its appender on the canvas, which `useNestedSettingsUpdate` now records as `hidesAppender` in the block list settings. A nested appender is a plain + in the color of the rows that turns blue while hovered or focused. The top-level appender keeps its filled style, and `PrivateListView` can name it with `appenderLabel`; the site editor's navigation sidebar names it "Add menu item". The sidebar's Options menu, in both the site editor and the extensible site editor, gains the "Add submenu link" item from the Navigation block, now a private `AddSubmenuItem` export of the block library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jeryj
force-pushed
the
try/list-view-nested-appender-expanded
branch
from
November 20, 2026 19:23
649c6f5 to
7cdba5b
Compare
This branch has not been deployed
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.
Part of #85154.
What?
Every expanded list in a List View with appenders ends with an appender, so an item can be added to a submenu, a Buttons block, or a Social Icons block right where it will go. An empty container, such as an empty Social Icons block, gets an appender too.
All of this applies to both the site editor and the extensible site editor.
Why?
The List View only offered a top-level appender, so adding an item inside a submenu or a Buttons block meant going to the canvas. Expansion is an explicit, sticky act, so the appender for a list appears when the user opens that list and stays until they close it. Nothing appears or disappears on hover or selection while scanning the list.
How?
ListViewBranchends every rendered branch with its appender. A collapsed branch is not rendered, so a collapsed list has no appender.useNestedSettingsUpdaterecordshidesAppenderin the block list settings whenrenderAppenderisfalse, so a link that could hold a submenu gets no row.PrivateListViewtakes anappenderLabelfor the top-level appender.AddSubmenuItemis exported from the Navigation block'sleaf-more-menuas a private API, and computes its own disabled state. Both sidebar Options menus render it.Accessibility notes
Trade-off: one extra row per expanded list. In the site editor sidebar every submenu is expanded by default, so a deep menu shows an appender for each submenu.
Testing Instructions
admin.php?page=site-editor-v2&p=/navigation.Use of AI Tools
Written with Claude Code, including the implementation and the e2e tests. I reviewed and tested the changes.
🤖 Generated with Claude Code