-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Patterns: Open detail view when duplicating pattern #53214
Conversation
Size Change: -65 B (0%) Total Size: 1.5 MB
ℹ️ View Unchanged
|
Flaky tests detected in f100f78. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5733110563
|
One addition. Let's try it with a "Duplicated $patternName" snackbar notice as well. Just a bit of confirmation that's what's happened. |
I restored the original snackbar notices, e.g. |
I think clarifying the duplication is helpful context. |
✅ Done (2be476d) The snackbar notices will now display |
Let's add terminals, |
Traditionally, periods would go outside the quotes but as American and British English diverged, I believe we have a difference in grammar now. American English will end the sentence with the period inside the quotation marks (reference). I searched the code base to see if we were following this however all the quoted names I found avoided being used at the end of the sentence. Maybe for this very reason 😁 I also have no idea about the grammar for non-English languages. Would it be better to flip this notice around to |
2be476d
to
2ad0051
Compare
Done. This also matches the deleted snackbar notice now. I'll get this merged once the tests pass.
Agreed. |
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.
Very nice. 😊
Fixes: #52649
What?
Opens the pattern detail view after duplicating a pattern instead of displaying a success snackbar notice.
Why?
This might be the more expected flow, see #52649.
How?
Replace the success snackbar notices with history push for the pattern's detail view.
Testing Instructions
Screenshots or screencast
Screen.Recording.2023-08-01.at.5.49.09.pm.mp4