-
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
update get contract method from url when open deep link #28125
update get contract method from url when open deep link #28125
Conversation
@narefyev91 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] |
Reviewer Checklist
Screenshots/VideosWebweb1.movMobile Web - Chromeandroid-web1.movMobile Web - Safariios-web1.movDesktopdesktop1.moviOSios1.movAndroidandroid1.mov |
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!
🎀 👀 🎀 C+ reviewed
friendly bump @pecanoro :-) |
The QA steps seem wrong, don't you have to paste the URL first and then click on it? |
@pecanoro I tried to copy the link and open it on the desktop it is something like this: => but It opens the browser |
Maybe due I'm open on dev. I try to download app staging. We only need to click open the link on the message. I updated step for QA |
@@ -1252,6 +1252,8 @@ const CONST = { | |||
DATE_TIME_FORMAT: /^\d{2}-\d{2} \d{2}:\d{2} [AP]M$/, | |||
ATTACHMENT_ROUTE: /\/r\/(\d*)\/attachment/, | |||
ILLEGAL_FILENAME_CHARACTERS: /\/|<|>|\*|"|:|\?|\\|\|/g, | |||
|
|||
ENCODE_PERCENT_CHARACTER: /%(25)+/g, |
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.
This will match things like %252525
is that correct?
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.
Yes, correct
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.
Hmm, I see why now, a bit of an edge case but why not lol
✋ 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/pecanoro in version: 1.3.76-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.76-6 🚀
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Details
Fixed Issues
$ #27582
PROPOSAL: #27582 (comment)
Tests
Open the app
Open settings->profile->contact method-> add and open any contact method (eg:
nanana@gmail.com
)Copy and paste the URL on any report then press "Enter" depending on the platform.
For apps running in emulators, the following commands can be used:
Android: adb devices to get device ID and adb -s '<INSERT_DEVICE_ID_HERE>' shell am start -W -a android.intent.action.VIEW -d "<INSERT_DEEPLINK_URL_HERE>" (eg:
adb -s emulator-5554 shell am start -W -a android.intent.action.VIEW -d "new-expensify:////settings/profile/contact-methods/nanana%2540gmail.com/details"
)Desktop: Electron: Navigate to the deep link URL from a browser and a popup will appear asking if you want to open it in the desktop app. URL example:
new-expensify:////settings/profile/contact-methods/nanana%2540gmail.com/details
Verify that the contact method is open conrrectly
Offline tests
The same test
QA Steps
nanana@gmail.com
)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
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.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
Web
web.mov
Mobile Web - Chrome
mwb.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov