Skip to content

AI settings: report SEO enhancer availability - #50516

Merged
ariskataoka merged 1 commit into
add/jetpack-ai-feature-settingsfrom
add/jetpack-ai-seo-enhancer-availability
Jul 16, 2026
Merged

AI settings: report SEO enhancer availability#50516
ariskataoka merged 1 commit into
add/jetpack-ai-feature-settingsfrom
add/jetpack-ai-seo-enhancer-availability

Conversation

@ariskataoka

Copy link
Copy Markdown
Member

Addresses backend for #50386 (comment)

Proposed changes

  • The feature-settings endpoint reports seo_enhancer.available, so the settings page can hide the AI SEO row where the enhancer can't run.
  • The gate mirrors the legacy Traffic page: the ai_seo_enhancer_enabled filter, the seo-tools module (Modules::is_active() — always true on Simple), and the ai-seo-enhancer plan feature. Happy to drop the module term if you'd rather match the newer packages/seo formula (filter + plan only).

Does this pull request change what data or activity we track or use?

No

Testing instructions

  • GET wpcom/v2/jetpack-ai/feature-settings as admin → features.seo_enhancer.available is true on a plan with the feature and the seo-tools module active.
  • Deactivate the SEO Tools module (or test on a plan without ai-seo-enhancer) → available flips to false

The feature-settings endpoint gains seo_enhancer.available so the
settings page can hide the row where the enhancer can't run. Mirrors
the legacy Traffic gate: the ai_seo_enhancer_enabled filter, the
seo-tools module (always active on Simple), and the ai-seo-enhancer
plan feature.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the add/jetpack-ai-seo-enhancer-availability branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack add/jetpack-ai-seo-enhancer-availability

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] In Progress labels Jul 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • 🔴 Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@github-actions github-actions Bot added the [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. label Jul 14, 2026
@jp-launch-control

Copy link
Copy Markdown

Code Coverage Summary

No summary data is available for parent commit 40b87e8, so cannot calculate coverage changes. 😴

If that commit is a feature branch rather than a trunk commit, this is expected. Otherwise, this should be updated once coverage for 40b87e8 is available.

Full summary · PHP report · JS report

@ariskataoka
ariskataoka requested a review from kat3samsin July 15, 2026 01:57
@ariskataoka
ariskataoka marked this pull request as ready for review July 15, 2026 01:58
@ariskataoka
ariskataoka requested a review from simison July 15, 2026 02:57
@ariskataoka
ariskataoka merged this pull request into add/jetpack-ai-feature-settings Jul 16, 2026
68 of 69 checks passed
@ariskataoka
ariskataoka deleted the add/jetpack-ai-seo-enhancer-availability branch July 16, 2026 04:25
@github-actions github-actions Bot added [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. and removed [Status] Needs Author Reply We need more details from you. This label will be auto-added until the PR meets all requirements. [Status] In Progress labels Jul 16, 2026
ariskataoka added a commit that referenced this pull request Jul 20, 2026
The feature-settings endpoint gains seo_enhancer.available so the
settings page can hide the row where the enhancer can't run. Mirrors
the legacy Traffic gate: the ai_seo_enhancer_enabled filter, the
seo-tools module (always active on Simple), and the ai-seo-enhancer
plan feature.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
ariskataoka added a commit that referenced this pull request Jul 23, 2026
The feature-settings endpoint gains seo_enhancer.available so the
settings page can hide the row where the enhancer can't run. Mirrors
the legacy Traffic gate: the ai_seo_enhancer_enabled filter, the
seo-tools module (always active on Simple), and the ai-seo-enhancer
plan feature.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Status] UI Changes Add this to PRs that change the UI so documentation can be updated.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant