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

Add loading state for the all domain list item component #43864

Conversation

olaseni
Copy link
Contributor

@olaseni olaseni commented Jul 2, 2020

Changes proposed in this Pull Request

  • Adds the isLoadingDomainDetails to denote the loading status for DomainItem components.
  • Uses placeholders for action items while isLoadingDomainDetails is true.

@olaseni olaseni self-assigned this Jul 2, 2020
@matticbot
Copy link
Contributor

@olaseni olaseni requested a review from a team July 2, 2020 12:12
@olaseni olaseni added the [Feature Group] Emails & Domains Features related to email integrations and domain management. label Jul 2, 2020
@matticbot
Copy link
Contributor

matticbot commented Jul 2, 2020

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

Sections (~458 bytes added 📈 [gzipped])

name                    parsed_size           gzip_size
domains                      +896 B  (+0.1%)     +132 B  (+0.1%)
zoninator                     +66 B  (+0.0%)       +7 B  (+0.0%)
wp-super-cache                +66 B  (+0.0%)       +7 B  (+0.0%)
woocommerce                   +66 B  (+0.0%)       +7 B  (+0.0%)
themes                        +66 B  (+0.0%)       +7 B  (+0.0%)
theme                         +66 B  (+0.0%)       +7 B  (+0.0%)
stats                         +66 B  (+0.0%)       +7 B  (+0.0%)
sites                         +66 B  (+0.1%)       +7 B  (+0.0%)
signup                        +66 B  (+0.0%)      +10 B  (+0.0%)
settings-writing              +66 B  (+0.0%)       +7 B  (+0.0%)
settings-security             +66 B  (+0.0%)       +7 B  (+0.0%)
settings-performance          +66 B  (+0.0%)       +7 B  (+0.0%)
settings-jetpack              +66 B  (+0.0%)       +7 B  (+0.0%)
settings-discussion           +66 B  (+0.0%)       +7 B  (+0.0%)
settings                      +66 B  (+0.0%)       +7 B  (+0.0%)
sensei                        +66 B  (+0.1%)       +7 B  (+0.0%)
scan                          +66 B  (+0.0%)       +7 B  (+0.0%)
purchases                     +66 B  (+0.0%)      +10 B  (+0.0%)
preview                       +66 B  (+0.0%)       +7 B  (+0.0%)
posts-custom                  +66 B  (+0.0%)       +7 B  (+0.0%)
posts                         +66 B  (+0.0%)       +7 B  (+0.0%)
post-editor                   +66 B  (+0.0%)       +7 B  (+0.0%)
plugins                       +66 B  (+0.0%)       +7 B  (+0.0%)
plans                         +66 B  (+0.0%)       +5 B  (+0.0%)
people                        +66 B  (+0.0%)       +7 B  (+0.0%)
pages                         +66 B  (+0.0%)       +7 B  (+0.0%)
migrate                       +66 B  (+0.1%)       +7 B  (+0.0%)
media                         +66 B  (+0.0%)       +7 B  (+0.0%)
marketing                     +66 B  (+0.0%)       +7 B  (+0.0%)
jetpack-connect               +66 B  (+0.0%)       +6 B  (+0.0%)
jetpack-cloud-settings        +66 B  (+0.1%)       +7 B  (+0.0%)
import                        +66 B  (+0.0%)       +7 B  (+0.0%)
hosting                       +66 B  (+0.0%)       +7 B  (+0.0%)
home                          +66 B  (+0.0%)       +9 B  (+0.0%)
hello-dolly                   +66 B  (+0.1%)       +7 B  (+0.0%)
gutenberg-editor              +66 B  (+0.0%)       +7 B  (+0.0%)
google-my-business            +66 B  (+0.0%)       +7 B  (+0.0%)
feature-upsell                +66 B  (+0.0%)       +7 B  (+0.0%)
export                        +66 B  (+0.0%)       +7 B  (+0.0%)
email                         +66 B  (+0.0%)       +7 B  (+0.0%)
earn                          +66 B  (+0.0%)       +7 B  (+0.0%)
customize                     +66 B  (+0.0%)       +7 B  (+0.0%)
concierge                     +66 B  (+0.0%)       +7 B  (+0.0%)
comments                      +66 B  (+0.0%)       +7 B  (+0.0%)
checkout                      +66 B  (+0.0%)       +6 B  (+0.0%)
backup                        +66 B  (+0.0%)       +7 B  (+0.0%)
activity                      +66 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 (~9 bytes added 📈 [gzipped])

name                       parsed_size           gzip_size
async-load-reader-sidebar        +66 B  (+0.1%)       +9 B  (+0.1%)

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.

@olaseni olaseni added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Jul 2, 2020
@hambai
Copy link
Contributor

hambai commented Jul 2, 2020

Actually my idea was to also create the actual domain item component render method that should show fading placeholders while the data is loading

@olaseni olaseni force-pushed the add/domains-add-loading-state-for-the-all-domain-list-item-component branch from 43501a2 to 0534bcb Compare July 7, 2020 03:15
@stephanethomas
Copy link
Contributor

Changes look good to me, and work fine. Could you please add testing instructions next time? It took me some time to understand what pieces were changed, and how to access them. I've also found that adding a screenshot to help a lot for reviews.

@stephanethomas stephanethomas added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jul 7, 2020
@olaseni
Copy link
Contributor Author

olaseni commented Jul 7, 2020

Changes look good to me, and work fine. Could you please add testing instructions next time? It took me some time to understand what pieces were changed, and how to access them. I've also found that adding a screenshot to help a lot for reviews.

My bad. The task evolved after the initial review. I should have added the new instructions.

@olaseni olaseni force-pushed the add/domains-add-loading-state-for-the-all-domain-list-item-component branch from 0534bcb to 14a0a6b Compare July 7, 2020 11:28
@olaseni olaseni merged commit 6107a89 into master Jul 7, 2020
@olaseni olaseni deleted the add/domains-add-loading-state-for-the-all-domain-list-item-component branch July 7, 2020 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature Group] Emails & Domains Features related to email integrations and domain management.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants