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

Imports: Improve import progress text to be more informative #35808

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

andfinally
Copy link
Contributor

@andfinally andfinally commented Aug 27, 2019

The text Waiting on xxx resources to import beneath the import progress bar is currently not very helpful to ordinary folks: it won't be clear to them what "resources" means.

I'm proposing this change as an interim measure which may be replaced if we implement better progress reporting for imports. Personally I'm not sure about the wordiness this adds to the UI. I'd say there's even a case for making it simpler with xxx things left to import.

Changes proposed in this Pull Request

  • Change the wording in the progress message.

Testing instructions

  • Apply the PR and run Calypso locally, or use calypso.live.
  • Go to the import page /import/[ site ], choose the WordPress importer and upload a test import file. Go past the author mapping stage and wait for the progress bar to appear.
  • The progress wording should be xxx posts, pages and media files left to import.

image

@matticbot
Copy link
Contributor

@andfinally andfinally added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Import labels Aug 27, 2019
@andfinally andfinally requested a review from a team August 27, 2019 09:28
@matticbot
Copy link
Contributor

matticbot commented Aug 27, 2019

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

Sections (~11 bytes added 📈 [gzipped])

name    parsed_size           gzip_size
import        +25 B  (+0.0%)      +11 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.

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.

@andfinally andfinally changed the title Improve import progress text to use a more informative word than 'res… Imports: Improve import progress text to be more informative Aug 27, 2019
@andfinally andfinally self-assigned this Aug 27, 2019
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.

Looks good to me. Thanks for cleaning this up, I think that wording is much better than "resources". I left one minor change request (use the Oxford comma), but once you make that :shipit:

@@ -179,8 +179,8 @@ class ImportingPane extends React.PureComponent {
}

return this.props.translate(
'Waiting on %(numResources)s resource to import',
'Waiting on %(numResources)s resources to import',
'%(numResources)s post, page or media file left to import',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'%(numResources)s post, page or media file left to import',
'%(numResources)s post, page, or media file left to import',

'Waiting on %(numResources)s resource to import',
'Waiting on %(numResources)s resources to import',
'%(numResources)s post, page or media file left to import',
'%(numResources)s posts, pages and media files left to import',
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
'%(numResources)s posts, pages and media files left to import',
'%(numResources)s posts, pages, and media files left to import',

@andfinally andfinally requested review from a team as code owners August 27, 2019 16:19
@andfinally andfinally force-pushed the fix/import-progress-resource-wording branch from 30e652b to 2a27eac Compare August 27, 2019 16:32
@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 Aug 28, 2019
@andfinally andfinally merged commit 25ec4f6 into master Aug 28, 2019
@andfinally andfinally deleted the fix/import-progress-resource-wording branch August 28, 2019 10:02
@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 Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants