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
Domains: Redesigned domain list updates #58980
Conversation
Link to Calypso live: https://calypso.live?image=registry.a8c.com/calypso/app:build-21878 |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: Sections (~19 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. |
@@ -284,7 +284,7 @@ class DomainRow extends PureComponent { | |||
|
|||
return ( | |||
<a href="#" onClick={ this.addEmailClick }> | |||
{ translate( 'Add +', { context: 'Button label' } ) } | |||
{ translate( '+ Add', { context: 'Button label' } ) } |
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.
🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.
Nice work @leonardost and thanks. There is just a strange functionality that happened to me: Hope my explanation is clear :) |
Also @leonardost, really sorry for not noticing this before. |
Thanks for the review @poligilad-auto!
No worries, sure thing! Should the border be removed in mobile view too, like this?
This is weird 🤔 I can't seem to reproduce this in my account, every time I select "All my domains" the same domains appear in my list. Each time you clicked on "All my domains" were you taken to the "All domains" page with the "Owned by me" filter selected? Does this behavior (different domains appearing in the list) occur every time if you follow the same steps? |
I also can not reproduce it.🤯 I still see the border on the banner but I guess you're waiting for the feedback for mobile version, but everything else looks ok to me! 🙂 |
I'll be deploying this PR so we can start preparing to disable the domains list feature flag and launch for customers 🙂 if anything comes up we can address it in a following PR |
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/7032359 Thank you @leonardost for including a screenshot in the description! This is really helpful for our translators. |
Thanks! And yes, exactly.
That's strange.. Yes, it happens every time. It's as if the current site domains are "added" to the "all domains" list when I visit that site. Check it out: Strange.mov |
@poligilad-auto thanks for the recording! And that's so odd 🤔 I've created a card in Asana for us to keep track and investigate that issue further |
Translation for this Pull Request has now been finished. |
In the all domains page we do a `GET /all-domains/` query, which retrieves all the domains for all the sites of a user. So at least the initial domain list render should be quick, because the `all-domans` query is pretty fast even when you have many domains. The weird behavior reported in #58980 (comment) was happening because the `createLightSiteDomainObject` method was not processing the `current_user_is_owner` property - it was only set for domains that were fully loaded before. This PR adds this property and removes the `AllSitesDomains` query that was being done upfront and increased the page's load time.
Changes proposed in this Pull Request
This PR addresses the design review issues pointed out in pcYYhz-pX-p2#comment-388, pcYYhz-pX-p2#comment-389 and pcYYhz-pX-p2#comment-390, which were:
You can compare them with the previous designs:
Testing instructions
?flags=domains/management-list-redesign
to your URL to enable the appropriate feature flagPoints to verify: