Add snackbar notices for page creation in Navigation block#72627
Conversation
|
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. |
getdave
left a comment
There was a problem hiding this comment.
Thank you for the PR.
Checking out your branch it looks like you may need to bring in some upstream changes to your fork because I'm missing the Create page option in the Nav block.
If you could update and then rebase your PR that would be great.
packages/block-library/src/navigation-link/link-ui/page-creator.js
Outdated
Show resolved
Hide resolved
f090719 to
7259f3d
Compare
|
Thanks — I’ve rebased on upstream/trunk and updated the branch. @getdave |
scruffian
left a comment
There was a problem hiding this comment.
Thanks for working on this, looks good!
What?
Closes #72620
Adds snackbar notices to provide immediate feedback when users create a new page from the Navigation block.
Why?
User testing with 20 participants revealed that users are uncertain whether page creation was successful when using the Navigation block's page creator. Without visual confirmation, users don't know if:
This lack of feedback creates confusion and a poor user experience, especially for less technical users who may not realize the page was created.
How?
This PR adds snackbar notices to the
LinkUIPageCreatorcomponent inpage-creator.js:@wordpress/noticesstore for consistency with other Gutenberg notificationsThe implementation adds:
noticesStorefrom@wordpress/noticesuseDispatchhook to accesscreateSuccessNoticeandcreateErrorNoticeTesting Instructions
Test error scenario:
Testing Instructions for Keyboard
Screenshots or screencast
Note: This change addresses UX feedback from unmoderated user testing where participants expressed confusion about whether the page creation action had completed successfully.