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

change email validation #352

Merged
merged 9 commits into from
Oct 10, 2018
Merged

change email validation #352

merged 9 commits into from
Oct 10, 2018

Conversation

eoji
Copy link
Contributor

@eoji eoji commented Oct 10, 2018

what did i do!

Switched to horizontal progress bar below toolbar.
No longer crashing when user can't connect to the server.
Added back CustomAdapter for Email because the mutation fails without it.
Added StringUtils. isValidPassword.
Added options menu to ChangeEmailActivity with save button that is enabled/disabled when input is valid or network call is in progress.
Hiding the keyboard when the user clicks save.
Created data class ChangeEmail so the validation is easier to follow in the view model.
Moved the start and end margin to the TextInputLayout instead of the TextInputEditText so the error is left aligned.
Showing error on email input when it loses focus and isn't valid.
Showing error snackbar. (will be restyled in a different PR)
Tests ✨

see

device-2018-10-09-203325 2018-10-09 20_54_50 device-2018-10-09-203412 2018-10-09 20_55_12

@eoji eoji requested a review from Rcureton October 10, 2018 15:23
Copy link
Contributor

@Rcureton Rcureton left a comment

Choose a reason for hiding this comment

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

Amazing work!

@eoji eoji merged commit 86aa602 into master Oct 10, 2018
@eoji eoji deleted the io/change-email-validation branch October 10, 2018 15:50
@eoji
Copy link
Contributor Author

eoji commented Oct 10, 2018

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.

None yet

2 participants