-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 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 |
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.
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 |
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.
Changes look good to me, but the similar lines of code seem to be all over the place. It would be great to DRY up this more so it's easy to understand. Or maybe I am wrong that it can't be DRYed up more.
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. |
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.
Looks good!
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.
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/profile
or/r/1442936292319950
?exitTo=valid_target_path_in_newDot
examples: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 --ios
npx uri-scheme open new-expensify://v/14826403/293211?exitTo=/settings/preferences --android
for desktop paste the link in this format in the web browser:
new-expensify:/v/14826403/818329?exitTo=/settings/preferences
Offline 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/profile
or/r/1442936292319950
?exitTo=valid_target_path_in_newDot
examples: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 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)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.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.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