Description
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: 1.4.31-2
Reproducible in staging?: y
Reproducible in production?: new feature
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: Applause internal team
Slack conversation:
Action Performed:
-
Log out if logged in.
-
Navigate to public room https://staging.new.expensify.com/r/2376199970894587
-
Select any option in the welcome message modal.
Expected Result:
Welcome modal will dismiss and sign-in modal will appear after selecting an option.
Actual Result:
The link changes to sign-in URL, but the welcome modal does not dismiss and the sign-in modal is hidden behind it.
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?
- Android: Native
- Android: mWeb Chrome
- iOS: Native
- iOS: mWeb Safari
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6354272_1706163569570.20240125_113158.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01bdb196958ade050b
- Upwork Job ID: 1752411868444123136
- Last Price Increase: 2024-02-27
- Automatic offers:
- fedirjh | Reviewer | 0
- dukenv0307 | Contributor | 0
Activity
melvin-bot commentedon Jan 25, 2024
Triggered auto assignment to @marcaaron (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jan 25, 2024
Triggered auto assignment to @kevinksullivan (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.github-actions commentedon Jan 25, 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:
aimane-chnaif commentedon Jan 25, 2024
Missing test case from #32154
aimane-chnaif commentedon Jan 25, 2024
What's the expected behavior after opening public link while signed out?
cc: @stitesExpensify
dummy-1111 commentedon Jan 25, 2024
Proposal
Please re-state the problem that we are trying to solve in this issue.
Sign-in modal is hidden behind welcome modal after selecting an option in public room
What is the root cause of that problem?
We have recently introduced full screen engagement modal named PurposeForUsingExpensifyModal
We pass
onPresshandler to the MenuItem hereApp/src/components/PurposeForUsingExpensifyModal.tsx
Line 123 in 0d0b0a8
When selecting an option, we redirect to the sign-in modal if the user is not signed in
App/src/components/MenuItem.tsx
Line 381 in 0d0b0a8
App/src/libs/actions/Session/index.ts
Lines 134 to 139 in 0d0b0a8
So menu item's
onPresshandler isn't executed at all.This is the root cause
What changes do you think we should make in order to solve the problem?
We can listen navigation state and hide the engagement modal if needed
We show this modal on mount here
App/src/components/PurposeForUsingExpensifyModal.tsx
Lines 91 to 101 in 0d0b0a8
We can add navigation listener here
We compare the route's name to determine if we need to hide the modal in the above solution. We can use more optimized or suitable comparison
The solution works as expected
Result
35131.mp4
What alternative solutions did you explore? (Optional)
thienlnam commentedon Jan 25, 2024
Interesting - will wait to let @stitesExpensify chime in. We'll definitely want to fix this soon, though I don't think this needs to block deploy. This relies on engaging with us from a public room and if you dismiss the screen you'll see the sign in screen
98 remaining items
melvin-bot commentedon Mar 11, 2024
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:
melvin-bot commentedon Mar 20, 2024
@kevinksullivan, @marcaaron, @fedirjh, @dukenv0307 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
fedirjh commentedon Mar 25, 2024
BugZero Checklist:
dukenv0307 commentedon Apr 1, 2024
@kevinksullivan The PR was deployed to production 3 weeks ago, could we proceed with payments here?
Thank you!
melvin-bot commentedon Apr 8, 2024
@kevinksullivan, @marcaaron, @fedirjh, @dukenv0307 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
marcaaron commentedon Apr 10, 2024
Bumping this one.
melvin-bot commentedon Apr 10, 2024
@kevinksullivan, @marcaaron, @fedirjh, @dukenv0307 Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
kevinksullivan commentedon Apr 11, 2024
Sorry for the delay here, all set.