-
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
[$250] Fix onboarding modal in macOS Chrome/Safari #53724
Comments
Triggered auto assignment to @slafortune ( |
Job added to Upwork: https://www.upwork.com/jobs/~021865160679237341916 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hungvu193 ( |
Coming from #53326 (comment). I’ll work on this, thanks! |
📣 @Shahidullah-Muffakir You have been assigned to this job! |
@carlosmiceli as per #53284 (comment) and after testing with same steps, the onboarding modal works as expected in staging when signing up through staging.expensify.com, after redirecting to staging.new.expensify.com the onboarding flow modal appears as expected. However, the issue persists in prod. |
Yes, that sounds like a good idea. |
Not overdue. |
@carlosmiceli, @slafortune, @hungvu193, @Shahidullah-Muffakir Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Still discussing details in the PR. |
@Shahidullah-Muffakir is this still occurring? |
@carlosmiceli, @slafortune, @hungvu193, @Shahidullah-Muffakir Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
little bump @Shahidullah-Muffakir |
Yes, still occurring. |
PR will be ready by tomorrow. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Fix onboarding modal in macOS Chrome/Safari. What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?The same way we return App/src/libs/onboardingSelectors.ts Lines 51 to 54 in 1466c02
we should return false in the case of hasCompletedGuidedSetupFlowSelector as well if the onboarding is undefined.as: function hasCompletedGuidedSetupFlowSelector(onboarding: OnyxValue<typeof ONYXKEYS.NVP_ONBOARDING>): boolean | undefined {
// Onboarding is an empty object for old accounts and accounts migrated from OldDot
if (Array.isArray(onboarding) || isEmptyObject(onboarding)) {
- return true;
+ return false;
}
if (!isEmptyObject(onboarding) && onboarding?.hasCompletedGuidedSetupFlow === undefined) {
- return true;
+ return false;
} @hungvu193 Before making the PR, could you review the changes I proposed, thanks. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?We need to updated these tests as well, to return false instead of true: App/tests/unit/OnboardingSelectorsTest.ts Lines 10 to 22 in 1466c02
|
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. |
@Shahidullah-Muffakir We cannot return false there, its intentional that we do not show the onboarding modal for users that do not have the nvp or of the nvp is an empty object |
Got it. Thanks for confirming |
Lets close this in favour of #54322 |
The onboarding modal seems to have issues being displayed in macOS in Chrome and Safari (conversation, GH comment). Seems like there is an issue with screen size and/or refresh. Please fix it and ensure it's always displayed in all possible platforms. We found this while working on this issue: #53326
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hungvu193The text was updated successfully, but these errors were encountered: