Open switch to expensify classic on the same tab for web#52352
Open switch to expensify classic on the same tab for web#52352chiragsalian merged 3 commits intoExpensify:mainfrom
Conversation
|
@allgandalf 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] |
| @@ -0,0 +1 @@ | |||
| export default false; | |||
There was a problem hiding this comment.
I need to add this so it won't open the expensify classic on the same tab on desktop.
There was a problem hiding this comment.
@bernhardoj shouldn't we use the existing util to check platform, we already use the same approach on the signin page:
App/src/pages/signin/SignInPageLayout/index.tsx
Lines 96 to 99 in e3632a9
There was a problem hiding this comment.
this way we can check if the platform is web and put the condition accordingly
There was a problem hiding this comment.
That's simpler, but I thought we prefer to use platform-specific files.
There was a problem hiding this comment.
I think we shouldn't for current usage, as it only returns true/false on type of platform
There was a problem hiding this comment.
Neat! I will take a look today/tomorrow
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-19.at.11.19.39.AM.movAndroid: mWeb ChromeScreen.Recording.2024-11-19.at.11.20.48.AM.moviOS: NativeScreen.Recording.2024-11-19.at.11.15.25.AM.moviOS: mWeb SafariScreen.Recording.2024-11-19.at.11.16.11.AM.movMacOS: Chrome / SafariScreen.Recording.2024-11-19.at.11.09.22.AM.movMacOS: DesktopScreen.Recording.2024-11-19.at.11.13.13.AM.mov |
|
✋ 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/chiragsalian in version: 9.0.65-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.65-5 🚀
|
Explanation of Change
Pass the target as self when opening the URL on the web.
Fixed Issues
$ #52225
PROPOSAL: #52225 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4