-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Verify account - No right side window animation when 2FA setup is dismissed #52339
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to @deetergp ( |
💬 A slack conversation has been started in #expensify-open-source |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
I don't think this is a blocker since it is a new feature and isn't breaking any existing functionality. |
The steps in the OP verify the issue but I'm not sure if this should be a priority. Asking the team. https://expensify.slack.com/archives/C05LX9D6E07/p1731385484769539 |
Edited by proposal-police: This proposal was edited at 2024-11-12 04:57:55 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.No animation when closing the 2fa validate code page. What is the root cause of that problem?The validate code itself is a modal and it will be visible as long as the user is not validated. App/src/pages/settings/Security/TwoFactorAuth/Steps/CodesStep.tsx Lines 164 to 176 in 64cb4ee
When we close the page, the modal stays visible until the 2FA page is closed (by What changes do you think we should make in order to solve the problem?We need to store the modal visibility state to a state.
Then use it as the
And we can update it whenever isUserValidated is updated.
Then, we can set it to false when closing the modal.
|
@deetergp feel free to assign me if you want as I reviewed the offending PR, happy to take over |
@hungvu193 as a C+ on the offending PR, can you please review the proposal here? |
Yeah surre |
ProposalPlease re-state the problem that we are trying to solve in this issue.Animation is not showing when closing two factor authentication modal. What is the root cause of that problem?2FA modal only shows when isUserValidated = false. In case we close the modal without authenticate isUserValidated is always false so it does not animate it. App/src/pages/settings/Security/TwoFactorAuth/Steps/CodesStep.tsx Lines 164 to 167 in 64cb4ee
What changes do you think we should make in order to solve the problem?To fix this problem we need to make sure as long as close event is fire modal will hidden. To fix this we need to introduce new state variable.
And pass state value as props in ValidateCodeActionModal, so once state value set to false modal will be closed.
Replace with
Set showValidateCodeModal to false when we close modal. To make it cleaner extract modal close logic into handler.
Replace with
Update showValidateCodeModal value whenever isUserValidated is changed. We already have useEffect which runs when isUserValidated value changed. So we can use same effect. App/src/pages/settings/Security/TwoFactorAuth/Steps/CodesStep.tsx Lines 55 to 62 in 64cb4ee
Replace with
What alternative solutions did you explore? (Optional)NA |
📣 @ishakakkad! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Just checking in on this, @hungvu193 is there a proposal we're already going with for this fix or are you reviewing these new proposals? |
I'm still reviewing proposals |
@hungvu193 any updates? |
Sorry not yet. I've been a bit under the water today. I'll try to review this weekend |
@ishakakkad Your proposal is a dupe of @bernhardoj proposal. Please checkout our contributing guides here before posting proposal. Ty. Let's go with @bernhardoj 's proposal. 🎀 👀 🎀 C+ reviewed. |
Current assignee @mountiny is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
PR is ready cc: @hungvu193 |
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: 9.0.60-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
There will be animation when Validate your account RHP from 2FA setup is dismissed.
Actual Result:
There is no animation (side window doesn't slide close like on other pages) when Validate your account RHP from 2FA setup is dismissed.
Workaround:
Гтлтщцт
Platforms:
Screenshots/Videos
Bug6661746_1731353635975.20241112_032620.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @mountinyThe text was updated successfully, but these errors were encountered: