-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add DIFM Price breakdown in page picker page #67391
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~76 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~287 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. Async-loaded Components (~7240 bytes added 📈 [gzipped])
React components that are loaded lazily, when a certain part of UI is displayed for the first time. 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. |
2b6f64c
to
7cc336d
Compare
review feedback Co-authored-by: Payton Swick <payton@foolord.com>
b30941f
to
667c9b3
Compare
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.
I tested the different flows - new site, existing site and from onboarding. There are a few small bugs which I have listed below, but nothing that is serious. 🎉 I'll do a code review shortly!
- The plan's cost is shown without the regional discount in the new site flow. This could be okay since we mentioned that the final price will be calculated at checkout. Flagging it here so that it is a known issue for the CfT.
Page Picker | Checkout |
---|---|
![]() |
![]() |
- In the existing site flow, while the network request is ongoing, the cost of the extra page shown in the subheading has the incorrect currency:
Kapture.2022-09-13.at.15.57.29.mp4
- In the existing site flow, if there is a regional discount for the plan, there is a mismatch between the price shown in the sublabel and in the price column:
- In the existing site flow, I noticed that there is a network request to
/me/shopping-cart/no-site
. I was wondering if this is intentional/required.
Kapture.2022-09-13.at.16.15.25.mp4
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.
I haven't run through the testing instructions but the code looks good to me from a Payments perspective. Thanks for addressing my concerns about the price calculation! I think this approach will work much better.
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.
Tests well! Awesome work in getting this complicated change through!
I have added some minor code feedback, once that is resolved, this is good to go.
475dd70
to
d0fb0e1
Compare
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.
Tests well, LGTM!
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7527404 Thank you @jdc91 for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
* Add DIFM Price breakdown in page picker page * Temp change might have to be removed * Fixes to price breakdown * Enforce order * Fix sub header price display * Typescript Fixes * Type fixes * Mobile layout fixes for sub label * Comment fix * Add sub label to mobile cart * Update to backend param minimum_price_in_display_unit s * Update client/signup/steps/page-picker/use-cart-for-difm.tsx review feedback Co-authored-by: Payton Swick <payton@foolord.com> * Review type fixes * Minor cleanup * USe effect fixes * Type fixes * Fix smallest unit change * Review fixeS: : * Review fixes and adding feature flag to page picker * Enable extra pages in wpcalypso and remove pro plan refferences * Checkout pressed loader Co-authored-by: Payton Swick <payton@foolord.com>
Proposed Changes
Adds a dummy basket to the page picker step so that the customer has some feedback of the cost incurred when purchasing extra pages.
Implementation Details
New site
Existing site
Common
difm/allow-extra-pages
feature flagWithout Extra Pages
With Extra Pages
Testing Instructions
/start/do-it-for-me
/start/do-it-for-me/difm-page-picker?flags=no-force-sympathy,difm/allow-extra-pages
/start/do-it-for-me/difm-page-picker?flags=no-force-sympathy,-difm/allow-extra-pages
Pre-merge Checklist
Related to #