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

Stepper framework: Add import flow #62759

Merged
merged 49 commits into from
May 3, 2022
Merged

Stepper framework: Add import flow #62759

merged 49 commits into from
May 3, 2022

Conversation

bogiii
Copy link
Contributor

@bogiii bogiii commented Apr 14, 2022

Changes proposed in this Pull Request

This PR contains the first part of the effort introducing the whole import onboarding experience to the stepper framework.

  • 🟢 start/importer/capture (signup) -> setup/import (stepper)
  • ⚪️ start/from/importing/{importer} (signup) -> setup/importer/{importer}
  • Registered an import flow inside a new non-linear stepper framework.
  • Adjusted the stepper framework allowing consumption of the main redux store since the import module depends on it.
  • Setup import flow to consume existing import module screens from the linear signup framework.

Next steps (not covered by this PR):

  • Move the place where the import module lives. From the signup steps to calypso/blocks
  • Register an importer flow equivalently with /start/from/{importer}

Testing instructions

  • Go to the setup/intent?siteSlug={SLUG}
  • Select Import your site content option
  • Enter any URL you want to import from
  • Check if it works in the same way as it is the case when you start from /start/setup-site/intent?siteSlug={SLUG}
  • Check navigation Back and I don't have a site address header's navigation links
  • In other words, it should be the same as it is on the /start signup flow

Related to #62238

Additonal information: pcmemI-u6-p2

@matticbot
Copy link
Contributor

matticbot commented Apr 14, 2022

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

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

name                   parsed_size           gzip_size
entry-stepper            +105117 B  (+5.9%)   +32009 B  (+6.2%)
entry-main                  -251 B  (-0.0%)      +38 B  (+0.0%)
entry-login                  -96 B  (-0.0%)      +64 B  (+0.0%)
entry-gutenboarding          -96 B  (-0.0%)      -73 B  (-0.0%)
entry-domains-landing        -74 B  (-0.0%)      -26 B  (-0.0%)
entry-browsehappy            -74 B  (-0.1%)      -26 B  (-0.1%)

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

Sections (~259 bytes added 📈 [gzipped])

name                   parsed_size           gzip_size
signup                      -268 B  (-0.1%)       +7 B  (+0.0%)
jetpack-connect             -268 B  (-0.0%)       +7 B  (+0.0%)
accept-invite               -268 B  (-0.1%)       +7 B  (+0.0%)
reader                       +38 B  (+0.0%)      +27 B  (+0.0%)
posts-custom                 +38 B  (+0.0%)      +28 B  (+0.0%)
posts                        +38 B  (+0.0%)      +28 B  (+0.0%)
media                        +38 B  (+0.0%)      +41 B  (+0.0%)
marketing                    +38 B  (+0.0%)      +27 B  (+0.0%)
jetpack-social               +38 B  (+0.0%)      +27 B  (+0.0%)
jetpack-cloud-pricing        +38 B  (+0.0%)      +27 B  (+0.0%)
import                       +38 B  (+0.0%)      +26 B  (+0.0%)
comments                     +38 B  (+0.0%)      +25 B  (+0.0%)
backup                       +38 B  (+0.0%)      +25 B  (+0.0%)
activity                     +38 B  (+0.0%)      +26 B  (+0.0%)

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

name                                                               parsed_size           gzip_size
async-load-calypso-blocks-inline-help                                   -216 B  (-1.8%)      -33 B  (-0.9%)
async-load-calypso-blocks-inline-help-popover                           -196 B  (-0.0%)     -781 B  (-0.5%)
async-load-signup-steps-import-list                                     +130 B  (+0.8%)     +160 B  (+2.8%)
async-load-signup-steps-import-ready                                    -126 B  (-0.1%)     -272 B  (-1.0%)
async-load-signup-steps-import-from-wordpress                           +108 B  (+0.0%)      +82 B  (+0.0%)
async-load-signup-steps-import-from                                     +108 B  (+0.0%)      +82 B  (+0.0%)
async-load-signup-steps-import                                          +107 B  (+0.1%)      +94 B  (+0.2%)
async-load-signup-steps-import-light-capture                             +70 B  (+0.1%)      +45 B  (+0.2%)
async-load-signup-steps-import-light                                     +70 B  (+0.1%)      +45 B  (+0.1%)
async-load-signup-steps-import-from-wordpress-import-everything          +70 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-capture                                   +70 B  (+0.1%)      +40 B  (+0.2%)
async-load-signup-steps-website-content                                  +38 B  (+0.0%)      +11 B  (+0.0%)
async-load-signup-steps-social-profiles                                  +38 B  (+0.0%)      +11 B  (+0.0%)
async-load-signup-steps-import-from-wordpress-import-content-only        +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-from-wix                                  +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-from-squarespace                          +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-from-medium                               +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-from-components-progress-screen           +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-import-from-components-importer-drag             +38 B  (+0.0%)       +5 B  (+0.0%)
async-load-signup-steps-import-from-blogger                              +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-signup-steps-clone-point                                      +38 B  (+0.0%)      +27 B  (+0.0%)
async-load-design-playground                                             +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-design-blocks                                                 +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-design                                                        +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-calypso-post-editor-media-modal                               +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-calypso-post-editor-editor-media-modal                        +38 B  (+0.0%)      +41 B  (+0.0%)
async-load-calypso-components-web-preview-component                      +38 B  (+0.0%)      +26 B  (+0.0%)
async-load-calypso-blocks-login-social-connect-prompt                    +38 B  (+0.8%)      +18 B  (+1.0%)

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
Contributor

matticbot commented Apr 14, 2022

@bogiii
Copy link
Contributor Author

bogiii commented Apr 27, 2022

Code looks great and most functionality works fine. Found a possible tiny bug:

CleanShot.2022-04-21.at.11.20.43.mp4

Thanks for discovering! It has been fixed.

cc @vishnugopal

@bogiii bogiii requested a review from alshakero April 27, 2022 21:43
@bogiii
Copy link
Contributor Author

bogiii commented May 2, 2022

@alshakero, could you please take one more look to confirm?

I would like to merge it soon.

Copy link
Member

@alshakero alshakero left a comment

Choose a reason for hiding this comment

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

Thank you so so much for this! Looks great now!

@bogiii bogiii merged commit c7136fb into trunk May 3, 2022
@bogiii bogiii deleted the add/stepper-import branch May 3, 2022 11:18
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label May 3, 2022
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.

4 participants