-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Template activation: clear notice on post change #72403
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
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. |
|
Size Change: -9 B (0%) Total Size: 2.19 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 83ec2e9. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18599678609
|
Mamaduka
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, @ellatrix!
mcsf
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.
This is hacky, but maybe that's worth the user benefit?
How will we keep track of this in the long term? Are there other notices across the system that should also be cleared? Etc.
Feel free to merge despite my questions.
Yes, that's why I suggested the other solution with EditorNotices, but that also has downsides. Like what if it doesn't remount and the ID just switches. Also yes I think there must be problems with other "sticky" notices. |
Co-authored-by: Miguel Fonseca <[email protected]>
What?
See #72285 (comment)
Remove the template activation notice when the post in the editor changes.
Why?
The notice currently lingers: when you open another template the notice is still there.
How?
I'm not sure if it's the best solution tbh. Alternatively we could remove the notice when
EditorNoticesunmounts. 🤔Testing Instructions
Edit an inactive template. Save. Observe the notice, optionally activate. Now go back to the list and activate editor another template. The notice shouldn't be there.
Testing Instructions for Keyboard
Screenshots or screencast