-
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
[VIP][Travel] Open travelDot after accepting terms and conditions #43966
Conversation
// eslint-disable-next-line rulesdir/no-api-side-effects-method | ||
API.makeRequestWithSideEffects(SIDE_EFFECT_REQUEST_COMMANDS.ACCEPT_SPOTNANA_TERMS, {}, {optimisticData}) | ||
.then((response) => (response?.spotnanaToken ? buildTravelDotURL(response.spotnanaToken) : buildTravelDotURL())) | ||
.catch(() => buildTravelDotURL()), |
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.
All error handling will be done in #43780
Right now it'll error on spotnana side.
@jayeshmangwani 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] |
cc @stitesExpensify @danieldoglas : ) |
Not sure if it needs a C+ review. Please let me know if it does. |
Gonna assign @shubham1206agra here if that's okay @jayeshmangwani as he has a lot more context on travel. Also @danieldoglas too for an internal review. |
The TS error is from |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-06-20.at.4.56.59.PM.moviOS: NativeScreen.Recording.2024-06-20.at.5.22.19.PM.moviOS: mWeb SafariScreen.Recording.2024-06-20.at.4.50.38.PM.movMacOS: Chrome / SafariScreen.Recording.2024-06-20.at.4.34.15.PM.movMacOS: DesktopScreen.Recording.2024-06-20.at.5.05.49.PM.mov |
@danieldoglas this can be merged if it looks good to you |
✋ 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/danieldoglas in version: 9.0.2-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.0.3-7 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.5-13 🚀
|
Details
Fixed Issues
$ #43867
PROPOSAL: https://expensify.slack.com/archives/C05S5EV2JTX/p1718718276561529?thread_ts=1718697839.930099&cid=C05S5EV2JTX
Tests
Pre-requisite: Account should be on travel beta.
Travel terms of service not accepted by the account
+
> Book travelTravel terms of service previously accepted by the account
+
> Book travelOffline tests
QA Steps
Same as Tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.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 and/or tagged@Expensify/design
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
Screen.Recording.2024-06-19.at.02.44.27.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-06-19.at.03.00.41.mov
iOS: mWeb Safari
Screen.Recording.2024-06-19.at.03.03.18.mov
Screen.Recording.2024-06-19.at.03.02.42.mov
MacOS: Chrome / Safari
ToS Not accepted
Screen.Recording.2024-06-19.at.01.36.58.mov
ToS accepted
Screen.Recording.2024-06-19.at.01.38.06.mov
MacOS: Desktop
Screen.Recording.2024-06-19.at.03.09.42.mov