wp-calypso
wp-calypso copied to clipboard
Stats: Paywall Stats Traffic modules with upsell in StatsModule
Related to https://github.com/Automattic/red-team/issues/74
Proposed Changes
- Utilize the
StatsCardUpsell
insideStatsModule
to paywall Stats Traffic page modules. - Paywall Jetpack sites created after
2024-01-31
without any Stats purchase.
Why are these changes being made?
- Lock Stats Traffic page modules to users with no valid Stats purchases.
Testing Instructions
- Create a new JN site without purchasing any Stats products.
- Spin this change up with the Calypso Live branch.
- Navigate to Stats >
Traffic
page for the new JN site with the feature flag:/stats/day/{site-slug}?flags=stats/restricted-dashboard
. - Ensure the modules on the page are all locked.
Pre-merge Checklist
- [ ] Has the general commit checklist been followed? (PCYsg-hS-p2)
- [ ] Have you written new tests for your changes?
- [ ] Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
- [ ] Have you checked for TypeScript, React or other console errors?
- [ ] Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
- [ ] Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
- [ ] For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?