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

Site migration: progress view adjustments #38214

Merged
merged 2 commits into from
Dec 12, 2019
Merged

Conversation

andfinally
Copy link
Contributor

@andfinally andfinally commented Dec 5, 2019

Note: This change is behind a feature flag and is part of an in-progress larger project. For context, see pbkcP4-8-p2.

Changes proposed in this Pull Request

  • Replaces illustration.
  • Wraps domains in subheader in spans to prevent them breaking across lines.
  • Sizes and aligns progress item icons.

image

Testing instructions

  • Check out this pull request and run Calypso locally, or view it on calypso.live with the flag tools/migrate.
  • Viewing calypso.localhost:3000/migrate/, you should see a SiteSelector component allowing you to choose a site to migrate a Jetpack site into.
  • When you select a site, you should see another SiteSelector component, listing all the Jetpack sites your account has access to.
  • Selecting one of those sites should take you to a confirmation screen.
  • Accept the confirmation. You should see a progress screen detailing the steps of the migration.
    • The illustration should not have a coloured bubble.
    • The progress list item icons should be aligned.
    • The domains in the subheader should not break when you resize your viewport.
  • When the migration is done you should see a message telling you it is complete.

@andfinally andfinally added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. WP Migration Use "[Feature] Site Migration" ___ Old lable related to WP Migration Project (pbkcP4-8-p2) labels Dec 5, 2019
@andfinally andfinally self-assigned this Dec 5, 2019
@matticbot
Copy link
Contributor

@andfinally andfinally requested a review from a team December 5, 2019 17:52
@matticbot
Copy link
Contributor

matticbot commented Dec 5, 2019

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

Sections (~30 bytes added 📈 [gzipped])

name     parsed_size           gzip_size
migrate       +425 B  (+0.4%)      +30 B  (+0.1%)

Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to.

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.

Copy link
Contributor

@jonathansadowski jonathansadowski left a comment

Choose a reason for hiding this comment

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

Nice job -- looking good to me. Just two minor points: I observed a line-break in the middle of the domains in the checklist at the bottom of the page. Also: I think we should hold-off on string translations until the copy is finalized.

client/my-sites/migrate/section-migrate.jsx Outdated Show resolved Hide resolved
client/my-sites/migrate/section-migrate.jsx Outdated Show resolved Hide resolved
@andfinally
Copy link
Contributor Author

andfinally commented Dec 11, 2019

Thanks for the review Jon – I've removed the translation calls and wrapped the domains in the progress list in non-breaking spans.

I've had to wrap the progress list text in a second span to get React to respect the single white space between the text and the domain (see Ben Nadel's post on React's behaviour). For some reason React respects it within a fragment in the subheader text, but not in the list item text.

@mattsherman mattsherman self-requested a review December 11, 2019 14:35
Copy link
Contributor

@mattsherman mattsherman left a comment

Choose a reason for hiding this comment

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

Tested, worked as expected. Code looks good.

@mattsherman mattsherman removed their assignment Dec 11, 2019
@andfinally andfinally force-pushed the update/migration--progress branch from d6089d1 to cf32e34 Compare December 11, 2019 15:31
@andfinally andfinally 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 Dec 11, 2019
@jonathansadowski jonathansadowski dismissed their stale review December 11, 2019 15:48

Suggestions addressed

@andfinally andfinally 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 Dec 11, 2019
…with spans so they don't break. Sizing and aligning progress item icons.
@andfinally andfinally force-pushed the update/migration--progress branch from 9f12236 to 8814f20 Compare December 11, 2019 17:31
@andfinally andfinally merged commit 41e1729 into master Dec 12, 2019
@andfinally andfinally deleted the update/migration--progress branch December 12, 2019 09:14
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Dec 12, 2019
@mattsherman
Copy link
Contributor

Accepted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WP Migration Use "[Feature] Site Migration" ___ Old lable related to WP Migration Project (pbkcP4-8-p2)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants