Navigation: Allow creating new links in site editor sidebar List View#75918
Navigation: Allow creating new links in site editor sidebar List View#75918
Conversation
|
Size Change: +84 B (0%) Total Size: 6.87 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 739ec05. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/22406909080
|
739ec05 to
fbc0fb7
Compare
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
scruffian
left a comment
There was a problem hiding this comment.
This works as expected and is a good improvement to the site editor. My only concern is that we also need to keep the site editor v2 in sync with these changes.
What?
Closes #66367
Part of #75920
Allows adding links from the Site Editor Navigation List View. This functionality already exists in the Sidebar Inspector for the Navigation Block in canvas.
Why?
The site editor navigation experience is quite lacking. Only allowing reordering and deleting items. We should allow adding links here as well.
How?
Export NavigationLinkUI as a private API and utilize it within the site editor sidebar. I also added e2e tests for the flow.
Testing Instructions
npm run test:e2e test/e2e/specs/site-editor/navigation-sidebar-list-view.spec.jsFirst, Navigate to the Site Editor for a navigation menu
Add an existing page/URL:
2. Click the "Add page" appender button at the bottom of the list.
3. Confirm the link search input opens and is immediately focused.
4. Type a partial page title — confirm search results appear.
5. Select a result — confirm the new item appears in the list view.
Dismiss without saving:
returns correctly to the appender
Create a new page:
Regression — existing behavior unchanged:
Testing Instructions for Keyboard
Screenshots or screencast
Screen.Recording.2026-03-03.at.11.23.49.AM.mov