open Expensify Travel inside webview on native app#63625
open Expensify Travel inside webview on native app#63625AndrewGable merged 7 commits intoExpensify:mainfrom
Conversation
|
How does this look on web/desktop? |
|
|
||
| const openTravel = useCallback(() => { | ||
| if (isTravelEnabled) { | ||
| if (getPlatform() === CONST.PLATFORM.IOS || getPlatform() === CONST.PLATFORM.ANDROID) { |
There was a problem hiding this comment.
I think we want to avoid these type of checks
There was a problem hiding this comment.
There was a problem hiding this comment.
Please see the section titled Cross Platform 99.9999% in the README.md
Suggested HelpDot changes for this PRDetailsThe articles currently do not mention the new behavior of the Expensify Travel site opening inside the app on mobile devices, which is important for users to understand the updated user experience.Article: new-expensify/travel/Book-with-Expensify-TravelEdit 1:
After:
Article: new-expensify/travel/Track-Travel-AnalyticsEdit 2:
After:
Article: new-expensify/travel/Edit-or-cancel-travel-arrangementsEdit 3:
After:
Article: new-expensify/travel/Approve-travel-expensesEdit 4:
After:
Please review the suggested changes and apply them if necessary. |
|
It's ready for review again @c3024 @AndrewGable |
|
Thanks for applying feedback! Let me know when this is ready for our review @c3024 |
| Navigation.navigate(ROUTES.TRAVEL_MY_TRIPS); | ||
| }) | ||
| ?.catch(() => { | ||
| Navigation.navigate(ROUTES.TRAVEL_MY_TRIPS); |
There was a problem hiding this comment.
We have error messages in the rejections of the Promise of getTravelDotLink. Perhaps, we can log them here.
There was a problem hiding this comment.
@dukenv0307 - Thoughts here? Would they be helpful to log here?
There was a problem hiding this comment.
Thank you @c3024 @AndrewGable. I updated
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppspontanaAndroid.movAndroid: mWeb ChromespontanaAndroidmWeb.moviOS: HybridAppspontanaiOS.moviOS: mWeb SafarispontanaiOSmWeb.movMacOS: Chrome / SafarispontanaChrome.movMacOS: DesktopspontanaDesktop.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/AndrewGable in version: 9.1.67-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.1.67-2 🚀
|
Explanation of Change
Fixed Issues
$ #61733
PROPOSAL: #61733 (comment)
Tests
On mobile apps:
You should be brought to travel.expensify.com inside of a webview in the New Expensify app
On other platforms:
You should be brought to travel.expensify.com in a new browser tab
Offline tests
Same as above
QA Steps
Same as above
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
Screen.Recording.2025-06-09.at.14.51.56.mov
Android: mWeb Chrome
Screen.Recording.2025-06-09.at.15.00.21.mov
iOS: Native
iOS: mWeb Safari
Screen.Recording.2025-06-09.at.14.59.06.mov
MacOS: Chrome / Safari
Screen.Recording.2025-06-09.at.14.55.57.mov
MacOS: Desktop
Screen.Recording.2025-06-09.at.15.02.58.mov