-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2025-02-04] [$125] mWeb - 2FA - In 2FA magic code page, after refresh briefly error message is displayed #54009
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
Comments
Triggered auto assignment to @OfstadC ( |
Edited by proposal-police: This proposal was edited at 2024-12-12 13:36:14 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.2FA - In 2FA magic code page, after refresh briefly error message is displayed What is the root cause of that problem?When the page is refreshed while there were error previously the error will only be cleared after the server response of the resend validate code requested here App/src/components/ValidateCodeActionModal/index.tsx Lines 44 to 50 in 9603c2f
so it will take a while to get cleared What changes do you think we should make in order to solve the problem?We should clear errors on mount (or unmount/ App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Lines 177 to 185 in 9603c2f
We can do that in BaseValidateCodeForm for more general fix like:
Optionally, we might also similarly clear the error here too so that the error will be cleared immediately instead of waiting for BE response on pressing Alternatively, we can clear the errors on mount or before sendValidateCode here
Despite the claim by the below proposal here is a demo that clearing error on mount approach works well on mobile:2024-12-12.17-44-00.mp4What alternative solutions did you explore? (Optional)We can also consider clearing errors on |
Edited by proposal-police: This proposal was edited at 2025-01-09 02:02:16 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In 2FA magic code page, after refresh briefly error message is displayed What is the root cause of that problem?On reload page we need to wait for API call response to clear the errors What changes do you think we should make in order to solve the problem?Only allows to show error if
We can set App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Line 193 in c2285e6
And then use it in here App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Lines 217 to 218 in c2285e6
App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Line 262 in c2285e6
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
Edited by proposal-police: This proposal was edited at 2024-12-12 16:40:23 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.In 2FA magic code page, after refresh briefly error message is displayed What is the root cause of that problem?We sent an incorrect magic code to the API, which responds with
When refreshing the 2FA page, the What changes do you think we should make in order to solve the problem?The App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Line 74 in 6a5e1fb
Add this code to check validate code valid in const isValidateCodeValid = !!validateCode.trim() || !!ValidationUtils.isValidValidateCode(validateCode); App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Line 262 in 6a5e1fb
To errors={isValidateCodeValid ? validateError : undefined} App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Line 218 in 6a5e1fb
To hasError={!isEmptyObject(isValidateCodeValid ? validateError : undefined)} POCScreen.Recording.2024-12-12.at.23.38.05.movTest branchWhat specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?This is UI bug no need the test What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
I'm currently OoO - but will be back on Tuesday - Reassigning to get the ball rolling, but happy to take back on Tuesday |
Triggered auto assignment to @michaelkwardrop ( |
|
Job added to Upwork: https://www.upwork.com/jobs/~021867646284163514204 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dominictb ( |
@dominictb please attempt reproduction and review the above proposals - thanks! |
Will review tomorrow morning. |
@OfstadC, @dominictb, @michaelkwardrop Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@dominictb lmk if this needs to wait until the new year! 🎄 |
on it now, I'm just stuck on other PR |
@nyomanjyotisa's proposal looks promising. Onyx update is the async action and calling func in did-mount happens after rendering the component. So using But I just wonder:
|
@dominictb are we ready to move forward with @nyomanjyotisa's proposal? |
@michaelkwardrop Yes, let's go with @nyomanjyotisa's proposal |
@michaelkwardrop What do you think? |
@dominictb looks good to me! I agree with the problem/ solution statements, and if the code looks good to you I give this a 🟢 |
I have approved the proposal. Just waiting for @cead22 approval. |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nyomanjyotisa 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
The PR is ready |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.89-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2025-02-04. 🎊 For reference, here are some details about the assignees on this issue:
|
@dominictb @OfstadC / @michaelkwardrop @dominictb The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
@dominictb Please complete BZ checklist prior to payment date 😃 Thanks! |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:Pre-condition: Login with unverified Gmail account 1, Go to settings - security - two-factor authentication Do we agree 👍 or 👎 |
Payment Summary
|
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: V9. 0.75-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
Issue reported by: Applause Internal Team
Device used: Redmi note 10s android 13
App Component: User Settings
Action Performed:
Pre-condition: Login with unverified gmail account
Expected Result:
In 2FA magic code page, after refresh briefly error message must not be displayed.
Actual Result:
In 2FA magic code page, after refresh briefly error message is displayed.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6691899_1733991788664.Screenrecorder-2024-12-12-13-48-04-520.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @OfstadC / @michaelkwardropThe text was updated successfully, but these errors were encountered: