-
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
833 refactor the create account form #835
833 refactor the create account form #835
Conversation
This pull request is automatically deployed with Now. Latest deployment for this branch: https://venia-git-fork-vitaliyboyko-pwa-studio-833-refa-305973.magento-research1.now.sh |
@supernova-at - This appears to overlap enough with #913 that one of us would have a terrible conflict resolution ahead of us. Going to mark as hold, and link to #913. |
Good call 👍. I tried to hold off changing much about this page in #913 knowing that this PR was coming. I'll take ownership of it since I was just working in this code. |
} catch (error) { | ||
throw 'An error occurred while looking up this email address.'; | ||
} | ||
}; |
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.
The next version of informed
that we're moving to in #1078 does not support asyncValidators
. We have decided to keep this code around in the hopes that support for it gets added back. Then we can just hook up this code to the UI.
@VitaliyBoyko thanks so much for this! Sorry for the delay; since it has been so long since we looked at this I went ahead and pushed a couple minor commits instead of asking you to change anything. We'll get this reviewed and merged ASAP 😃 |
@supernova-at - Please resolve conflicts with latest mainline and look into the unit test failure reported by Danger. |
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.
Had some naming comments, but looks like most of this was pulled from existing files, so no big deal. LGTM.
Description
PR contains refactoring of createAccount component
Related Issue
Closes #833 [REFACTORING] Refactor the createAccount form
Motivation and Context
In order to follow the principle of least astonishment, I've provided refactoring of createAccount form component, removed hardcoded validation, updated tests.
Screenshots (if appropriate):
Proposed Labels for Change Type/Package
REFACTORING
venia-concept
Checklist: