Fix bug where 2FA input field is permanently hidden after resetting password - #8801
Conversation
|
Bumping this for review 🙃 |
|
Hi @arosiclair, are you able to review this today please? |
|
@Julesssss Code looks good, but this is my first time reviewing a NewDot PR and I'm a little confused. Am I supposed to checkout this branch and walk through your test steps locally? Or is the checklist just referring to unit tests? |
|
Oh, Hey @arosiclair no problem! Yeah, so for NewDot we should pull and run through the tests locally to as many of the 5 platforms as possible. And yes, the checklist should be run through also (the checklist was introduced to keep a high standard for our contributor's PRs, but it also applies to our internal PRs too). Eventually, you'll be able to exclude the tests which aren't relevant and it should become a bit easier (for example, I didn't introduce any new components or CSS styles). Let me know if you have any other questions though! Given this is your first one I imagine you'll run into some issues, so I might add an additional reviewer just to help out. |
|
Hey @ctkochan22, I added you as a second reviewer as this is Andrew's first NewDot review. Hope that's cool 🙂 |
arosiclair
left a comment
There was a problem hiding this comment.
Was able to verify on all but couldn't run Android Chrome 👍
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by @sketchydroide in version: 1.1.57-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by @chiragsalian in version: 1.1.57-17 🚀
|
Details
If the user tapped the reset button on the PasswordForm Component after entering a 2FA code, then the 2FA form was being permanently hidden (because we did not previously clear the input form).
Fixed Issues
$ #8798
Tests
A) Verify that the 2FA form is now being reset
B) Verify that no errors appear in the JS console
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followed/** comment above it */displayNamepropertythisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)QA Steps
Please run tests A & B listed above!
Screenshots
Web
Mobile Web
Desktop
Dealing with a build issue...
iOS
Android