-
Notifications
You must be signed in to change notification settings - Fork 799
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
Display location-aware snackbar upon loading the site editor #28810
Conversation
Are you an Automattician? You can now test your Pull Request on WordPress.com. On your sandbox, run
to get started. More details: p9dueE-5Nn-p2 |
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
cc @davewhitley for a design review. For additional context, this was originally requested here: pc4f5j-2wc-p2#comment-2997 ("Way finding" section). |
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 only works on the initial load of the page. It doesn't work if you change templates. I think this is fine because if you've just explicitly chosen to edit something, it seems a bit repetitive to confirm that yes you are editing the thing you just chose to edit.
Edit: Oh actually it's not a load thing. If I get to template (part) list via the central drop down I don't get a snackbar, but if I get to it via the W menu I do get a snackbar.
wsNJa7.mov
projects/plugins/jetpack/extensions/plugins/site-editor-snackbar-on-load/index.js
Outdated
Show resolved
Hide resolved
Good catch! Should be solved as of 8c73f07. |
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 tests well for me. 🚢
Yes! |
This isn't appearing when I go via the link-in-bio flow and newsletter flow, the snackbar isn't appearing. Should it? 🤔 |
@dsas It should and it does for me: Screen.Recording.2023-02-09.at.12.07.17.movDid you sandbox the new site before entering the site editor? |
Maybe not. I can't get the link-in-bio flow to give me a tld that isn't a .link (which is intentional) and I don't seem to be able to sandbox .link sites 😕 . Given your video above, I'm sure it's must be working....Saying "Editing the Blank template" is technically correct, but also sort of odd from a user point-of-view. |
looks good 👍 |
@mmtr Does this still work for you? I may be missing something, but I do not see the snackbar when editing templates (with the latest version of the Gutenberg plugin on a WoA site for example). |
@jeherve It doesn't work for me either, thanks for spotting it! I think something changed in Gutenberg and navigating from the view mode to the edit mode no longer triggers a change in the jetpack/projects/plugins/jetpack/extensions/plugins/site-editor-snackbars/index.js Lines 35 to 48 in fbb712b
I fixed a similar issue in Automattic/wp-calypso#80818, so I'll look into a it once I have some capacity (which is quite limited at the moment because of my support rotation this week and our team meetup next week 😅 ). |
Fixes Automattic/wp-calypso#71274
Proposed changes:
Adds a new Gutenberg extension that only runs in the site editor. The new extension shows a snackbar after entering the edit mode to better inform users what's being edited.
Other information:
Jetpack product discussion
N/A
Does this pull request change what data or activity we track or use?
No
Testing instructions:
bin/jetpack-downloader test jetpack add/site-editor-snackbar-load
on your sandbox.