-
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
Load map when image is not loaded in Money Request view for distance request #34133
Conversation
@trjExpensify I am unable to pass these perf-test even after adding mock for ConfirmedRoute. I am not that proficient in jest test. Can you get someone to help in this? This has been a blocker in completing the PR for review. |
@trjExpensify This is now fixed. I will prepare this PR for review in few hours. |
@aimane-chnaif 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] |
Sounds good, thanks for keeping us in the loop! |
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.
Please pull main to see if it fixes performance test failure
Lint failing |
@tgolen This requires some more changes in current logic of pulling 3 images in ReportPreview. And we will have very little visual effect when the report reciepts are greater than 3. |
This is minor but maybe considered as bug. Offline distance request with Invalid addresses shows San Fransisco before getting error from backend after online offline.mov |
@aimane-chnaif You can see this comment about invalid waypoints #32405 (comment). Additionally, you can confirm the same behaviour in Request Confirmation View. |
ok, I agree out of scope. Btw it's quick fix if needed. |
@grgia Bump here. |
There's conflict |
Conflicts resolved. |
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.
one quick clarifying question about the test changes, but otherwise LGTM and initial tests pass
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any | ||
function ConfirmedRoute(props: any) { | ||
return <View />; | ||
} |
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.
What's the purpose of this empty view mock?
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.
It's just to pass the UI tests, as Mapbox seems to break the tests.
@grgia Please merge this PR |
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.
Thank you for your patience
🚀 Deployed to staging by https://github.com/grgia in version: 1.4.44-0 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.4.44-13 🚀
|
{hasReceipt && ( | ||
{showMapAsImage && ( | ||
<View style={styles.reportActionItemImages}> | ||
<ConfirmedRoute transaction={transaction} /> |
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.
Coming from #40318, we should've prevented interactivity here to avoid the map being movable whilst still loading.
Details
Fixed Issues
$ #28965
PROPOSAL: #28965 (comment)
Tests
Offline tests
Same as 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 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
Screen.Recording.2024-01-23.at.2.09.32.PM.mov
Android: mWeb Chrome
Screen.Recording.2024-01-23.at.1.21.32.PM.mov
iOS: Native
Screen.Recording.2024-01-23.at.2.09.32.PM.mov
iOS: mWeb Safari
Screen.Recording.2024-01-23.at.1.10.01.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2024-01-23.at.12.42.19.PM.mp4
MacOS: Desktop
Screen.Recording.2024-01-23.at.1.32.08.PM.mov