Skip to content

Add feature gating for new advanced features in Stats#25186

Merged
kean merged 1 commit intotrunkfrom
task/feature-gate-banner
Feb 2, 2026
Merged

Add feature gating for new advanced features in Stats#25186
kean merged 1 commit intotrunkfrom
task/feature-gate-banner

Conversation

@kean
Copy link
Contributor

@kean kean commented Jan 30, 2026

Description

Closes CMM-1152 by adding a simple banner for new advanced features in Stats.

The implementation relies on the feature gate implemented on the individual API layer. It returns the following:

"body": {
	"error": "unauthorized",
	"message": "The plan for <your-site-id> does not allow fetching Device stats"
}

Testing instructions

New advanced features: UTM, Devices, and Location by Region and City.

  • Verify that new features are available for "Premium" and higher plans
  • Verify that the banner is shown for free plans
  • Verify that "Explore Plans" opens Dotcom pricing for Dotcom sites and Jetpack pricing for Jetpack sites

Screenshots

Screenshot 2026-01-30 at 5 13 16 PM

@kean kean added this to the 26.7 milestone Jan 30, 2026
@kean kean added the Stats label Jan 30, 2026
@kean kean requested a review from crazytonyli January 30, 2026 22:25
@sonarqubecloud
Copy link

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30684
VersionPR #25186
Bundle IDcom.jetpack.alpha
Commitbd176b0
Installation URL59qp3khour868
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30684
VersionPR #25186
Bundle IDorg.wordpress.alpha
Commitbd176b0
Installation URL5jt0bmjij2mk8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@kean kean added this pull request to the merge queue Feb 2, 2026
Merged via the queue into trunk with commit 1b02b96 Feb 2, 2026
34 of 36 checks passed
@kean kean deleted the task/feature-gate-banner branch February 2, 2026 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments