Add desktop's app://-/ origin to linking prefixes#32158
Conversation
app://-/ origin and 127.0.0.1 to linking prefixesapp://-/ origin to linking prefixes
|
@eVoloshchak Please 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] |
|
@eVoloshchak Can you check? |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2023-12-06.at.22.31.19.movAndroid: mWeb ChromeScreen.Recording.2023-12-06.at.22.30.19.moviOS: NativeScreen.Recording.2023-12-06.at.22.29.33.moviOS: mWeb SafariScreen.Recording.2023-12-06.at.22.29.58.movMacOS: Chrome / SafariScreen.Recording.2023-12-06.at.22.29.05.movMacOS: DesktopScreen.Recording.2023-12-06.at.22.40.11.mov |
| let route = url; | ||
| linkingConfig.prefixes.forEach((prefix) => { | ||
| const localWebAndroidRegEx = /^(http:\/\/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}))/; | ||
| const localWebAndroidRegEx = /^(https:\/\/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}))/; |
There was a problem hiding this comment.
We can move this outside of forEach
| @@ -3592,7 +3592,7 @@ function getRouteFromLink(url: string | null): string { | |||
| // Get the reportID from URL | |||
| let route = url; | |||
There was a problem hiding this comment.
| let route = url; | |
| let route = url; | |
| const localWebAndroidRegEx = /^((https|http):\/\/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}))/; |
|
Have you checked adhoc build links too? If not, please create an ad-hoc build and test here please |
|
That's because the adhoc domain name is not standard and thus not explicitly handled. It's working fine on dev, staging and production domain. |
|
Can you handle this too? |
|
I'm not sure. I'm afraid that it might get out of scope. @eVoloshchak What do you think? |
|
Yeah, I think it's out of scope too |
|
Are we waiting on a review from @johnmlee101 to move this forward? Looks like it. |
|
Yes, still wait for @johnmlee101 to take a look. |
|
✋ 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/johnmlee101 in version: 1.4.12-0 🚀
|
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.4.12-0 🚀
|
|
🚀 Deployed to staging by https://github.com/johnmlee101 in version: 1.4.12-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.12-2 🚀
|
| linkingConfig.prefixes.forEach((prefix) => { | ||
| const localWebAndroidRegEx = /^(http:\/\/([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3}))/; | ||
| if (route.startsWith(prefix)) { |
There was a problem hiding this comment.
Marking for reference
Details
Production desktop app does not parse correct route because it uses
app://-/domain. We have the same problem with local web android onhttps://127.0.0.1domain. This PR fixes that.Fixed Issues
$ #28495
PROPOSAL: #28495 (comment)
Tests
CMD+Ror View >> Reload)Offline tests
NA
QA Steps
npm run desktop-buildCMD+Ror View >> Reload)PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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 */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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
Screen.Recording.2023-11-29.at.11.40.39-compressed.mov
iOS: Native
Screen.Recording.2023-11-29.at.11.24.20-compressed.mov
iOS: mWeb Safari
Screen.Recording.2023-11-29.at.11.25.27-compressed.mov
MacOS: Chrome / Safari
Screen.Recording.2023-11-29.at.11.22.56-compressed.mov
MacOS: Desktop
Screen.Recording.2023-11-29.at.11.54.30-compressed.mov