-
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
[HOLD for payment 2024-08-19] [$250] Xero - Onboarding modal shows up after refreshing page with 2FA setup prompt #46026
Comments
Triggered auto assignment to @yuwenmemon ( |
👋 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:
|
We think that this bug might be related to #wave-collect - Release 2 |
This is most likely not a backend issue. cc @rushatgabhane. This seems to be mixing your changes with the ones from @filip-solecki and @WojtekBoman. Can you guys have a look, please? |
Either way, sounds like an edge case, going to demote to a daily issue for now. |
Job added to Upwork: https://www.upwork.com/jobs/~0186166f403ad15af9 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Triggered auto assignment to @lschurr ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Onboarding modal shows up along with 2FA setup prompt after logging in and refreshing the page when Xero is connected. What is the root cause of that problem?The root cause of this issue is the missing required Explanation:App/src/libs/Navigation/NavigationRoot.tsx Lines 90 to 121 in 750c34e
In the above code, we are calculating App/src/libs/Navigation/NavigationRoot.tsx Lines 169 to 178 in 750c34e
But the problem here is we are getting incorrect App/src/libs/Navigation/NavigationRoot.tsx Lines 95 to 100 in 750c34e
In the above condition, we should get The reason for getting an incorrect The main reason for not having App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 257 to 264 in 7af1d37
As per the above code, we call the
In the first screenshot, we can clearly notice that the server is responding with an error: when On the other hand, in the second screenshot, when Since there is no App/src/libs/Navigation/NavigationRoot.tsx Lines 86 to 88 in b751d4e
App/src/libs/hasCompletedGuidedSetupFlowSelector.ts Lines 4 to 10 in b751d4e
which will satisfies the below condition and result in opening of onboarding modal along with 2FA setup. App/src/libs/Navigation/NavigationRoot.tsx Lines 97 to 100 in b7dabee
What changes do you think we should make in order to solve the problem?We can achieve the expected results by making changes either on the frontend or the server. This solution focuses on making changes on the frontend: Since there is no availability of App/src/libs/Navigation/NavigationRoot.tsx Lines 95 to 100 in e997502
to
We can get Lines 107 to 114 in 67a3378
What alternative solutions did you explore? (Optional)This solution focuses on making changes on the backend: Solution ConclusionTo address the root cause of the issue, I propose two potential solutions:
By adopting either of these solutions, we can effectively resolve the issue and improve the user experience. Results by making changes on frontend:With.Undefined.movIn the video above, we resolved the issue of the onboarding modal opening during the 2FA setup. However, this introduced a new problem where
This issue is happing in below code: App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 214 to 229 in 1908bd1
In above code we are trying to get the App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 487 to 498 in 1908bd1
Since we do not have any App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 220 to 226 in 1908bd1
Since we keep
Solution for above issue is that we should not keep App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 224 to 226 in 1908bd1
to
This keeps
Fixed.Undefined.mov |
📣 @tushar-a-b! 📣
|
Contributor details |
Thank you for assigning this job to me! I have applied to the Upwork job, and you can expect the PR to be ready for review by 2nd of August. |
@Julesssss I have applied for the job on Upwork but have not been accepted yet. Should I wait for the acceptance before starting to work on the PR, or should I begin working on it now? Additionally, is there a specific template for the PR that I should follow? |
@tushar-a-b You should start to work on the PR. The payment will be handled later (7 days after PR is deployed to prod). You should follow these steps begin-coding-your-solution-in-a-pull-request to start your first pull request (make sure to sign your commits) |
okay got it. |
PR is ready for review |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.18-10 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 2024-08-19. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist:
Regression Test Proposal
|
@fedirjh sounds good to me |
Payment Summary
BugZero Checklist (@lschurr)
|
@tushar-a-b - Offer sent in Upwork (https://www.upwork.com/nx/wm/offer/103591411) |
@lschurr Thank you! I've accepted the offer👍🏻 |
All set - Payment summary is correct: #46026 (comment) |
$250 approved for @fedirjh |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.11-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Precondition:
Expected Result:
Onboarding modal will not show up after refreshing the page
Actual Result:
Onboarding modal shows up after refreshing the page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6550548_1721742752377.20240723_203738.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @lschurrThe text was updated successfully, but these errors were encountered: