-
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
[HOLD for payment 2024-06-28] [HOLD for payment 2024-06-24] [$500] [Guided Setup] Refreshing the page with the onboarding flow closes it and never shows it again #43561
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01b7cc757137685065 |
Triggered auto assignment to @johncschuster ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Upwork job price has been updated to $500 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Refreshing the page with the onboarding flow closes it and never shows it again What is the root cause of that problem?In here we are deem hasCompletedGuidedSetupFlow to be true when its undefined.
here we navigate if hasCompletedGuidedSetupFlow is true App/src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx Lines 31 to 41 in 4d8d46c
What changes do you think we should make in order to solve the problem?we should not default hasCompletedGuidedSetupFlow to true, we need to update selector for
Video: Screen.Recording.2024-06-12.at.6.58.28.PM.movWhat 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. |
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?We implement logic to hide the onboarding modal if users complete it App/src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx Lines 31 to 38 in 4d8d46c
But we set default value for hasCompletedGuidedSetupFlow if the data in ONYX isn't available App/src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx Lines 27 to 29 in 4d8d46c
What changes do you think we should make in order to solve the problem?App/src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx Lines 35 to 40 in 4d8d46c
Here, we'll navigate to the CentralPaneNavigator. Then, I propose implementing a logic to redirect to the onboarding modal if the hasCompletedGuidedSetupFlow is false (after the onyx field is available) Let's add this logic in the BaseCentralPaneNavigator.
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. |
this was a close one @cretadn22 😃 |
We can go with @ishpaul777 's proposal 🎀👀🎀 C+ reviewed |
Current assignee @mountiny is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Both proposal is posted in the same time. @hungvu193 Should we split payment for me and @ishpaul777 and I will create PR for this one? It will be a more harmonious for both. @ishpaul777 What do you think about this suggestion? |
@ishpaul777 if we do your changes, the onboarding flow will show up for old accounts or accounts created in Olddot. They do not have the |
What's its default value for new account? If it's false then we can add an extra condition to handle that case. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I'm having trouble while testing account that was created from old dot. I'll try again in a while... Screen.Recording.2024-06-12.at.22.21.17.mov |
@mountiny sorry for delay. here it says that old accounts have the array for Lines 599 to 600 in 06bdf11
we have this
|
With old account, !Array.isArray(onboarding) is true and onboarding?.hasCompletedGuideSetupFlow will be false if we remove ?? true. |
Ah i got it! then we can just change this condition like below: const [hasCompletedGuidedSetupFlow] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {
selector: (onboarding) => {
if (Array.isArray(onboarding)) {
return true;
}
return onboarding?.hasCompletedGuidedSetupFlow;
}
}); New Account: Screen.Recording.2024-06-12.at.10.08.53.PM.movOld Account: Screen.Recording.2024-06-12.at.10.12.35.PM.mov |
@hungvu193 I have updated my proposal |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@ishpaul777 alright, I think that works, please raise the pr when you can, thanks |
Thanks for assigning Vit, I'll raise a Pr in ~2 hours |
@hungvu193 PR ^ is ready for your review! |
Cool. I'll review it today |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.84-3 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-06-24. 🎊 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:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.85-7 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-06-28. 🎊 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:
|
@hungvu193 / @ishpaul777 can you address the BZ Checklist when you get a moment? Thank you! |
Regression test:
Do we 👍 or 👎 ? |
Payment has been issued. Thanks for your contributions! 🎉 |
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:
Reproducible in staging?:
Reproducible in production?:
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @yuwenmemon
Slack conversation: internal https://expensify.slack.com/archives/C036QM0SLJK/p1718140438433339
Action Performed:
Break down in numbered steps
Expected Result:
Describe what you think should've happened
The onboarding modal is shown until you complete it, you cannot skip it
Actual Result:
Describe what actually happened
The onboarding modal was closed and does not show up again
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Kapture.2024-06-11.at.14.13.17.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @johncschusterThe text was updated successfully, but these errors were encountered: