Premium Analytics: update widget packages and promote in-body controls to widget attributes - #50293
Conversation
…s to widget attributes
|
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! |
Code Coverage SummaryThis 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. 🤷 |
Closes WOOA7S-1667
Re-land of #50271, which was reverted in #50292.
Proposed changes
Why the original was reverted: the
pnpm-lock.yamlin #50271 didn't just add the new premium-analytics pins — the install also re-resolved existing shared snapshots in place (@ariakit/react0.4.29 → 0.4.32 and@base-ui/react1.5.0 → 1.6.0 inside the@wordpress/dataviews@17.1.0and@wordpress/ui@0.17.0snapshot bodies). Those snapshots are shared by many other projects (forms, jetpack-mu-wpcom, my-jetpack, the Jetpack plugin, videopress, …), so their installs and built mirrors changed too, and the merge unexpectedly required a wpcom deploy.How this re-land differs: the code diff is identical to #50271 (it reverts the revert). Only
pnpm-lock.yamlwas regenerated, starting from trunk's lockfile, so that it stays scoped to this package:projects/packages/premium-analytics.@wordpress/widget-dashboard@0.2.0,@wordpress/widget-primitives@0.2.0,@wordpress/grid@0.2.0,@wordpress/build@0.18.0).-next.v.202607070741.0snapshot tree (including its own@wordpress/dataviews@17.1.2-next/@wordpress/ui@0.18.1-next, which is where the newer@base-ui/react@1.6.0now lives).@wordpress/dataviews@17.1.0and@wordpress/ui@0.17.0and their@ariakit/react@0.4.29/@base-ui/react@1.5.0resolutions — are byte-identical to trunk, so no other project's install or built output changes.What the change itself does (unchanged from #50271, see its description for full detail):
@wordpress/widget-primitives/@wordpress/widget-dashboard0.3.1-nextand@wordpress/build0.19.1-nextdevelopment snapshots.geoGranularity), top platforms mode (platformDimension), UTM Insights param (utmDimension), Emails metric (metric), and the Group by selectors in the Subscribers and Traffic charts (granularity).presentation: framed; widget attribute shapes are typed and exported once fromwidget.ts; render components compose host fields instead of re-declaring them.admin-ui2.5.0,dataviews17.1.0,icons^15,theme/ui0.17.0) plus the design-token migration to the renamed@wordpress/theme0.17 groups.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
projects/packages/premium-analytics, and no existing shared snapshot lines are modified:All removed lines belong to the old premium-analytics-only packages listed above; shared entries like
@ariakit/react@0.4.29and@base-ui/react@1.5.0are untouched.Open the Premium Analytics dashboard in wp-admin and confirm it loads without console or PHP errors.
Locations, Top platforms, UTM Insights, Emails, Subscribers chart, and Traffic chart: the old in-body selectors are gone; the equivalent controls appear as widget attributes on the widget host, and switching them updates the widget data (see the demo video on Premium Analytics: update widget packages and promote in-body controls to widget attributes #50271).
Date range and comparison state still reach the widgets (Subscribers list reflects the picker).