Skip to content

Settings redirect map: Cover Atomic Personal and Premium - #55519

Open
CGastrell wants to merge 5 commits into
trunkfrom
update/settings-redirect-map-atomic-personal-premium
Open

CGastrell wants to merge 5 commits into
trunkfrom
update/settings-redirect-map-atomic-personal-premium

Conversation

@CGastrell

@CGastrell CGastrell commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Part of JETPACK-3916

Proposed changes

Updates the Settings redirect map (settings-redirect-map.json) for Atomic Personal and Premium, which get settings consolidation once My Jetpack shows there (JETPACK-3784). The map is a plan for retiring the Settings screen; no code reads it yet.

  • Security on Atomic without Jetpack's Protect page. On Personal and Premium, Jetpack's Protect page does not load (hasProtectPage is false); WordPress.com shows a Protect upsell instead, so Settings keeps its Security tab. The map sent /security and the waf, protect, account-protection, sso and monitor terms to the Protect card in Features, which cannot turn that page on there, and the allowed IP addresses live only on Settings. They now stay on Settings (pending: protect-page, a new marker) where the protect-dashboard module is unavailable, a new condition (protectDashboardAvailable). WPCOM_Scan in jetpack-mu-wpcom removes that module on Atomic plans without Scan. A Business site with the module turned off still goes to the Protect card, which can turn it back on.
  • Reader on Atomic. wpcomsh keeps the Reader module on, so its Features row has no control, and JETPACK-3940 hides that row. /reader on Atomic now goes to Features instead of a search for "reader" that would find nothing.

Every other rule already resolves the same way on Personal and Premium as on Business, through its conditions. The table compares them, using the JETPACK-3914 live pass for where each setting lives:

Source Business Personal Premium Changed here
/security and the five Protect terms Protect › Settings (the Protect card if the module is off) stays on Settings (protect-page) stays on Settings (protect-page) yes
/reader Features (was a search for "reader") Features Features yes
/traffic Features stays on Settings (D7, Google Analytics upsell) Features no: the existing googleAnalyticsPanel: false rule already covers Personal
google analytics term Google Analytics panel stays on Settings (D7) Google Analytics panel no
/earn, wordads term stays on Settings (monetize-page) same same no
search term Search settings Search page (pricing, the plan lacks Search) same as Personal no: differs by design
All other routes and terms Features, a panel or the product's page same same no

Related product discussion/links

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

No.

Testing instructions

  • python3 -c "import json; json.load(open('projects/plugins/jetpack/_inc/lib/admin-pages/settings-redirect-map.json'))" parses. No code reads the map, so there is nothing else to run.
  • Checked live: with the gate flag on, Jetpack › Settings on Atomic Premium and Atomic Personal reports hasProtectPage: false, and its remaining tabs are security, earn (Premium) and security, traffic, earn (Personal), matching the rules above.

On these plans Jetpack's Protect page does not load (WordPress.com shows a Protect upsell), so the security routes and terms keep the settings on Settings until a Protect page shows them. On every Atomic site the Reader route goes to Features, since the Reader row has no control there.

Part of JETPACK-3916.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@CGastrell CGastrell added [Status] Needs Review This PR is ready for review. [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ labels Nov 26, 2026
@CGastrell CGastrell self-assigned this Nov 26, 2026
@github-actions

github-actions Bot commented Nov 26, 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 update/settings-redirect-map-atomic-personal-premium branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/settings-redirect-map-atomic-personal-premium

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

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!


Jetpack plugin:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: December 8, 2026
    • Code freeze: December 7, 2026

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control

jp-launch-control Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

This PR did not change code coverage!

That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷

Full summary · PHP report · JS report

CGastrell and others added 2 commits November 26, 2026 19:20
Atomic Business with the Protect dashboard module off can still turn it on from Features, so only sites where WordPress.com removes the module keep Security on Settings. Suggested in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The previous commit carried only the changelog; this adds the map edits it describes, plus the stale protectTerms text and the Reader note fixes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@dhasilva dhasilva left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked both rule changes against the code they describe. Two suggestions inline, neither blocking.

  • The new protectDashboardAvailable: false rules come after protectPage: true in all six lists. A site whose Protect page is registered still goes there first, and an Atomic Business site with the module turned off still reaches the Protect card. WPCOM_Scan::filter_available_modules() is hooked only on Atomic and drops the module without SCAN_SELF_SERVE, as the condition says.
  • The /reader rule matches #55507, which hides the Reader row on Atomic.
  • The JSON parses, and the Comment:-only changelog entry suits a file nothing reads yet.

Generated by Claude.

"host": "\"atomic\" for a WoA site.",
"moduleActive": "This Jetpack module is active.",
"protectPage": "did_action( 'jetpack_protect_dashboard_initialized' ) (siteData.hasProtectPage): the protect-dashboard module or the connected Jetpack Protect plugin registered the Protect page. Not Automattic\\Jetpack\\My_Jetpack\\Products\\Protect::has_protect_page(), which is also true while the plugin shows its own page.",
"protectDashboardAvailable": "The protect-dashboard module is in Jetpack::get_available_modules(). WPCOM_Scan (jetpack-mu-wpcom) removes it on Atomic plans without the Scan feature, such as Personal and Premium.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] This condition covers more than Atomic Personal and Premium. Jetpack_Protect_Dashboard_Feature_Flags::filter_available_modules() also drops protect-dashboard from the available list whenever the Jetpack Protect plugin is active, on any host, and while the jetpack-protect-dashboard flag is off. So on a site with the Protect plugin active but not connected (protectPage false), /security and the five Protect terms now stay on Settings too, where they used to go to the Protect card.

Staying on Settings is the better result there, since the card can't turn on a module that isn't available. The problem comes when protect-page is cleared: whoever builds the Personal/Premium page will probably give this rule that page as its destination, and that would also send a self-hosted site with an unconnected Protect plugin to a WordPress.com upsell. I'd list all three causes here, and say in the protect-page description that the marker covers only the WPCOM_Scan cause. The plugin case clears once the plugin connects (protectPage), or it can get a rule of its own.

Generated by Claude.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 7aafe31. The condition now names all three causes (WPCOM_Scan, an active Protect plugin, the dashboard flag), and the protect-page marker says it covers only the WPCOM_Scan one, so a future destination for it must not reach the other two.

Comment on lines +180 to +184
{
"when": { "host": "atomic" },
"destination": "admin.php?page=my-jetpack#/features",
"note": "wpcomsh keeps the Reader module on for WoA sites, so its Features row has no control, and JETPACK-3940 hides that row, after which a search for reader finds nothing."
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[suggestion] Leaving alreadyRedirects off this rule is correct, but /reader already redirects today. main.jsx sends it to features?search=reader on every host while consolidation is on, and that flag defaults on. So since #55507, the live redirect on Atomic Business opens a search that no longer shows the Reader row.

Few people hit it: Settings hides the Reader tab on WoA (settings-nav-tabs) and nothing in the repo links to #/reader, so only a typed or bookmarked URL gets there. Still, an isWoASite() check (from @automattic/jetpack-script-data, as settings-nav-tabs uses) in that case would make the live redirect match this rule, and the rule could then carry alreadyRedirects. A follow-up is fine if you'd rather keep this PR to the map.

Generated by Claude.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done separately in #55560 (JETPACK-3957): on WoA, #/reader now opens Features without the search. I kept this PR to the map; once #55560 merges, this rule can take alreadyRedirects.

CGastrell and others added 2 commits November 27, 2026 12:24
The protect-page marker covers only WPCOM_Scan's, so a future destination for it must not reach self-hosted sites with an unconnected Protect plugin. Suggested in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Settings app sends `#/reader` there on WoA since #55560.

This branch has not been deployed

No deployments
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] Needs Review This PR is ready for review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants