Migrating import flow to StepContainerV2#101738
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
|
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~25 bytes removed 📉 [gzipped]) DetailsCommon code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~4459 bytes added 📈 [gzipped]) DetailsSections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Async-loaded Components (~84 bytes added 📈 [gzipped]) DetailsReact 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. Generated by performance advisor bot at iscalypsofastyet.com. |
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
68a8a93 to
4589ff5
Compare
alshakero
left a comment
There was a problem hiding this comment.
Left two tiny but important comments.
...larative-flow/internals/steps-repository/site-migration-how-to-migrate/diy-option/style.scss
Outdated
Show resolved
Hide resolved
...nding/stepper/declarative-flow/internals/steps-repository/site-migration-identify/style.scss
Outdated
Show resolved
Hide resolved
...pper/declarative-flow/internals/steps-repository/site-migration-import-or-migrate/style.scss
Show resolved
Hide resolved
...larative-flow/internals/steps-repository/site-migration-how-to-migrate/diy-option/style.scss
Outdated
Show resolved
Hide resolved
...larative-flow/internals/steps-repository/site-migration-how-to-migrate/diy-option/style.scss
Outdated
Show resolved
Hide resolved
daledupreez
left a comment
There was a problem hiding this comment.
For reviewers without context, please specify why they need to run it against a local dev instance -- it took me a while to work out why I wasn't seeing the changes in the calypso.live branch. TL;DR: the feature is currently gated by the onboarding/step-container-v2 feature flag. I was able to test this with that flag explicitly enabled.
Along with the comments in the page, is there a reason we aren't migrating any additional screens as part of this PR? We have a large number of steps in the screen that are not included at the moment, so the experience is going to be janky with a partial transition to the new steps.
...larative-flow/internals/steps-repository/site-migration-how-to-migrate/diy-option/style.scss
Outdated
Show resolved
Hide resolved
| return ( | ||
| <> | ||
| <DocumentHead title={ translate( 'Let us migrate your site' ) } /> | ||
| <Step.CenteredColumnLayout |
There was a problem hiding this comment.
We explicitly narrowed this layout as part of the recent Code Blue V0 work -- see #100861 and #101519.
I see that we can either aim for a width of 4 or 6. 6 has a max-width of 615px, and the 4 case is really narrow with a max-width of 404px -- see the screenshot below. The current layout has a max-width almost exactly in the middle of that at 502px. @fditrapani, could you weigh in on what would be good for our use case and/or the CenteredColumnLayout wrapper?
There was a problem hiding this comment.
Thanks for the ping @daledupreez. Unfortunately neither of these options looks great. The wide one is too wide and hinders readability and the other one is too short making it looked cramped. Can we go with the wider one and then set a max width (400px) to the text to help with the readability? Like this:
There was a problem hiding this comment.
Can we go with the wider one and then set a max width (400px) to the text to help with the readability?
The current layout has a max-width almost exactly in the middle of that at 502px
I'd prefer not to use custom styles for these blocks since we're aiming to reuse the style of these blocks across these screens.
I added a new layout-5 with a middle size between layout 4 and layout 6. Here's how it looks:
How does that sound to you @fditrapani and @fcoveram?
e58450b to
4761deb
Compare
|
Thanks for your review @daledupreez!
Sorry, I didn't make it explicit that it should be run locally. I updated the description. Thanks for clarifying it for others!
That's fair. I used another strategy here.
Good question! During development, I noticed that this would quickly grow, so I split the work into another three extra steps:
Since we'll release all of this at once (currently behind that feature flag), it will be find delivering a few screens at time, as even with these changes, production will remain the same. |
|
Everything works good and is looking good apart from some minor deviations. (non-blocking)
Nevermind 2 & 4, After looking at the figma design I realise the header and subtitle are left align on mobile and subtitle color is different. Screen.Recording.2025-03-26.at.7.54.28.PM.mov |
@vykes-mac This is per the Figma specs W9xI27S6Swvw5Ku21EbZvn-fi-9837_29100 |
|
Functionality tested. ✅ Just want to make sure the rest of the import work is manageable to get done by March 31. If not maybe we treat it as a separate release? If it is manageable , then no worries. :) |
|
@autumnfjeld (and anyone else on Quake), can @Automattic/serenity help with converting more of the import and migration flows? |
Yeah, sending the other three screens by March 31 will be possible.
These changes are expected since the new StepContainerV2 implement them differently.
Thanks for pointing it out! We plan to fix that loading state as part of this task. Since it's only occurring behind the flag, and we'll fix it before March 31, we should be good to send it now. |
That would be fantastic @daledupreez . |
|
@Automattic/quake Let's keep these import PRs separate from the main flow release. See slack p1743109741691399/1743055172.691829-slack-C04H4NY6STW |
alshakero
left a comment
There was a problem hiding this comment.
Looks good to me now! Note that I only reviewed the code. I'm swamped right now and it will be a bit hard to test for me.
4761deb to
ab83a2c
Compare
Updated it here to only work with the |
| "onboarding/interval-dropdown": true, | ||
| "onboarding/playground": true, | ||
| "onboarding/step-container-v2": true, | ||
| "onboarding/step-container-v2-migration-flow": true, |
There was a problem hiding this comment.
Thanks for separating this so we can focus on shipping well tested quality work for the main flow first.










Related to #101191
Proposed Changes
Testing Instructions
?flags=onboarding/step-container-v2-migration-flowin testing servers.Import or migrate an existing siteThis work is partial
To make our reviews easier, I split the work into another three extra steps: