-
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
Set workspace address when attempting to Book Travel #46333
Conversation
@shubham1206agra 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] |
@shubham1206agra all fixed. Thank you for the review and thorough testing On safari, when there is an error the browser opens and closes because on safari we HAVE to open the browser in a sync manner. Or it will be blocked. So it is the best we can do and not a bug d741cff#diff-b517e3500611f44ddf09489a030579e0a63c91d2ccac0ce505c39892911a95a5R27 |
Ready for re-review @shubham1206agra @stitesExpensify |
@rushatgabhane Can you address this? |
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 am approving this right now. Only one minor thing left. But this is urgent to merge.
it's in issue description. confirmed on slack here: https://expensify.enterprise.slack.com/archives/C05S5EV2JTX/p1722374168729919 |
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 great! Just one question and then I will merge
src/libs/asyncOpenURL/index.ts
Outdated
.then((params) => { | ||
Linking.openURL(typeof url === 'string' ? url : url(params)); | ||
}) | ||
.catch(() => {}); |
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.
Why are we doing nothing when we catch an error?
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.
@stitesExpensify we can log an error for server side
Would this message be helpful?
eg: error occurred while trying to open link: {link}
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.
Yeah like that!
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.
If you update that now I'll get it merged today :D
@stitesExpensify done |
✋ 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/stitesExpensify in version: 9.0.17-0 🚀
|
This PR is failing because of issue #46971 Bug6564343_1723032067955.1.1.mp4 |
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
2 similar comments
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.0.17-2 🚀
|
@@ -49,12 +59,22 @@ function ManageTrips() { | |||
ctaText={translate('travel.bookTravel')} | |||
ctaAccessibilityLabel={translate('travel.bookTravel')} | |||
onCtaPress={() => { | |||
if (!hasPolicyAddress) { | |||
Navigation.navigate(ROUTES.WORKSPACE_PROFILE_ADDRESS.getRoute(activePolicyID ?? '-1')); |
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.
Not using backTo
while calling getRoute
caused #47069
Details
Fixed Issues
$ #46313
$ #43780
PROPOSAL:
Tests
Test 1 : Address check
Test 2 : Travel terms and condition
Travel.acceptSpotnanaTerms()
reject the promise.Test 3 : Open travel
Link.openTravelDotLink()
reject the promise.Test 4 : Verify that production is opened unless NVP is present
NVP.TRAVEL_SETTINGS.testAccount
to trueOffline tests
QA Steps
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-07-30.at.23.57.33.mov
Screen.Recording.2024-07-30.at.23.54.15.mov
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-07-30.at.23.54.59.mov
Screen.Recording.2024-07-30.at.23.57.19.mov
iOS: mWeb Safari
Screen.Recording.2024-07-30.at.23.58.16.mov
MacOS: Chrome / Safari
Screen.Recording.2024-07-27.at.01.47.12.mov
Accept spotnana
Screen.Recording.2024-07-27.at.14.21.35.mov
Open Travel
Screen.Recording.2024-07-27.at.14.01.00.mov
MacOS: Desktop