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

Domains: Usability fixes for the edit domain contact screens #39534

Merged
merged 2 commits into from
Feb 20, 2020

Conversation

hambai
Copy link
Contributor

@hambai hambai commented Feb 19, 2020

Changes proposed in this Pull Request

  • Remove the "Domain Contacts" card title.
  • Add a new paragraph of copy that reads "Your domain contact information"
  • Remove the contact information title above the contact information.
  • Move the Privacy protection toggle under the contact information (Make sure there's some space between the two).
  • Edit the help text so that it only reads "Learn more about private registration and GDPR protection."
  • Add a space between the edit contact info and the card like on our other screens.
  • Move the "Domain owners are required to provide correct contact information." copy to the edit contact info screen

Contacts and Privacy (before):

Screenshot 2020-02-19 at 11 29 57

Contacts and Privacy (after):

Screenshot 2020-02-19 at 11 30 02

Edit Contact Info (before):

Screenshot 2020-02-19 at 11 30 22

Edit Contact Info (after):

Screenshot 2020-02-19 at 11 30 27

Testing instructions

  • Open Contacts and Privacy and Edit Contact Info and verify that things are showing properly. Also check that everything is still working as expected - enable/disable privacy and etc.

@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 Feb 19, 2020
@hambai hambai requested review from fditrapani and a team February 19, 2020 09:42
@hambai hambai self-assigned this Feb 19, 2020
@matticbot
Copy link
Contributor

@@ -135,27 +134,23 @@ class ContactsPrivacyCard extends React.Component {

return (
<div>
<SectionHeader label={ translate( 'Domain Contacts' ) } />
<Card className="contacts-privacy__card">
<p>{ translate( 'Your domain contact information' ) }</p>
Copy link

Choose a reason for hiding this comment

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

ℹ️ String reuse speeds up translation and improves consistency. The following string might make a good alternative and has already been translated 34 times:
translate( 'Domain Contact Information' ) ES Score: 7
See 1 additional suggestions in the PR translation status page

@matticbot
Copy link
Contributor

matticbot commented Feb 19, 2020

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

Sections (~9 bytes removed 📉 [gzipped])

name     parsed_size           gzip_size
domains       +237 B  (+0.0%)       -9 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.

Copy link
Contributor

@klimeryk klimeryk left a comment

Choose a reason for hiding this comment

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

Tested and LGTM - tried different domains both supporting and not privacy protection on a variety of domain partners.

One thing I'd suggest is that without the gray header, the box the contact details show up in is very hard to distinguish from the white background:

Screenshot 2020-02-19 at 12 32 23

What do you think about setting the background color of the whole box to var( --color-neutral )? Or some other way of making sure this contact block stands out a bit more from the rest of the layout?

Screenshot 2020-02-19 at 12 34 19

@klimeryk klimeryk 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 Feb 19, 2020
Copy link
Contributor

@fditrapani fditrapani left a comment

Choose a reason for hiding this comment

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

I tested this as well and it looks good. I like @klimeryk's suggestion about changing the background colour. That'll differentiate it more from the rest of the content.

@fditrapani
Copy link
Contributor

The update looks great! Thanks for that suggestion @klimeryk! 🚢

@hambai hambai merged commit 34040de into master Feb 20, 2020
@hambai hambai deleted the update/domain-edit-contact-form-usability-fixes branch February 20, 2020 19:52
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