-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site Editor: Clarify the "Entity" message of the snackbar #54333
Conversation
Warning: Type of PR label error To merge this PR, it requires exactly 1 label indicating the type of PR. Other labels are optional and not being checked here.
Read more about Type labels in Gutenberg. |
Size Change: +133 B (0%) Total Size: 1.52 MB
ℹ️ View Unchanged
|
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 improving these snackbar notices @t-hamano 👍
This tests well for me when renaming or clearing customizations for patterns, template parts, or templates. After forcing errors, the appropriate error message was also displayed.
Nice work 🚢
Thanks for the review, @aaronrobertshaw! |
Fixes: #47886
What?
This PR clarifies the message when Pattern/Template/Template Part are renamed/customization is cleared in the Site Editor.
Why?
"Entity" is a technical term and it is unclear what it refers to.
How?
I have made the process return context-sensitive messages for successful and error-prone processing, instead of using the word Entity.
Testing Instructions
The error message can be confirmed by forcing an error at the beginning of the try statement, as shown below.
Note: The modal does not close when an error occurs and the snack bar is covered by a translucent overlay that I find difficult to see. This issue could be addressed in a follow-up.