-
Notifications
You must be signed in to change notification settings - Fork 843
Admin Page: add toggle to activate new Google Fonts feature #23295
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
Follow-up to #23045 This adds: - a new check to the initial state passed by PHP, to indicate whether a site can use the webfonts feature. - a new interface under Jetpack > Settings > Writing.
| 'json-api', | ||
| 'photon' | ||
| 'photon', | ||
| 'google-fonts', |
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 the only relevant change, the rest is done by Prettier.
| 'json-api', | ||
| 'photon' | ||
| 'photon', | ||
| 'google-fonts', |
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 the only relevant change, the rest is done by Prettier.
|
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:
|
creativecoder
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.
Works well!
✅ Toggle in Settings > Theme enhancements turns module off/on
✅ Toggle is not shown when theme doesn't support the module
✅ Module setting persists after switching themes that do/do not support the module
I left one suggestion, other wise this looks good.
projects/plugins/jetpack/_inc/lib/admin-pages/class-jetpack-redux-state-helper.php
Outdated
Show resolved
Hide resolved
…dux-state-helper.php Co-authored-by: Grant Kinney <[email protected]>
This is used in the old module page.
samiff
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.
The toggle worked well for me 👍
Follow-up from #23295 The feature is still under development, and we'll need to make some more changes before it's ready for prime-time. Let's make that clear in the plugin by marking the module as beta and removing the toggle from the dashboard to avoid setting wrong expectations. Internal reference: p1HpG7-flD-p2#comment-53417
Follow-up from #23295 The feature is still under development, and we'll need to make some more changes before it's ready for prime-time. Let's make that clear in the plugin by marking the module as beta and removing the toggle from the dashboard to avoid setting wrong expectations. Internal reference: p1HpG7-flD-p2#comment-53417
…hboard. (#23713) Follow-up from #23295 The feature is still under development, and we'll need to make some more changes before it's ready for prime-time. Let's make that clear in the plugin by marking the module as beta and removing the toggle from the dashboard to avoid setting wrong expectations. Internal reference: p1HpG7-flD-p2#comment-53417
Follow-up to #23045
Changes proposed in this Pull Request:
This adds:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
trunk)