Skip to content

Checkout: Move CheckoutSummaryLineItem/Total to wpcom-checkout - #55731

Closed
sirbrillig wants to merge 7 commits into
trunkfrom
update/move-checkout-summary-line-item-to-wpcom-checkout
Closed

sirbrillig wants to merge 7 commits into
trunkfrom
update/move-checkout-summary-line-item-to-wpcom-checkout

Conversation

@sirbrillig

@sirbrillig sirbrillig commented Aug 25, 2021 •

Copy link
Copy Markdown
Member

Changes proposed in this Pull Request

This PR moves the CheckoutSummaryLineItem and CheckoutSummaryTotal components to the @automattic/wpcom-checkout package. This is part of #52215 and will also be helpful for #52890 which could then use these dependencies outside of calypso.

summary-line-item

Testing instructions

  • Add a product to the cart and visit checkout.
  • Set a postal code and country that includes taxes (eg: 10001, United States)
  • Verify that you see the "tax" and "total" items in the checkout summary; this is in the sidebar at large widths or collapsed at the top of the page at small widths.

@sirbrillig sirbrillig self-assigned this Aug 25, 2021
@github-actions

github-actions Bot commented Aug 25, 2021 •

Copy link
Copy Markdown

@sirbrillig
sirbrillig marked this pull request as ready for review August 25, 2021 22:34
@sirbrillig
sirbrillig requested a review from a team as a code owner August 25, 2021 22:34
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 25, 2021
@sirbrillig
sirbrillig force-pushed the update/move-checkout-summary-line-item-to-wpcom-checkout branch from 4d58db2 to fef298f Compare August 25, 2021 22:34
@sirbrillig sirbrillig added the [Feature] Checkout The checkout screen and process for purchases made on WordPress.com. label Aug 25, 2021
Comment thread packages/wpcom-checkout/package.json Resolved
@sirbrillig
sirbrillig force-pushed the update/move-checkout-summary-line-item-to-wpcom-checkout branch from fef298f to d31d732 Compare August 31, 2021 16:03
@sirbrillig
sirbrillig force-pushed the update/move-checkout-summary-line-item-to-wpcom-checkout branch from 4dec233 to 5d7e33a Compare September 3, 2021 17:18
@matticbot

Copy link
Copy Markdown
Contributor

Here is how your PR affects size of JS and CSS bundles shipped to the user's browser:

App Entrypoints (~372 bytes added 📈 [gzipped])

Details
name                 parsed_size           gzip_size
entry-gutenboarding      +4804 B  (+0.2%)     +372 B  (+0.1%)

Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used.

Sections (~108 bytes added 📈 [gzipped])

Details
name                          parsed_size           gzip_size
site-blocks                       +4804 B  (+1.3%)     +378 B  (+0.3%)
settings-writing                  +4804 B  (+0.8%)     +378 B  (+0.2%)
settings-security                 +4804 B  (+1.5%)     +378 B  (+0.4%)
settings-performance              +4804 B  (+1.3%)     +378 B  (+0.3%)
settings-discussion               +4804 B  (+1.8%)     +378 B  (+0.5%)
settings                          +4804 B  (+0.8%)     +378 B  (+0.2%)
security                          +4804 B  (+0.9%)     +378 B  (+0.3%)
privacy                           +4804 B  (+1.4%)     +378 B  (+0.4%)
posts-custom                      +4804 B  (+1.0%)     +378 B  (+0.3%)
posts                             +4804 B  (+1.0%)     +378 B  (+0.3%)
plugins                           +4804 B  (+0.9%)     +378 B  (+0.2%)
notification-settings             +4804 B  (+1.2%)     +378 B  (+0.3%)
media                             +4804 B  (+0.3%)     +378 B  (+0.1%)
me                                +4804 B  (+1.5%)     +378 B  (+0.4%)
jetpack-connect                   +4804 B  (+0.7%)     +378 B  (+0.2%)
jetpack-cloud-pricing             +4804 B  (+1.4%)     +378 B  (+0.4%)
help                              +4804 B  (+0.9%)     +378 B  (+0.3%)
happychat                         +4804 B  (+1.4%)     +378 B  (+0.4%)
earn                              +4804 B  (+1.3%)     +378 B  (+0.3%)
domains                           +4804 B  (+0.3%)     +378 B  (+0.1%)
account-close                     +4804 B  (+1.3%)     +378 B  (+0.4%)
account                           +4804 B  (+0.9%)     +378 B  (+0.3%)
plans                             +2741 B  (+0.4%)     +112 B  (+0.1%)
marketing                         +2741 B  (+0.4%)     +112 B  (+0.1%)
email                             +2741 B  (+0.6%)     +112 B  (+0.1%)
site-purchases                    +2713 B  (+0.2%)     +112 B  (+0.0%)
purchases                         +2713 B  (+0.2%)     +112 B  (+0.0%)
marketplace                       +2713 B  (+0.4%)     +111 B  (+0.1%)
checkout                          -2081 B  (-0.2%)     -269 B  (-0.1%)
jetpack-cloud-partner-portal      -2063 B  (-1.0%)     -266 B  (-0.4%)

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 (~109 bytes added 📈 [gzipped])

Details
name                                               parsed_size           gzip_size
async-load-signup-steps-domains                        +4804 B  (+1.3%)     +378 B  (+0.4%)
async-load-quick-language-switcher                     +4804 B  (+3.2%)     +378 B  (+0.8%)
async-load-design-wordpress-components-gallery         +4804 B  (+0.6%)     +378 B  (+0.2%)
async-load-design-playground                           +4804 B  (+0.3%)     +378 B  (+0.1%)
async-load-design-blocks                               +4804 B  (+0.2%)     +378 B  (+0.1%)
async-load-design                                      +4804 B  (+0.3%)     +378 B  (+0.1%)
async-load-calypso-reader-site-stream                  +4804 B  (+6.9%)     +378 B  (+1.6%)
async-load-calypso-reader-search-stream                +4804 B  (+3.8%)     +378 B  (+1.0%)
async-load-calypso-reader-following-manage             +4804 B  (+2.9%)     +378 B  (+0.8%)
async-load-calypso-reader-feed-stream                  +4804 B  (+6.9%)     +378 B  (+1.6%)
async-load-calypso-post-editor-editor-media-modal      +4804 B  (+0.3%)     +378 B  (+0.1%)
async-load-block-editor                                +4804 B  (+0.2%)     +378 B  (+0.1%)
async-load-automattic-search                           +4804 B  (+4.4%)     +378 B  (+1.1%)
async-load-calypso-blocks-editor-checkout-modal        -2081 B  (-0.2%)     -269 B  (-0.1%)
async-load-signup-steps-plans                          -2063 B  (-0.7%)     -266 B  (-0.3%)

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.
Gzip Size: Compressed size of the JS and CSS files. This much data needs to be downloaded over network.

Generated by performance advisor bot at iscalypsofastyet.com.

@matticbot

Copy link
Copy Markdown
Contributor

This PR modifies the release build for editing-toolkit

To test your changes on WordPress.com, run install-plugin.sh editing-toolkit update/move-checkout-summary-line-item-to-wpcom-checkout on your sandbox.

To deploy your changes after merging, see the documentation: PCYsg-mMA-p2

@sirbrillig

Copy link
Copy Markdown
Member Author

Come to think of it, these are just minorly styled divs so I think this may not be necessary after all.

@sirbrillig sirbrillig closed this Sep 6, 2021
@sirbrillig sirbrillig removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Sep 6, 2021
@sirreal
sirreal deleted the update/move-checkout-summary-line-item-to-wpcom-checkout branch January 14, 2025 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Checkout The checkout screen and process for purchases made on WordPress.com.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants