-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[No QA] Fix #15965 - Remove desktop app deep link on quit #16650
Conversation
@neil-marcellini @eVoloshchak One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@@ -81,6 +81,8 @@ let downloadedVersion; | |||
// So we track preferredLocale separately via ELECTRON_EVENTS.LOCALE_UPDATED | |||
let preferredLocale = CONST.DEFAULT_LOCALE; | |||
|
|||
const appProtocol = CONST.DEEPLINK_BASE_URL.replace('://', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a scheme in electronBuilder.config.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm... It lies outside of the desktop
directory. I think the file won't get imported correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eVoloshchak Can you please add @neil-marcellini to the assignee list of this PR? I think I accidentally removed his assignment. |
@allroundexperts is this ready for my review? |
@neil-marcellini The PR in general is ready for review. I'm not sure if your review will come after @eVoloshchak has approved this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It tests well and looks good. Awesome! Thank you.
All you @eVoloshchak. Testing should be pretty easy since this is only relevant to Desktop. |
Reviewer Checklist
Screenshots/VideosWebN/AMobile Web - ChromeN/AMobile Web - SafariN/ADesktopScreen.Recording.2023-03-29.at.16.33.07.moviOSN/AAndroidN/A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and tests well
This is affecting only developers, I don't know if QA can run dev version of the app to test this
Thanks for the review @eVoloshchak! |
Cool, good point about the QA. I marked it [No QA] and removed the QA steps from the description. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.2.93-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.93-4 🚀
|
Details
This PR adds a callback to the Electron app when it is about to quit. The callback un-registers the electron app as default protocol client.
Fixed Issues
$ #15965
PROPOSAL: #15965 (comment)
Tests
npm run desktop
.new-expensify://test
.Open with Electron App
.new-expensify://test
in the browser.Open with New Expensify App
.Offline tests
N/A
QA Steps
No QA
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
screen-recording-2023-03-29-at-22207-am_gD3T0xeC.mp4
iOS
Android