[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] |
| // 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.
There's also a scheme in electronBuilder.config.js
There was a problem hiding this comment.
Hm... It lies outside of the desktop directory. I think the file won't get imported correctly.
|
@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. |
neil-marcellini
left a comment
There was a problem hiding this comment.
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 |
eVoloshchak
left a comment
There was a problem hiding this comment.
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://testin the browser.Open with New Expensify App.Offline tests
N/A
QA Steps
No QA
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent 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