-
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
Global Styles: Add Help Link to Plan Limitation Message #39226
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! |
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.
LGTM 👍
I'm not sure about using the question mark icon (?) in the "Learn more" link because we don't seem to use it.
See for reference:
Follow-up improvement
Opening the help center within the editor would be a nice improvement. See an example here that is using the component DescriptionSupportLink.
For another reference, see the component InlineSupportLink but that lives in Calypso.
Thanks, @miksansegundo, for the recommendations. I have followed your suggestions, and I have been able to display the URL of the link on the Help Center as part of these changes: 9c412ad. The PR is ready for another review 🙌 @mmtr, @taipeicoder, it would be great if you could review the changes as you have been involved in some previous changes related to this functionality 🙏 |
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.
Works great! But I think we need to revisit how the warning looks in the post editor. We display different actions there, and the addition of the new "Learn more" action looks a bit off:
I think we can probably remove the "Remove premium styles" action, since it links to a section that users can already find via the new "Learn more" action.
Thanks for your suggestion, @mmtr! I agree with that. It looks off, and both actions, |
This is because the new Learn More link covers that functionality
Hi @mmtr, I have applied your suggestions that apply to the Post editor as part of 0a4afe3 and the changes are ready for another review. As you can see, I have also removed the leftovers after the changes. I have checked that they are not used, but please let me know if you find any regressions or other potential changes that could be done. Thanks! |
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.
Works great! Just left a minor note about removing some unused code.
projects/packages/jetpack-mu-wpcom/src/features/wpcom-global-styles/notices.js
Show resolved
Hide resolved
I have done a quick testing in atomic sites after the release p1727207048460609-slack-C05GLGHLM8U, and I have not found any issues 🙌 |
* Add Help Link to Premium Styles Plan Limitation Message * changelog * Global Styles: Add Learn More to premium styles notice * Use Help Center to display the Learn More support link * Remove reset styles support link in Post editor This is because the new Learn More link covers that functionality * Remove unused CSS styles
Resolves Automattic/wp-calypso#93401
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
https://<your-site>/wp-admin/site-editor.php?path=%2Fwp_global_styles
Learn more
. Click on the link and check the Help Center opens with the URL https://wordpress.com/support/using-styles/#access-to-stylesLearn more
. Click on the link and check the Help Center opens with the URL https://wordpress.com/support/using-styles/#access-to-styles