New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jetpack site-less Checkout: hide references to siteless.jetpack.com
domain from Purchases section
#54853
Jetpack site-less Checkout: hide references to siteless.jetpack.com
domain from Purchases section
#54853
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~293 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/Automattic/wp-calypso/blob/update/me-purchases-references-to-siteless-jetpack/client/me/purchases/remove-purchase/index.jsx#L256 also has a reference to the domain when trying to remove a plan.
Since I see that modal in your screenshots maybe you've missed to commit that change?
Other than the above - LGTM 👍
Instead of patching that line, I decided to hide the button that allows users to remove or cancel a subscription. This is because I think users would rather ask for a refund than remove/cancel their subscription. |
This PR modifies the release build for notifications To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-elI-p2 |
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-11243 |
This PR modifies the release build for editing-toolkit To test your changes on WordPress.com, run To deploy your changes after merging, see the documentation: PCYsg-mMA-p2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I decided to hide the button that allows users to remove or cancel a subscription. This is because I think users would rather ask for a refund than remove/cancel their subscription.
I also think this knocks out 1200479326344990-as-1200631299519252
LGTM!
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/6287644 Thank you @rcanepa for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Changes proposed in this Pull Request
siteless.jetpack.com
from the Purchases section that don't add useful information and might be confusing to some users.Testing instructions
yarn start
.public-api.wordpress.com
.USE_STORE_SANDBOX
so you can use a fake credit card (using credits makes appear many other warnings in the Purchase section and we won't be dealing with them on this PR)./me/purchases
section.siteless.jetpack.com
).siteless.jetpack.com
).siteless.jetpack.com
).Related to 1200479326344990-as-1200641987599725
Demo
The images on the left correspond to how things look now in production, on the right how they look after these changes.
/me/purchases
/me/purchases/siteless.jetpack.com/:purchaseId
– Product view/me/purchases/siteless.jetpack.com/:purchaseId
– Plan view/me/purchases/siteless.jetpack.com/:purchaseId
– Cancel product modal/me/purchases/siteless.jetpack.com/:purchaseId
– Cancel plan modal