-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add snackbar notices for page creation in Navigation block #72627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.