Repository navigation
Add support for redirecting user to a target URL when they click on the magic link code - #36390
Conversation
…am) when they click on the magic link code
|
@allroundexperts 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/VideosAndroid: NativeScreen.Recording.2024-02-14.at.12.35.32.PM.movAndroid: mWeb ChromeScreen.Recording.2024-02-14.at.12.33.02.PM.moviOS: NativeScreen.Recording.2024-02-14.at.12.31.31.PM.moviOS: mWeb SafariScreen.Recording.2024-02-14.at.12.30.14.PM.movMacOS: Chrome / SafariScreen.Recording.2024-02-14.at.12.26.23.PM.movMacOS: DesktopScreen.Recording.2024-02-14.at.12.29.00.PM.mov |
allroundexperts
left a comment
There was a problem hiding this comment.
I see a lot of code being repeated. Can you please clean this up a little?
|
Do you have an ETA on when you'll be able to resolve @allroundexperts comments, @rayane-djouah ? Thanks! This is a high priority issue for us 🙇 |
|
I updated the PR based on @allroundexperts comments |
|
Reviewing again now! |
|
Updated |
|
I think this is fine; I don't see much scope of DRYing it up further. @allroundexperts Do you have any thoughts about it? |
|
Updated |
Agreed. Testing this now. |
techievivek
left a comment
There was a problem hiding this comment.
Look so much cleaner with the recent commit, thanks.
|
✋ 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/techievivek in version: 1.4.42-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.42-5 🚀
|
Details
Add support for redirecting user to a target URL when they click on the magic link code
Fixed Issues
$ #36325
PROPOSAL: #36325 (comment)
Tests
Precondition:
Copy the target path (the part after https://dev.new.expensify.com/) of any url from the app
Example:
/settings/profileor/r/1442936292319950?exitTo=valid_target_path_in_newDotexamples:https://dev.new.expensify.com/v/16379227/110480?exitTo=/settings/profile
https://dev.new.expensify.com/v/16379227/110480?exitTo=/r/1442936292319950
npx uri-scheme open new-expensify://v/14826403/497893?exitTo=/settings/preferences --iosnpx uri-scheme open new-expensify://v/14826403/293211?exitTo=/settings/preferences --androidfor desktop paste the link in this format in the web browser:
new-expensify:/v/14826403/818329?exitTo=/settings/preferencesOffline tests
N/A
QA Steps
Precondition:
Copy the target path (the part after https://staging.new.expensify.com/) of any url from the app
Example:
/settings/profileor/r/1442936292319950?exitTo=valid_target_path_in_newDotexamples:https://staging.new.expensify.com/v/16379227/110480?exitTo=/settings/profile
https://staging.new.expensify.com/v/16379227/110480?exitTo=/r/1442936292319950
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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.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.Recording.2024-02-13.115636.mp4
Android: mWeb Chrome
mweb.chrome.Recording.2024-02-13.111846.mp4
iOS: Native
ios.Recording.2024-02-13.141218.mp4
ps: my ios simulator is very slow
iOS: mWeb Safari
mweb.safari.Recording.2024-02-13.135935.mp4
running into issues with my simulator, I'm searching for a solution.
MacOS: Chrome / Safari
web.Recording.2024-02-13.111312.mp4
If the user is not logged in (and initiated the login process on the same browser)
1.Recording.2024-02-13.015036.mp4
If the user is not logged in (and initiated the login process in another browser)
3.Recording.2024-02-13.015229.mp4
If the user is already logged in
2.Recording.2024-02-13.015620.mp4
MacOS: Desktop
desktop.Recording.2024-02-13.114449.mp4