-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD for payment 2024-08-26][$250] Desktop - Wallet - "Complete Process in Browser" link is not redirecting on Desktop app #47116
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
Comments
Triggered auto assignment to @adelekennedy ( |
We think that this bug might be related to #wave-collect - Release 1 |
@adelekennedy 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 |
Edited by proposal-police: This proposal was edited at 2024-08-12 14:50:05 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Enable payment to complete process in browser link on Desktop app is not opening the URL in a browser What is the root cause of that problem?The href value in here is "https://staging.new.expensify.com/settings/wallet/enable-payments" which is exactly the same page as the current page in the desktop app
Since the link is internal expensify path and also has same origin with the desktop app, this code will executed which is navigated to the current page. So it appears that no redirection is occurring Lines 167 to 174 in 4ef1202
What changes do you think we should make in order to solve the problem?use
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.No redirect occurs on desktop for this area (If you do the same thing on VBA flow, the redirect does occur, this issue is specific to the wallet section) What is the root cause of that problem?
I tested and the redirect link still works but the user doesn't auto login in browser Screen.Recording.2024-08-09.at.14.24.32.movThe problem is the href is the new Expensify URL that doesn't contain the token param then it simply opens the URL without logging in
What changes do you think we should make in order to solve the problem?We fixed the same bug in
We can use the same solution here
What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~01660f526bffd95298 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ntdiary ( |
Putting wallet in vip-split for P2P, issue says VBBA is fine. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Desktop - Wallet - "Complete Process in Browser" link is not redirecting on Desktop app What is the root cause of that problem?I can only reproduce it in the staging build, but it works fine in dev. Currently, we utilize What changes do you think we should make in order to solve the problem?Use electron specific ways to open an external link (shell.openExternal() In ipcMain.on(ELECTRON_EVENTS.OPEN_EXTERNAL_LINK, (event, url) => {
shell.openExternal(url);
}); create new desktop specific code src/libs/asyncOpenURL/index.desktop.ts import Log from '@libs/Log';
import type AsyncOpenURL from './types';
import ELECTRON_EVENTS from '@desktop/ELECTRON_EVENTS';
const asyncOpenURL: AsyncOpenURL = (promise, url) => {
if (!url) {
return;
}
promise
.then((params) => {
window.electron.send(ELECTRON_EVENTS.OPEN_EXTERNAL_LINK, typeof url === 'string' ? url : url(params));
})
.catch(() => {
Log.warn('[asyncOpenURL] error occured while opening URL', {url});
});
};
export default asyncOpenURL; What alternative solutions did you explore? (Optional) |
Under review. :) |
This issue can be reproduced in the production environment. @nyomanjyotisa, can you please update your RCA so we can move forward with your proposal? |
RCA and the first part of the proposal updated @ntdiary |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Proposal LGTM! |
Hi, @nyomanjyotisa, do you have an ETA for the PR? :) |
PR is ready for review |
PR was deployed to prod on Aug 19 |
Hi, @adelekennedy, when you have a moment, can you please make a payment summary here? 🙂 |
Yes! I'm so sorry Payouts due:
Upwork job is here. |
$250 approved for @ntdiary |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: Y
The issue was found when executing this PR #46380
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
User expects to be redirected to Safari browser
Actual Result:
No redirect occurs on desktop for this area (If you do the same thing on VBA flow, the redirect does occur, this issue is specific to the wallet section)
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6565203_1723086492226.No_redirect.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: