-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-09] [$250] Switch to expensify classic button not working on m-web safari #45941
Comments
Triggered auto assignment to @abekkala ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Switch to expensify classic button not working on m-web safari What is the root cause of that problem?The root cause of the issue is that the App/src/libs/asyncOpenURL/index.ts Lines 4 to 12 in 38cddee
What changes do you think we should make in order to solve the problem?To address the issue, the following changes are proposed:
Update this code to the following
RESULT Switch-to-expensify-classic-button-not-working-on-m-web-safari-.-Issue-45941-.-Expensify-App.mp4What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Switch to expensify classic doesn't work in mWeb Safari. What is the root cause of that problem?Pressing the switch to expensify classic button will do an API request and will try to open the old dot link after the promise is resolved. App/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx Lines 86 to 94 in 38cddee
However, opening a link/new tab inside a promise doesn't work on mWeb Safari. We previously had this kind of issue at #3615 which we fix it by opening a new window first then wait for the promise to complete. App/src/libs/asyncOpenURL/index.website.ts Lines 13 to 28 in 38cddee
The issue is that in mWeb Safari, opening a new tab/link requires a user gesture, and putting it inside a promise won't be considered a user gesture anymore. What changes do you think we should make in order to solve the problem?Call App/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx Lines 86 to 94 in 38cddee
If we only do it in safari, then pressing the Switch to expensify classic will immediately open the new window, while for other platforms, we will wait until the loading is complete. What alternative solutions did you explore? (Optional)The main solution will open the window and set the old link link as the url to the window without waiting the
Lines 63 to 70 in 8e4dc0f
|
Job added to Upwork: https://www.upwork.com/jobs/~01550410ab679e7457 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
After reviewing both proposals, we can move forward with @bernhardoj's proposal here since the solution follows a pattern that already exists in the codebase. 🎀👀🎀 C+ reviewed. |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @akinwale 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
Not overdue |
PR is ready cc: @akinwale |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.15-9 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-09. 🎊 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:
|
PAYMENT SUMMARY FOR AUG 09, if no regressions
|
Not a regression.
Regression Test Steps
Do we agree 👍 or 👎? |
Requested in ND. |
@akinwale payment sent and contract ended - thank you! 🎉 Thank you @bernhardoj Closing |
$250 approved for @bernhardoj |
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.10-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @ishpaul777
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721668187994169
Action Performed:
Expected Result:
User is redirected to olddot
Actual Result:
User is not redirected to olddot and button nonfunctional
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-07-22.at.8.51.47.PM.mov
RPReplay_Final1721677493.MP4
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @abekkalaThe text was updated successfully, but these errors were encountered: