-
Notifications
You must be signed in to change notification settings - Fork 58
feat: add confirm password field and show passwords feature to change password popUp #92
Conversation
@bharat-1809 can you attach a video showing how the new change password dialog works now? |
Sure |
Please try to attach a gif next time onwards :) |
Sure😅 |
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.
looks good, thank you🎉
The confirm password and show password features work as expected, but due to a prior bad merge, the change password dialog box dosen't respond correctly and the snackbar isn't showed. (BuildContext error). #83 fixes this. So lets merge this PR after that to confirm if the whole change password function works. Thanks for your work @bharat-1809 |
Okay cool, thanks😃 |
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.
Nice!
Update[1]
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.
@bharat-1809 we follow a theme in our app, where if you click to show one of the show passsword eye icons all the fields show the password, can you do the same in the change password dialog window fields? Thank you
Yeah sure, I'll definitely do it. I have a little doubt, whether the eye icon will be displayed on all the fields or only one on the topmost field? |
on all fields :) |
@techno-disaster I have made the required changes please have a look. Here's a gif of the same: |
@bartekpacia Is that review dismissal automatic? because I didn't do it. 😅 |
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.
I have already tested this PR here --> #92 (review)
so, LGTM 🎉 thanks for your contribution @bharat-1809 👍
ALSO, please check/mark that "I have used the Flutter Beta channel on my local machine" section in the description of this PR .
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.
Fix merge conflict
8811497
Its done. @techno-disaster please have a look :) |
Can someone from @anitab-org/qa-team give this a test? it was tested before but to confirm nothing broke after the merging the conflict can someone give this another check? Thank You |
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 changes made in this PR were tested locally. Following are the results:
Code review - Done By @techno-disaster
All possible responses (positive and negative tests) were tested as below:
Tested confirm password field , its validation with show passwords feature to change password popUp:
Screenshot/gif:
- Allow updating the password even when new password is not matching with confirm password :
- Not Showing missing confirm password field message even if its empty :
Expected Result :
- When we write a password in confirm password field then it should match with the new password field.
- if left empty, it should reflect it as a missing field and should not allow to update the password until it gets all the field values in the required form.
Actual Result :
- It is not correctly validating as it still allows the change in password even when both new & confirm password fields are not matching.
- Also, not showing any missing field error/popup even when confirm password field is empty
Additional testcases covered: N/A
Additional Comments: @bharat-1809 You need to make changes in your code and see , where the validation condition is breaking as both of the failed tests were only due to breaking validation case.
Status of PR : Changes Requested
Android Version: 10.0, Device: Android Emulator Pixel 3 XL API 29
@anitab-org/maintainers Please have a look. The validation errors have been fixed |
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.
Now its working as --->
- Showing missing password field -->
- Also, shows appropriate validation message when passwords don't match -->
Great job 👍 @bharat-1809
@techno-disaster @bartekpacia as code owners can you review this please? |
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.
LGTM
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.
Thank you for your contribution @bharat-1809 👏 🎉
Description
Add confirm password field with validation and toggle password visibility button on the change password popUp
Fixes #76
Flutter Channel:
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Physical Device
Steps:
Checklist:
Delete irrelevant options.
Code/Quality Assurance Only