Skip to content

Comments

Imports: Remove routing for onboarding flow query param#101605

Merged
sixhours merged 1 commit intotrunkfrom
remove/unused-import-flow
Mar 26, 2025
Merged

Imports: Remove routing for onboarding flow query param#101605
sixhours merged 1 commit intotrunkfrom
remove/unused-import-flow

Conversation

@sixhours
Copy link
Contributor

@sixhours sixhours commented Mar 19, 2025

Related to #101382

Proposed Changes

  • Remove extra routing that shows the onboarding importer rather than the regular importer within Calypso.

Visual

Before

Screenshot 2025-03-19 at 11 53 31 AM

After

Screenshot 2025-03-19 at 11 53 22 AM

Why are these changes being made?

Testing Instructions

  • Switch to this PR
  • Navigate to `/import/{siteslug}?flow=onboarding
  • You should see the following import screen rather than the onboarding-themed as in the screenshots above.

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@sixhours sixhours added Import [Feature] Importing & Exporting All import and export tools and flows. labels Mar 19, 2025
@sixhours sixhours requested a review from a team March 19, 2025 15:59
@sixhours sixhours self-assigned this Mar 19, 2025
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 19, 2025
@github-actions
Copy link

github-actions bot commented Mar 19, 2025

@matticbot
Copy link
Contributor

matticbot commented Mar 19, 2025

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

App Entrypoints (~73 bytes removed 📉 [gzipped])

Details
name                   parsed_size           gzip_size
entry-stepper              -1054 B  (-0.1%)      -48 B  (-0.0%)
entry-subscriptions         -312 B  (-0.0%)      -15 B  (-0.0%)
entry-main                  -208 B  (-0.0%)       -6 B  (-0.0%)
entry-login                 -208 B  (-0.0%)       -6 B  (-0.0%)
entry-domains-landing       -202 B  (-0.0%)       +2 B  (+0.0%)
entry-browsehappy           -202 B  (-0.1%)       +2 B  (+0.0%)

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

Sections (~3841 bytes removed 📉 [gzipped])

Details
name                                parsed_size           gzip_size
import                                  -9367 B  (-1.2%)    -2757 B  (-1.2%)
async-step-unified-domains               -134 B  (-0.0%)      -16 B  (-0.0%)
themes                                   -110 B  (-0.0%)      -14 B  (-0.0%)
stepper-user-step                        -110 B  (-0.0%)      -14 B  (-0.0%)
staging-site                             -110 B  (-0.0%)      -17 B  (-0.0%)
sites-dashboard                          -110 B  (-0.0%)      -17 B  (-0.0%)
site-settings                            -110 B  (-0.0%)      -17 B  (-0.0%)
site-purchases                           -110 B  (-0.0%)      -13 B  (-0.0%)
site-profiler                            -110 B  (-0.0%)      -12 B  (-0.0%)
site-performance                         -110 B  (-0.0%)      -17 B  (-0.0%)
site-monitoring                          -110 B  (-0.0%)      -17 B  (-0.0%)
site-logs                                -110 B  (-0.0%)      -17 B  (-0.0%)
site-blocks                              -110 B  (-0.0%)      -13 B  (-0.0%)
settings-writing                         -110 B  (-0.0%)      -10 B  (-0.0%)
settings-security                        -110 B  (-0.0%)      -10 B  (-0.0%)
settings-reading                         -110 B  (-0.0%)      -13 B  (-0.0%)
settings-podcast                         -110 B  (-0.0%)      -13 B  (-0.0%)
settings-performance                     -110 B  (-0.0%)      -10 B  (-0.0%)
settings-newsletter                      -110 B  (-0.0%)      -13 B  (-0.0%)
settings-jetpack                         -110 B  (-0.0%)      -10 B  (-0.0%)
settings-discussion                      -110 B  (-0.0%)      -10 B  (-0.0%)
settings                                 -110 B  (-0.0%)      -10 B  (-0.0%)
security                                 -110 B  (-0.0%)      -13 B  (-0.0%)
scan                                     -110 B  (-0.0%)      -14 B  (-0.0%)
reader                                   -110 B  (-0.0%)      -13 B  (-0.0%)
purchases                                -110 B  (-0.0%)      -13 B  (-0.0%)
purchase-product                         -110 B  (-0.1%)      -16 B  (-0.0%)
privacy                                  -110 B  (-0.0%)      -13 B  (-0.0%)
plugins                                  -110 B  (-0.0%)      -17 B  (-0.0%)
plans                                    -110 B  (-0.0%)      -17 B  (-0.0%)
performance-profiler                     -110 B  (-0.0%)      -12 B  (-0.0%)
patterns                                 -110 B  (-0.0%)      -12 B  (-0.0%)
overview                                 -110 B  (-0.0%)      -17 B  (-0.0%)
notification-settings                    -110 B  (-0.0%)      -13 B  (-0.0%)
migrate                                  -110 B  (-0.0%)      -11 B  (-0.0%)
media                                    -110 B  (-0.0%)      -12 B  (-0.0%)
me                                       -110 B  (-0.0%)      -13 B  (-0.0%)
marketing                                -110 B  (-0.0%)      -10 B  (-0.0%)
jetpack-social                           -110 B  (-0.0%)      -13 B  (-0.0%)
jetpack-cloud-settings                   -110 B  (-0.0%)      -11 B  (-0.0%)
jetpack-cloud-pricing                    -110 B  (-0.0%)      -13 B  (-0.0%)
jetpack-cloud-plugin-management          -110 B  (-0.0%)      -17 B  (-0.0%)
jetpack-cloud-partner-portal             -110 B  (-0.0%)      -10 B  (-0.0%)
jetpack-cloud-manage-pricing             -110 B  (-0.0%)      -13 B  (-0.0%)
jetpack-cloud-features-comparison        -110 B  (-0.0%)      -13 B  (-0.0%)
jetpack-cloud-agency-signup              -110 B  (-0.1%)      -13 B  (-0.0%)
jetpack-cloud-agency-dashboard           -110 B  (-0.0%)      -10 B  (-0.0%)
hosting                                  -110 B  (-0.0%)      -17 B  (-0.0%)
home                                     -110 B  (-0.0%)      -12 B  (-0.0%)
help                                     -110 B  (-0.0%)      -13 B  (-0.0%)
github-deployments                       -110 B  (-0.0%)      -17 B  (-0.0%)
email                                    -110 B  (-0.0%)       -9 B  (-0.0%)
domains                                  -110 B  (-0.0%)      -17 B  (-0.0%)
developer                                -110 B  (-0.0%)      -13 B  (-0.0%)
concierge                                -110 B  (-0.0%)      -10 B  (-0.0%)
comments                                 -110 B  (-0.0%)      -11 B  (-0.0%)
checkout                                 -110 B  (-0.0%)      -11 B  (-0.0%)
backup                                   -110 B  (-0.0%)      -11 B  (-0.0%)
async-step-use-my-domain                 -110 B  (-0.0%)      -12 B  (-0.0%)
activity                                 -110 B  (-0.0%)      -11 B  (-0.0%)
account-close                            -110 B  (-0.0%)      -13 B  (-0.0%)
account                                  -110 B  (-0.0%)      -13 B  (-0.0%)
a8c-for-agencies-woopayments             -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-team                    -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-sites                   -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-signup                  -110 B  (-0.0%)       -9 B  (-0.0%)
a8c-for-agencies-settings                -110 B  (-0.1%)      -17 B  (-0.0%)
a8c-for-agencies-referrals               -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-purchases               -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-plugins                 -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-partner-directory       -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-overview                -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-migrations              -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-marketplace             -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-landing                 -110 B  (-0.1%)      -17 B  (-0.0%)
a8c-for-agencies-client                  -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies-agency-tier             -110 B  (-0.0%)      -17 B  (-0.0%)
a8c-for-agencies                         -110 B  (-0.1%)      -17 B  (-0.0%)
reblogging-flow                          -100 B  (-0.2%)     -725 B  (-5.8%)
hosted-site-migration-flow               -100 B  (-0.2%)     -725 B  (-5.6%)
devdocs                                   +54 B  (+0.0%)      +24 B  (+0.0%)
signup                                    -24 B  (-0.0%)       -7 B  (-0.0%)
async-step-unified-plans                  -24 B  (-0.0%)       -7 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 (~500 bytes added 📈 [gzipped])

Details
name                                               parsed_size           gzip_size
async-load-signup-steps-social-profiles                 -110 B  (-0.2%)      -10 B  (-0.0%)
async-load-signup-steps-site-options                    -110 B  (-0.1%)       -9 B  (-0.0%)
async-load-signup-steps-site                            -110 B  (-0.1%)      -11 B  (-0.0%)
async-load-signup-steps-rewind-form-creds               -110 B  (-0.1%)      -11 B  (-0.0%)
async-load-signup-steps-p2-site                         -110 B  (-0.1%)      -13 B  (-0.0%)
async-load-signup-steps-domains                         -110 B  (-0.0%)      -10 B  (-0.0%)
async-load-signup-steps-clone-destination               -110 B  (-0.2%)      -11 B  (-0.0%)
async-load-signup-steps-clone-credentials               -110 B  (-0.1%)       -9 B  (-0.0%)
async-load-calypso-post-editor-editor-media-modal       -110 B  (-0.0%)      -11 B  (-0.0%)
async-load-calypso-layout-community-translator          -110 B  (-0.4%)       -9 B  (-0.1%)
async-load-calypso-components-jetpack-portal-nav        -110 B  (-0.2%)      -11 B  (-0.1%)
async-load-calypso-blocks-editor-checkout-modal         -110 B  (-0.0%)      -11 B  (-0.0%)
async-load-automattic-help-center-stepper               -110 B  (-0.0%)      -12 B  (-0.0%)
async-load-automattic-help-center                       -110 B  (-0.0%)      -12 B  (-0.0%)
async-load-design                                        +54 B  (+0.0%)     +638 B  (+0.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.

@sixhours sixhours marked this pull request as ready for review March 19, 2025 16:37
Copy link
Contributor

@andres-blanco andres-blanco left a comment

Choose a reason for hiding this comment

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

The importers screen shows up fine, but there's something broken in the CSS when selecting the WordPress option.

Screen.Recording.2025-03-19.at.3.45.01.PM.mov

Copy link
Contributor

@daledupreez daledupreez left a comment

Choose a reason for hiding this comment

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

It also looks like the importerList function was added in #85830 - we should also clean that up.

@andres-blanco
Copy link
Contributor

The importers screen shows up fine, but there's something broken in the CSS when selecting the WordPress option.

It will probably get fixed by a rebase. At least that's what happened here

@sixhours sixhours force-pushed the remove/unused-import-flow branch from 5817f5f to aadafac Compare March 24, 2025 14:38
@matticbot
Copy link
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • notifications
  • wpcom-block-editor

To test WordPress.com changes, run install-plugin.sh $pluginSlug remove/unused-import-flow on your sandbox.

@sixhours
Copy link
Contributor Author

I've rebased!

@andres-blanco I couldn't play the video clip and I'm not seeing anything weird in the CSS when I click on the WordPress option.

Copy link
Contributor

@andres-blanco andres-blanco left a comment

Choose a reason for hiding this comment

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

This works as expected so I'll approve.

Are you planning on removing the importerList function in a new PR? If not, ping me when the change is in and I'll re-review :)

@sixhours sixhours merged commit 73ecb60 into trunk Mar 26, 2025
15 checks passed
@sixhours sixhours deleted the remove/unused-import-flow branch March 26, 2025 14:20
@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 Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] Importing & Exporting All import and export tools and flows. Import

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants