Closed IuliiaHerets closed 3 weeks ago
Triggered auto assignment to @VictoriaExpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
We think that this bug might be related to #wave-collect - Release 2
@VictoriaExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors
@VictoriaExpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
I've recreated the issue and do agree that it isn't ideal - ideally we would route the user back to the app not web-browser
Job added to Upwork: https://www.upwork.com/jobs/~021838081379137473899
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (External
)
@VictoriaExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
Still waiting for proposals
@VictoriaExpensify Can you post this issue in expert contributors room? Since this issue requires changes in navigation.
๐ฃ It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? ๐ธ
Done! Thanks @shubham1206agra
https://expensify.slack.com/archives/C04878MDF34/p1727775491684449
Hi, I'm Viktoryia from Callstack - expert contributor group - and I would like to work on this issue.
Unfortunately, I have some problems with the Safari browser, which I'm going to resolve within an ~ hour.
But at first glance at the video, it looks like Safari tries to open the desktop app after a successful Xero connection, but due to built in security checks it asks about allowance to open the desktop app.
I'm not sure that we can get rid of this default browser check, but I guess if you once select Always allow it should resolve the issue. And just pressing Allow should also open the desktop app.
You can see the similar security check and similar behaviour in the Google Chrome as well. I needed to allow the desktop app to be opened:
https://github.com/user-attachments/assets/bcbd93d7-00dc-4f84-b8e7-1d6a5c0990e6
I was able to get the same behavior in the Safari, and as I mentioned above - pressing Allow opens the desktop app. But I'm not sure that the expected screen is opened on the desktop.
https://github.com/user-attachments/assets/ad735e51-77aa-4812-a2bd-a192d5f32c31
@VictoriaExpensify Could you confirm what screen should be opened after navigating to the desktop app?
@VictoriaExpensify @shubham1206agra this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
@shubham1206agra Could you please take a look at my messages above and let me know what you think?
@VickyStash I think /connection-complete
should be on full screen (not exposing the LHN) and it should not give the prompt for desktop app.
@VickyStash I think /connection-complete should be on full screen (not exposing the LHN) and it should not give the prompt for desktop app.
Just to confirm the expected behaviour @shubham1206agra @VictoriaExpensify :
User click on the "Connect" button next to Xero in the Desktop app
User connects to the Xero and in the web browser sees the fullscreen /connection-complete
screen.
User manually goes back to the desktop app. The app isn't opened automatically and the browser doesn't give the prompt for desktop app.
Yes, this is expected flow.
I've also found the Connection Page PR and it describes the same flow as mentioned above. Btw it works as expected now if user is not authorized in the web version:
https://github.com/user-attachments/assets/ab5545bd-6d25-4405-a7a4-7b95e1b50f3f
So I need to fix it when the user is authorized on the web.
If the user connects to Xero from the desktop and logged into the app on web, after connection:
But the Connection complete screen should be on full screen (not exposing the LHN) and it should not give the prompt for the desktop app.
options
to SCREENS.CONNECTION_COMPLETE
screen.Update the check inside the DeeplinkWrapper
to check for the connection complete route and don't navigate the user to the desktop app if the user is on this page.
const isConnectionCompleteRoute = window.location.pathname.replace('/', '') === ROUTES.CONNECTION_COMPLETE;
Update options passed to SCREENS.CONNECTION_COMPLETE to screenOptions.fullScreen
https://github.com/Expensify/App/blob/9627f5f8da6542b42a7f2eb9125dc82eea083740/src/libs/Navigation/AppNavigator/AuthScreens.tsx#L562-L566
Lets go with @VickyStash's proposal
๐๐๐ C+ reviewed
Triggered auto assignment to @AndrewGable, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
I've prepared the PR for the review. But there is a problem with eslint check in one of the files wich requires to get rid of withOnyx
usage. At the same time useOnyx
usage causing regression, more details can be found here: https://github.com/Expensify/App/pull/50071#issuecomment-2389065901.
UPD: There is a separate issue https://github.com/Expensify/App/issues/49103 to migrate AuthScreens
to useOnyx
. So, I think the failing check can be skipped in the PR.
@AndrewGable Please do the assignment here Thanks
๐ฃ @shubham1206agra ๐ An offer has been automatically sent to your Upwork account for the Reviewer role ๐ Thanks for contributing to the Expensify app!
Reviewing
label has been removed, please complete the "BugZero Checklist".
The solution for this issue has been :rocket: deployed to production :rocket: in version 9.0.47-4 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2024-10-17. :confetti_ball:
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:
Hey @shubham1206agra - can you please complete the checklist and I'll process your payment. Thanks!
@AndrewGable, @VickyStash, @VictoriaExpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!
Need to do checklist here
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: Contributor: @VickyStash - Contractor Contributor+: @shubham1206agra paid $250 via Upwork
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.36-1 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4971703&group_by=cases:section_id&group_id=309134&group_order=asc Issue reported by: Applause Internal Team
Action Performed:
Precondition: Account has 2FA enabled.
Expected Result:
The app should be opened.
Actual Result:
Expensify opens in web browser (Safari) after logging in with Xero credentials.
Workaround:
Unknown
Platforms:
Screenshots/Videos
https://github.com/user-attachments/assets/c4de9158-7607-4976-b380-661f29caf0fd
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @VictoriaExpensify