Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.39k stars 1.98k forks source link

Make it easier to switch currencies on `/plans/:site` #87402

Closed oswian closed 2 weeks ago

oswian commented 6 months ago

What

Allow different currencies to be quickly previewed when viewing the plans pages.

Related discussion: p1706746873917899-slack-CV2TX2PAN.

Why

We often need to check different currencies on /plans/:site. For example, testing the changes in https://github.com/Automattic/wp-calypso/pull/86860 required switching the currency to INR. We can currently do this by visiting the store admin ie. /wp-admin/network/admin.php?page=store-admin:

Having the ability to quickly change the currency would save time, particularly when previewing multiple currencies.

How

Add support for passing a ?currency URL param when viewing /plans/:site. The API was updated to support this URL param here: https://github.com/Automattic/martech/issues/2688

oswian commented 3 months ago

Now that we have Storybook, suggest investigating how we can easily test currencies from there.