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
Login - Onboarding modal not displayed for new account creation #35748
Version Number: 1.4.36 Reproducible in staging?: Y Reproducible in production?: N If this was caught during regression testing, add the test name, ID and link from TestRail: Email or phone of affected tester (no customers):applaustester+cknew@applause.expensifail.com Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Applause - Internal Team Slack conversation:
Action Performed:
Navigate to staging.new.expensify.com
Create new account with either gmail or expensifail domain
Expected Result:
Onboarding modal should be displayed for new account creation
Actual Result:
Onboarding modal not displayed for new account creation
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
This works fine for small screen, but for large screen, we have both the bottom tab navigator and central pane navigator (the report screen) on the stack and the central pane navigator is the focused (active) screen.
If we look at the engagement modal PR, we cover both small and large screen cases by checking whether the active route is not a central pane navigator or a HOME.
What changes do you think we should make in order to solve the problem?
Add another case to check whether the active route is not a central pane navigator.
We don't check for HOME because HOME is inside the bottom tab navigator.
What alternative solutions did you explore? (Optional)
Even though the main solution is the approach we have been using before, one downside is that the engagement modal will still show on a report screen on a small-screen device which maybe we actually don't expect. We can obviously add a small screen check, but another way is to move back the engagement modal component (PurposeForUsingExpensifyModal) to SidebarScreen and then we only need to check whether the active route is HOME or not.
if (currentRoute && currentRoute.name !== SCREENS.HOME) {
return;
}
Why do we check for HOME now? Because the sidebar screen is inside the bottom tab navigator and navigation.getState will get the nearest navigator state, in this case, the bottom tab navigator.
Activity
github-actions commentedon Feb 3, 2024
👋 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:
melvin-bot commentedon Feb 3, 2024
Triggered auto assignment to @iwiznia (
Engineering), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.lanitochka17 commentedon Feb 3, 2024
Production:
bernhardoj commentedon Feb 4, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
The engagement modal for new user doesn't show.
What is the root cause of that problem?
If the active route is not a bottom tab navigator, the modal won't show.
App/src/components/PurposeForUsingExpensifyModal.tsx
Lines 99 to 104 in 3ab4e6e
This works fine for small screen, but for large screen, we have both the bottom tab navigator and central pane navigator (the report screen) on the stack and the central pane navigator is the focused (active) screen.
If we look at the engagement modal PR, we cover both small and large screen cases by checking whether the active route is not a central pane navigator or a HOME.
What changes do you think we should make in order to solve the problem?
Add another case to check whether the active route is not a central pane navigator.
We don't check for HOME because HOME is inside the bottom tab navigator.
What alternative solutions did you explore? (Optional)
Even though the main solution is the approach we have been using before, one downside is that the engagement modal will still show on a report screen on a small-screen device which maybe we actually don't expect. We can obviously add a small screen check, but another way is to move back the engagement modal component (PurposeForUsingExpensifyModal) to SidebarScreen and then we only need to check whether the active route is HOME or not.
Why do we check for HOME now? Because the sidebar screen is inside the bottom tab navigator and navigation.getState will get the nearest navigator state, in this case, the bottom tab navigator.
shubham1206agra commentedon Feb 5, 2024
Dupe of #35663
cc @iwiznia @hayata-suenaga
mountiny commentedon Feb 5, 2024
@bernhardoj could you move your proposal over to #35663 that issue came first