Repository navigation
Premium Analytics: expose the Locations widget kind through the SDK - #53534
Merged
Merged
Conversation
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
retrofox
marked this pull request as ready for review
October 13, 2026 10:44
Contributor
|
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 SummaryCoverage changed in 1 file.
|
retrofox
force-pushed
the
update/pa-sdk-locations-kind
branch
from
October 13, 2026 11:21
d98119c to
3ce22c0
Compare
retrofox
force-pushed
the
update/pa-sdk-locations-kind
branch
from
October 13, 2026 15:24
85cb975 to
84eb53b
Compare
contract 1.11.0
the toolkit root imports it there since the kind joined the SDK
retrofox
force-pushed
the
update/pa-sdk-locations-kind
branch
from
October 13, 2026 15:51
84eb53b to
0cff370
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of WOOA7S-2282 and WOOA7S-2263. Stacked on #53533.
Proposed changes
The SDK contract declares
Locationswith precise props, and the facade exports it from the widgets toolkit:LocationRowInput:id(the ISO country code on the world map, the region's name inside a country),label,valueandpreviousValue.LocationsProps:rows,status,error,empty,format,country(omit for the world map) andmaxRows. The kind derives the map, the list with flags, the shares, the deltas and the states.conformance.tsprobes it: a facade that stops accepting the declared props fails the typecheck (checked with avalue: stringmutant).WIDGET_API_VERSIONmoves to 1.11.0, after the 1.10.0Columnstook, and the contract notes say what it adds.The move of Visitors by location into
jetpack-woocommerce-statsfollows.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
The contract typecheck covers the facade and the probe. On a built site nothing changes: the WooCommerce Stats package keeps registering its widgets, its contract floor being below 1.11.0, and
GET /wp-json/wpcom/v2/widget-modulesserves the same records.