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 boilerplate code for the new domain list #57188

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

hambai
Copy link
Contributor

@hambai hambai commented Oct 20, 2021

Changes proposed in this Pull Request

  • Copy the existing domain management List component into a new one called SiteDomains
  • Extract some of the code into a separate component called DomainsTable
  • Created DomainsTableHeader that'll be the base of the domains list header
  • Added a few TODO items

Testing instructions

  • Open up the site domain list with the feature flag enabled - it should work mostly as it was before with the slight change that there is a header and the background of the page is white

It should look like this
Screenshot 2021-10-20 at 16 18 12
:

@hambai hambai added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Feature Group] Emails & Domains Features related to email integrations and domain management. labels Oct 20, 2021
@hambai hambai requested a review from a team October 20, 2021 13:30
@hambai hambai self-assigned this Oct 20, 2021
@github-actions
Copy link

github-actions bot commented Oct 20, 2021

@matticbot
Copy link
Contributor

matticbot commented Oct 20, 2021

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

Sections (~1865 bytes added 📈 [gzipped])

name     parsed_size           gzip_size
domains      +8418 B  (+0.6%)    +1865 B  (+0.5%)

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

@leonardost leonardost left a comment

Choose a reason for hiding this comment

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

LGTM! Thank you for doing this 🙇‍♂️

@hambai hambai merged commit 7f89783 into trunk Oct 20, 2021
@hambai hambai deleted the add/domain-list-redesign-boilerplate branch October 20, 2021 14:12
@github-actions github-actions bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Oct 20, 2021
@a8ci18n
Copy link

a8ci18n commented Oct 20, 2021

This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/6858930

Thank you @hambai for including a screenshot in the description! This is really helpful for our translators.

leonardost added a commit that referenced this pull request Oct 20, 2021
leonardost added a commit that referenced this pull request Oct 20, 2021
leonardost added a commit that referenced this pull request Oct 26, 2021
Changes proposed in this Pull Request:

This PR adds the breadcrumbs section for the new domain management list page. This is part of the domain management pages redesign described in pcYYhz-m2-p2.

Testing instructions:

Access the live Calypso link, go to "Upgrades > Domains", and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the breadcrumbs as shown in the screenshot above and that all links work as expected. The page still contains only the breadcrumbs.

This PR depends on #57038.

Commits:

* Create breadcrumbs for the domains management list page

I 'll rename `list-new` to something more meaningful before finishing
this PR. (sorry @hambai!)

* Move files from `list-new` folder to `list`

* Rename import of new List component

* Remove unnecessary DomainActionsButton component, reuse AddDomainButton

* Add white background CSS class to body

* Rebase on #57188

* Add icons to the "Add a domain" button

* Make Breadcrumbs span the entire allowed width in desktop view

* Add code that should make Breadcrumbs stick top the top of the page

* Make first breadcrumb item bold in mobile view

* Make string translatable

* Update mobile view buttons to reduce used layout space
leonardost added a commit that referenced this pull request Oct 27, 2021
leonardost added a commit that referenced this pull request Oct 27, 2021
Changes proposed in this Pull Request:

This PR depends on #57111 for the white background CSS class. This is part of the domain managements page redesign project, detailed in pcYYhz-m2-p2.

This PR redesigns the free WPCOM address component which is located at the bottom of the domain management list page. It's main updates were the addition of a background and replacing the popover menu button with an ellipsis menu.

Testing instructions:

Access the live Calypso link, go to "Upgrades > domains" and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the free WordPress address component and it looks like the screenshots above.

Commits:

* Add redesigned free WPCOM address component

* Adjust mobile view CSS

* Replace component background color with variable and make page background white

* Move free domain item component to `list` folder

* Rebase on #57188

* Fix styling issues as per design review

* Replace gridicons with Gutenberg icons

* Change horizontal ellipsis by vertical ellipsis

* Update `EllipsisMenu` docs

* Remove duplicated `icon` const
leonardost added a commit that referenced this pull request Oct 28, 2021
Changes proposed in this Pull Request:

This PR adds the breadcrumbs section for the new domain management list page. This is part of the domain management pages redesign described in pcYYhz-m2-p2.

Testing instructions:

Access the live Calypso link, go to "Upgrades > Domains", and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the breadcrumbs as shown in the screenshot above and that all links work as expected. The page still contains only the breadcrumbs.

This PR depends on #57038.

Commits:

* Create breadcrumbs for the domains management list page

I 'll rename `list-new` to something more meaningful before finishing
this PR. (sorry @hambai!)

* Move files from `list-new` folder to `list`

* Rename import of new List component

* Remove unnecessary DomainActionsButton component, reuse AddDomainButton

* Add white background CSS class to body

* Rebase on #57188

* Add icons to the "Add a domain" button

* Make Breadcrumbs span the entire allowed width in desktop view

* Add code that should make Breadcrumbs stick top the top of the page

* Make first breadcrumb item bold in mobile view

* Make string translatable

* Update mobile view buttons to reduce used layout space
@a8ci18n
Copy link

a8ci18n commented Oct 28, 2021

Translation for this Pull Request has now been finished.

leonardost added a commit that referenced this pull request Oct 29, 2021
Changes proposed in this Pull Request:

This PR adds the breadcrumbs section for the new domain management list page. This is part of the domain management pages redesign described in pcYYhz-m2-p2.

Testing instructions:

Access the live Calypso link, go to "Upgrades > Domains", and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the breadcrumbs as shown in the screenshot above and that all links work as expected. The page still contains only the breadcrumbs.

This PR depends on #57038.

Commits:

* Create breadcrumbs for the domains management list page

I 'll rename `list-new` to something more meaningful before finishing
this PR. (sorry @hambai!)

* Move files from `list-new` folder to `list`

* Rename import of new List component

* Remove unnecessary DomainActionsButton component, reuse AddDomainButton

* Add white background CSS class to body

* Rebase on #57188

* Add icons to the "Add a domain" button

* Make Breadcrumbs span the entire allowed width in desktop view

* Add code that should make Breadcrumbs stick top the top of the page

* Make first breadcrumb item bold in mobile view

* Make string translatable

* Update mobile view buttons to reduce used layout space
leonardost added a commit that referenced this pull request Oct 29, 2021
Changes proposed in this Pull Request:

This PR adds the breadcrumbs section for the new domain management list page. This is part of the domain management pages redesign described in pcYYhz-m2-p2.

Note: This update was done initially in PR #57082 which had to be reverted because the popover for the "Add a domain" button was being shown incorrectly (see issue #57368). That happened because two different components (desktop and mobile buttons) were using the same reference. This was corrected now.

Testing instructions:

Access the live Calypso link, go to "Upgrades > Domains", and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the breadcrumbs as shown in the screenshot above and that all buttons work as expected. Please also check the page in mobile view.

Commits:

* Domains: Add domains management list breadcrumbs (#57082)

* Create breadcrumbs for the domains management list page

* Move files from `list-new` folder to `list`

* Rename import of new List component

* Remove unnecessary DomainActionsButton component, reuse AddDomainButton

* Add white background CSS class to body

* Rebase on #57188

* Add icons to the "Add a domain" button

* Make Breadcrumbs span the entire allowed width in desktop view

* Add code that should make Breadcrumbs stick top the top of the page

* Make first breadcrumb item bold in mobile view

* Make string translatable

* Update mobile view buttons to reduce used layout space

* Replace some GridIcons by WordPress.com icons

* Fix popover location and improve code readability

* Fix styling for mobile view

* Remove old domain management title information

* Replace ellipsis icon by `moreVertical` and fix some small layout issues

* Add missing `translate` declaration
nelsonec87 pushed a commit that referenced this pull request Dec 9, 2021
Changes proposed in this Pull Request:

This PR adds the breadcrumbs section for the new domain management list page. This is part of the domain management pages redesign described in pcYYhz-m2-p2.

Note: This update was done initially in PR #57082 which had to be reverted because the popover for the "Add a domain" button was being shown incorrectly (see issue #57368). That happened because two different components (desktop and mobile buttons) were using the same reference. This was corrected now.

Testing instructions:

Access the live Calypso link, go to "Upgrades > Domains", and append this feature flag to your browser's URL: ?flags=domains/management-list-redesign. Ensure the page contains the breadcrumbs as shown in the screenshot above and that all buttons work as expected. Please also check the page in mobile view.

Commits:

* Domains: Add domains management list breadcrumbs (#57082)

* Create breadcrumbs for the domains management list page

* Move files from `list-new` folder to `list`

* Rename import of new List component

* Remove unnecessary DomainActionsButton component, reuse AddDomainButton

* Add white background CSS class to body

* Rebase on #57188

* Add icons to the "Add a domain" button

* Make Breadcrumbs span the entire allowed width in desktop view

* Add code that should make Breadcrumbs stick top the top of the page

* Make first breadcrumb item bold in mobile view

* Make string translatable

* Update mobile view buttons to reduce used layout space

* Replace some GridIcons by WordPress.com icons

* Fix popover location and improve code readability

* Fix styling for mobile view

* Remove old domain management title information

* Replace ellipsis icon by `moreVertical` and fix some small layout issues

* Add missing `translate` declaration
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.

4 participants