Skip to content
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

Gutenboarding: Use Card component from package #38802

Merged
merged 1 commit into from
Jan 21, 2020

Conversation

sirreal
Copy link
Member

@sirreal sirreal commented Jan 13, 2020

Changes proposed in this Pull Request

Remove duplicated/copied Card and use it from @wordpress/components.

Replaced #38607.

Testing instructions

Verify that Gutenboarding still works.

@sirreal sirreal requested a review from a team as a code owner January 13, 2020 11:38
@matticbot
Copy link
Contributor

@sirreal sirreal self-assigned this Jan 13, 2020
@sirreal sirreal added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 13, 2020
@matticbot
Copy link
Contributor

matticbot commented Jan 13, 2020

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

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

name                   parsed_size            gzip_size
entry-main               +141453 B   (+9.2%)   +37193 B  (+10.0%)
entry-login              +141453 B  (+13.9%)   +37191 B  (+14.0%)
entry-domains-landing    +141453 B  (+35.0%)   +37170 B  (+35.1%)
entry-jetpack-cloud       -92803 B  (-38.5%)   -25362 B  (-34.8%)
entry-gutenboarding       +28170 B   (+1.6%)   +12617 B   (+2.6%)

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

Sections (~497357 bytes removed 📉 [gzipped])

name                   parsed_size             gzip_size
posts-custom             -866414 B   (-75.9%)  -209199 B   (-74.8%)
zoninator                -833884 B   (-76.2%)  -194559 B   (-73.4%)
posts                    -219054 B   (-44.2%)   -46141 B   (-39.3%)
me                       -155230 B   (-41.8%)   -25949 B   (-31.0%)
signup                   -134336 B   (-45.9%)   -32415 B   (-44.8%)
site-blocks              -103812 B   (-30.1%)   -22879 B   (-26.3%)
post-editor              -102756 B    (-5.1%)   -20425 B    (-3.8%)
activity                 -102756 B   (-18.3%)   -20425 B   (-15.0%)
devdocs                   +95765 B  (+174.8%)   +26432 B  (+187.3%)
import                    +79917 B   (+65.0%)   +20630 B   (+64.6%)
wp-super-cache            +75707 B   (+51.9%)   +15682 B   (+39.3%)
stats                     -72903 B    (-8.5%)   -16596 B    (-7.9%)
notification-settings     +55918 B   (+22.5%)   +11279 B   (+17.2%)
happychat                 -55754 B   (-18.6%)   -10817 B   (-14.1%)
comments                  -47589 B    (-8.6%)    -7057 B    (-5.7%)
woocommerce               +32188 B    (+1.6%)    +8653 B    (+1.6%)
domains                   +31664 B    (+3.9%)    +4885 B    (+2.6%)
checkout                  +30206 B    (+2.7%)    +6920 B    (+2.5%)
purchases                 +30025 B    (+3.3%)    +6901 B    (+3.2%)
media                     +16779 B    (+4.9%)    +3825 B    (+4.2%)
privacy                   +15185 B    (+7.4%)    +4779 B    (+8.8%)
marketing                  -7109 B    (-1.7%)    -3070 B    (-2.9%)
reader                     +5710 B    (+1.5%)    +2189 B    (+2.2%)

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 (~67224 bytes removed 📉 [gzipped])

name                                                         parsed_size            gzip_size
async-load-design-playground                                   -102756 B   (-5.7%)   -20425 B   (-5.0%)
async-load-design                                               -78027 B   (-4.2%)   -17832 B   (-4.2%)
async-load-design-blocks                                        -72731 B   (-2.6%)   -13524 B   (-2.1%)
async-load-lib-preferences-helper                               -51122 B  (-78.0%)   -13779 B  (-74.8%)
async-load-my-sites-checklist-wpcom-checklist-component-jsx     -19038 B  (-12.6%)    -5304 B  (-14.2%)
async-load-components-web-preview-component                     +15724 B   (+4.8%)    +3093 B   (+3.7%)
async-load-lib-happychat-connection                             -13219 B  (-17.7%)     +547 B   (+3.2%)

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.

@sirreal sirreal added [Status] In Progress and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 13, 2020
@chriskmnds
Copy link
Contributor

Still getting some console errors in live preview:

Screenshot 2020-01-13 at 3 08 04 PM

and a SASS error locally (?) - this in particular:

    SassError: SassError: Error: Specified z-index `.edit-post-editor-regions__header` does not exist in the mapping
            on line 133 of node_modules/@wordpress/base-styles/_z-index.scss, in function `z-index`

@sirreal
Copy link
Member Author

sirreal commented Jan 13, 2020

Still getting some console errors in live preview:

Screenshot 2020-01-13 at 3 08 04 PM

This should be fixed by using as prop over withComponent method, which doesn't exist as we'd expected 😬

and a SASS error locally (?) - this in particular:

    SassError: SassError: Error: Specified z-index `.edit-post-editor-regions__header` does not exist in the mapping
            on line 133 of node_modules/@wordpress/base-styles/_z-index.scss, in function `z-index`

I suspect this is from a stale package version you have locally. I don't see the issue.

This will create a typecheck error that can safely be ignored, the type definitions need to be updated.

@sirreal sirreal added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] In Progress labels Jan 13, 2020
@sirreal
Copy link
Member Author

sirreal commented Jan 13, 2020

Fixing/updating type defs: DefinitelyTyped/DefinitelyTyped#41566

@sirreal sirreal added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 13, 2020
Copy link

@razvanpapadopol razvanpapadopol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all good 👌

@sirreal sirreal force-pushed the remove/gutenboarding-local-card-component-copy-v2 branch from 9d4cc9f to 1abbb66 Compare January 17, 2020 17:59
@sirreal
Copy link
Member Author

sirreal commented Jan 17, 2020

Rebased.

@sirreal sirreal force-pushed the remove/gutenboarding-local-card-component-copy-v2 branch from 1abbb66 to 03c2528 Compare January 20, 2020 18:04
@sirreal
Copy link
Member Author

sirreal commented Jan 20, 2020

Rebased.

Copy link
Contributor

@Addison-Stavlo Addison-Stavlo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes work great on my end as well.

@sirreal sirreal merged commit 48a2c04 into master Jan 21, 2020
@sirreal sirreal deleted the remove/gutenboarding-local-card-component-copy-v2 branch January 21, 2020 09:37
@sirreal sirreal removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants