-
Notifications
You must be signed in to change notification settings - Fork 683
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
The Sign In Page and Input Consistency #1169
Conversation
* Affects Sign In page and Forgot Password Page.
* Field component will render the required indicator if the field is required.
* For security reasons, we purposefully provide less informative error messages.
* Refactors User Redux / Action / Reducer for consistency * Updates Sign In page to match the mocks * Updates Create Account page to almost match the mocks. More updates coming in 835. * Splits user sign in and user get details * Updates UserInformation to show a loading message while loading user details * Updates Sign In page to show a loading progress spinner while signing in
This pull request is automatically deployed with Now. |
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.
@supernova-at I ran through the code and everything looks very good. Great work on this. 👍
I'll approve this once I've tested it out locally.
packages/venia-concept/src/components/MyAccountMenuPage/UserInformation/userInformation.js
Outdated
Show resolved
Hide resolved
field="customer.email" | ||
autoComplete="email" | ||
validate={validators.get('email')} | ||
asyncValidate={asyncValidators.get('email')} |
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.
In the event that #1062 gets merged before this PR, we'll have to remove asyncValidate
and any associated code, since informed
v2.x doesn't support it anymore.
Description
This PR:
Input
componentInput
component (Sign In and Create Account page) to use theTextInput
component insteadErrorDisplay
componentErrorDisplay
component (Sign In and Create Account page) to use less descriptive, simple error messages insteadLoadingIndicator
to the Sign In pageuser
store slice for consistency forsignIn
andgetDetails
actionsRelated Issue
Closes #912 .
Verification Steps
The Sign In Page
Get to this page by:
Matches the Mocks
Email is Required
Password is Required
Seeding the Forgot Password Page
Seeding the Create Account Page
Successful Sign In
The Create Account Page
📝 This page doesn't fully match its mock (https://magento.invisionapp.com/share/WQN5F7BYBPG#/screens/320064949) because PR #835 addresses a lot of that work and I didn't want to duplicate effort.
The Forgot Password Page
Signing In and Out
How Have YOU Tested this?
yarn test
Screenshots / Screen Captures (if appropriate):
Proposed Labels for Change Type/Package
I removed two components that are part of our public API. This necessitates a major version change.
Checklist: