-
Notifications
You must be signed in to change notification settings - Fork 3k
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
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 🙂 |
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.
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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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