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

Display error message for phone number length for Log In #156

Merged
merged 49 commits into from
May 17, 2020

Conversation

annieyro
Copy link
Collaborator

@annieyro annieyro commented May 13, 2020

What's new in this PR

  • Display error for phone number length in LogInScreen (but not password)
  • Refactored it to match the other Auth screens with the inputFields enums
  • Cleaned up some of the comments in the relevant files

As in the other auth screens, the error message can only be triggered in onBlur and removed in onTextChange.
The "universal" error for this screen is now kept in state as this.state.errors.submit.

Branches off #148 because there are some auth-related updates there
Resolves #80

How to review

Play around on LogInScreen - you should be able to trigger the error message. Everything else should behave the same as before.

Relevant Links

Related PRs

#48
branches off #148

Next steps

I asked about this in Slack, but we can remove the clearState function from SignUpScreen given that the Updates.reload() call in the logOut functions make sure we never get taken back to the filled-out forms anymore.

Screenshots

image

https://www.loom.com/share/ddc93a72c72e49508157165f97592134

CC: @wangannie

@annieyro annieyro requested a review from wangannie May 13, 2020 09:11
@wangannie wangannie linked an issue May 13, 2020 that may be closed by this pull request
Copy link
Member

@wangannie wangannie left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@wangannie wangannie changed the base branch from kenneth/settings to master May 17, 2020 20:53
@wangannie wangannie merged commit 717edd7 into master May 17, 2020
@wangannie wangannie deleted the annie/login-error branch May 17, 2020 20:57
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.

No error message for incorrect phone number length in Login
3 participants