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

Separate settings view mode from ContactInformation #1029

Merged
merged 3 commits into from
Sep 30, 2021

Conversation

tomalec
Copy link
Member

@tomalec tomalec commented Sep 29, 2021

⚠ this PR requires #1025

Changes proposed in this Pull Request:

  • Separate settings view mode from ContactInformation
    into two "pages" components, for phone and address settings.
  • Addapt StoreAddressCard's UI to the latest designs.

Implements part of #962 (comment).

Screenshots:

/wp-admin/admin.php?page=wc-admin&path=%2Fgoogle%2Fsetup-mc
image

/wp-admin/admin.php?page=wc-admin&subpath=%2Fedit-phone-number&path=%2Fgoogle%2Fsettings
image

/wp-admin/admin.php?page=wc-admin&subpath=%2Fedit-store-address&path=%2Fgoogle%2Fsettings
image

Detailed test instructions:

Onboarding

  1. Go to the last step of MC setup
  2. See if the UI looks like in the latest Figma designs https://www.figma.com/file/eQ9O4m2flzrcAiDMXkOW0m/Google-Listings-%26-Ads-v1.x?node-id=1595%3A26419
  3. Check if verifying a phone number, and saving the store address works as before

Settings

  1. Go to the GLA settings page

  2. Click Phone number "Edit"

  3. See if the UI looks like in the latest Figma designs

  4. Check if verifying a phone number works as before

  5. Go to the GLA settings page

  6. Click Store address "Edit"

  7. See if the UI looks like in the latest Figma designs

  8. Check if verifying saving the address works as before.

Changelog entry

Update phone number and store address pages flow.

Additional notes:

  • I changed the reload icon to Gutenbergs's "update" for better UI consistency, I hope that's fine.
  • I changed the copy of Phone/Address section descriptions to a tiny bit less redundant:

    Your contact informationphone number is required by Google for verification purposes. It will be shared with the Google Merchant Center and will not be displayed to customers.

into two "pages" components, for phone and address settings.

Implements part of #962 (comment).
@tomalec tomalec self-assigned this Sep 29, 2021
@tomalec tomalec requested a review from a team September 29, 2021 23:31
Copy link
Member

@eason9487 eason9487 left a comment

Choose a reason for hiding this comment

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

Tested locally and works well. LGTM.

Comment on lines +2 to +5
// We could've used `StoreAddressCard'`s selectors,
// but the elements are wrapped with `<FlexItem>`,
// which does not have accessible semantic selector.
// So we have to rely on `<AccountCard>`'s internal implementation details.
Copy link
Member

Choose a reason for hiding this comment

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

💅

What about adding className onto these components?

{ indicator && <FlexItem>{ indicator }</FlexItem> }

Copy link
Member Author

Choose a reason for hiding this comment

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

I proposed that with a bit more structured & generic way in #1030

Base automatically changed from feature/962-separate-settings to develop September 30, 2021 13:31
@tomalec tomalec merged commit 4e8b6c9 into develop Sep 30, 2021
@tomalec tomalec deleted the feature/962-separate-settings-phone branch September 30, 2021 13:36
@eason9487 eason9487 added this to the 1.5 milestone Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants