Jetpack AI: add the SEO feature option and point its surfaces at it - #51380
Jetpack AI: add the SEO feature option and point its surfaces at it#51380ariskataoka wants to merge 1 commit into
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
82f2079 to
40a6775
Compare
Code Coverage SummaryCoverage changed in 1 file.
|
Proposed changes
jetpack_ai_seo_enabled(feature key ai_seo, default on) as the listed AI SEO feature control — registered, synced, and under the site-wide AI switch (module), withJetpack_AI_Settings::is_ai_seo_enabled()applying the host and master gates as well after the filter chain.ai_seo_enhancer_enabledwithjetpack_ai_seo_enabled.jetpack_ai_seo_enabled, leavingai_seo_enhancer_enabledunchanged (governs only automatic generation).Screenshots
The "AI SEO" row bound to the new option, captured live on a Jurassic Ninja site (1440×900):
Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
aimodule active:wp option get jetpack_ai_seo_enabledreports1with no stored row (registered default).wp-admin/admin.php?page=jetpack-ai, WordPress Agent view): the SEO row shows one "AI SEO" row bound to the new option. Toggle it off and back on; the saved value round-trips.Jetpack_AI_Sidebar::add_agents_manager_data()reportsseoSuggestions: falsewhileproofreadContentstays true; with the option at its default, suggestions survivewp option update ai_seo_enhancer_enabled 0.wp jetpack module deactivate ai: the hub rows grey out at their saved values, andJetpack_AI_Settings::is_ai_seo_enabled()reads false while the stored option is preserved.jp docker phpunit jetpack -- --filter='Jetpack_AI_Settings_Test|WPCOM_REST_API_V2_Endpoint_AI_Feature_Settings_Test|Jetpack_AI_Sidebar_Test'. JS:pnpm run test-gui --testPathPatterns='ai'inprojects/plugins/jetpack.🤖 AI Assisted