-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
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 |
src/libs/ReportUtils.ts
Outdated
@@ -3592,7 +3592,7 @@ function getRouteFromLink(url: string | null): string { | |||
// Get the reportID from URL | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can move this outside of forEach
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.
Updated!
@@ -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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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}))/; |
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.
LGTM
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.1
domain. This PR fixes that.Fixed Issues
$ #28495
PROPOSAL: #28495 (comment)
Tests
CMD+R
or View >> Reload)Offline tests
NA
QA Steps
npm run desktop-build
CMD+R
or View >> Reload)PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
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.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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