-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Conversation
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~11 bytes added 📈 [gzipped])
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. Generated by performance advisor bot at iscalypsofastyet.com. |
There was a problem hiding this 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
@@ -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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'%(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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'%(numResources)s posts, pages and media files left to import', | |
'%(numResources)s posts, pages, and media files left to import', |
30e652b
to
2a27eac
Compare
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
Testing instructions
calypso.live
./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.xxx posts, pages and media files left to import
.