You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-04-17] [$250] iOS - MC page appears briefly, blank recovery codes page when enabling 2FA via Xero option #58245
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v9.1.11-3 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No, reproducible on hybrid only If this was caught during regression testing, add the test name, ID and link from TestRail: Exploratory Email or phone of affected tester (no customers):applausetester+ck311255@applause.expensifail.com Issue reported by: Applause Internal Team Device used: iPhone 16/iOS 18.3.1 App Component: Workspace Settings
Action Performed:
Precondition: Account is not validated before from Security >> 2FA)
Launch Hybrid app on iOS & log in
Create a new Workspace
Go to WS settings >> More Features >> Enable Accounting feature
Go to Accounting page
Select Xero option
Click on Enable 2FA authentication button
Expected Result:
Magic code page should appear for unvalidated account when enabling 2FA via Xero option
Actual Result:
Magic code appears briefly & suddenly blank recovery codes is displayed when enabling 2FA via Xero
I remember we had some issues on iOS where opening a 2nd modal from another modal will fail. In this case, the modal isn't immediately shown after the 1st modal, but I guess it has the same underlying issue.
What changes do you think we should make in order to solve the problem?
So, to solve it, we can apply the same solution, that is to wait until the modal closes first using Modal.close.
changed the title [-]iOS - MC page appears briefly, blank recovery codes page when enabling 2FA via Xero option[/-][+][$250] iOS - MC page appears briefly, blank recovery codes page when enabling 2FA via Xero option[/+]on Mar 17, 2025
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Mar 11, 2025
Triggered auto assignment to @RachCHopkins (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.bernhardoj commentedon Mar 12, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
The validate code modal disappears when we access it from 2FA required modal.
What is the root cause of that problem?
When we don't have 2FA enabled, the 2FA required modal will show.
App/src/components/ConnectToXeroFlow/index.native.tsx
Lines 42 to 47 in 69df56b
When pressing the button, it will navigate to the 2FA page, but also shows a validate code modal if the user isn't validated yet.
App/src/pages/settings/Security/TwoFactorAuth/CopyCodesPage.tsx
Line 55 in 69df56b
I remember we had some issues on iOS where opening a 2nd modal from another modal will fail. In this case, the modal isn't immediately shown after the 1st modal, but I guess it has the same underlying issue.
What changes do you think we should make in order to solve the problem?
So, to solve it, we can apply the same solution, that is to wait until the modal closes first using
Modal.close.App/src/components/ConnectToXeroFlow/index.native.tsx
Lines 42 to 47 in 69df56b
We can optionally do it if the user isn't validated yet, because if the user is already validated, there will be no validate code modal.
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
N/A
RachCHopkins commentedon Mar 17, 2025
Very clear to repro.
[-]iOS - MC page appears briefly, blank recovery codes page when enabling 2FA via Xero option[/-][+][$250] iOS - MC page appears briefly, blank recovery codes page when enabling 2FA via Xero option[/+]melvin-bot commentedon Mar 17, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021901458894316675553
melvin-bot commentedon Mar 17, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)48 remaining items
RachCHopkins commentedon Apr 16, 2025
@rojiphil was this a regression? I'm not sure who needs payment.
Also, do we need a checklist?
melvin-bot commentedon Apr 17, 2025
Payment Summary
Upwork Job
BugZero Checklist (@RachCHopkins)
melvin-bot commentedon Apr 22, 2025
@RachCHopkins Eep! 4 days overdue now. Issues have feelings too...
rojiphil commentedon Apr 22, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Test:
Join)accountingon the workspaceDo we agree 👍 or 👎
rojiphil commentedon Apr 22, 2025
@RachCHopkins There was no regression here and the payment summary here looks correct to me.
BZ checklist is also done. Thanks.
garrettmknight commentedon Apr 22, 2025
Payment Summary
JmillsExpensify commentedon Apr 22, 2025
Payment Summary
garrettmknight commentedon Apr 22, 2025
$250 approved for @rojiphil
bernhardoj commentedon Apr 22, 2025
Requested in ND.
JmillsExpensify commentedon Apr 23, 2025
$250 approved for @bernhardoj