-
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
New Checkout: split purchase details into second column #41063
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~1199 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. |
client/my-sites/checkout/composite-checkout/wpcom/components/wp-checkout-order-review.js
Show resolved
Hide resolved
client/my-sites/checkout/composite-checkout/wpcom/components/wp-order-review-line-items.js
Outdated
Show resolved
Hide resolved
client/my-sites/checkout/composite-checkout/wpcom/components/wp-checkout-order-review.js
Show resolved
Hide resolved
9b9e07f
to
9754cf8
Compare
- Move CheckoutStepBody inside CheckoutSteps - Split real steps from not - Move `checkout-content` back to Checkout component - Update loading - Update demo
- Remove props from Checkout Summary so that component just renders children - Update demo and defaults - Fix summary height when split into columns
fb18e8a
to
9c6479d
Compare
9c6479d
to
80786e3
Compare
<CheckoutSummaryFeaturesList> | ||
<CheckoutSummaryFeaturesListItem> | ||
<WPCheckoutCheckIcon /> | ||
{ translate( 'Live chat and email support' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 29 times:
translate( 'Email and live chat support' )
ES Score: 9
See 2 additional suggestions in the PR translation status page
</CheckoutSummaryFeaturesListItem> | ||
<CheckoutSummaryFeaturesListItem> | ||
<WPCheckoutCheckIcon /> | ||
{ translate( 'Dozens of free themes' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 19 times:
translate( 'Dozens of free themes.' )
ES Score: 15
See 2 additional suggestions in the PR translation status page
</CheckoutSummaryFeaturesListItem> | ||
<CheckoutSummaryFeaturesListItem> | ||
<WPCheckoutCheckIcon /> | ||
{ translate( 'Money back guarantee' ) } |
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.
ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 17 times:
translate( '30-day Money Back Guarantee' )
ES Score: 9
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.
The code is looking good! Made some small suggestions. Tested both the demo and the calypso version and both look good to me!
client/my-sites/checkout/composite-checkout/wpcom/components/wp-checkout-order-review.js
Outdated
Show resolved
Hide resolved
@sirbrillig: thanks for the review. I believe I've addressed your feedback and this is ready for another go. |
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.
Works as described! Thanks!
…)" This reverts commit 9ef61e7.
A false positive here. I linked a Jetpack issue to #98930 which as the same issue ID as this PR 😄 |
This does a few things with the ultimate goal of splitting out a summary into a separate column on desktop screens.
CheckoutSummary
component to composite-checkout (package, demo, documentation)CheckoutStepBody
component insideCheckoutSteps
CheckoutSummary
in WPcom's implementation of composite-checkoutCheckoutSummary
on mobile screens (collapse mobile toggle coming in future PR)Fixes: #41088
To test:
yarn run composite-checkout-demo
?flags=composite-checkout-testing
>960px
), the checkout summary is displayed, floated to the right, with a list of default features, and the tax (once calculated) and total