-
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
Fix receipt preview in confirmation page #40763
Conversation
@cubuspl42 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] |
Looks pretty good from a design perspective. |
@Santhosh-Sellavel Friendly bump. |
Sorry got lost of tracking as this was not assigned to me/ |
Reviewer Checklist
Screenshots/VideosAndroid: Native |
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.
Note: I have some issues with Android setup. So unable to test android native alone so please test that.
That shouldn't be a blocker here, so approving.
LGTM tests well!
@@ -82,6 +83,7 @@ function ReportActionItemImage({ | |||
fallbackIcon: Expensicons.Receipt, | |||
fallbackIconSize: isSingleImage ? variables.iconSizeSuperLarge : variables.iconSizeExtraLarge, | |||
isAuthTokenRequired: true, | |||
shouldUseInitialObjectPosition: isDistanceRequest ?? false, |
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 is ?? false
needed here? Won't isDistanceRequest
always be true or false?
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.
const isDistanceRequest = transaction && TransactionUtils.isDistanceRequest(transaction);
@Beamanator
Because isDistanceRequest
can be null and undefined. I updated to cast this to boolean.
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.
@dukenv0307 can you make those quick commend edits i suggested, then we can get this merged? 🙏 |
Co-authored-by: Alex Beaman <dabeamanator@gmail.com>
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.
Lookin good, LGTM
🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀
|
Details
Fix receipt preview in confirmation page
Fixed Issues
$ #34120
PROPOSAL: none
Tests
Offline tests
Same as above
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-04-23.at.16.26.54.mov
Android: mWeb Chrome
Screen.Recording.2024-04-23.at.16.23.53.mov
iOS: Native
Screen.Recording.2024-04-23.at.16.25.45.mov
iOS: mWeb Safari
Screen.Recording.2024-04-23.at.16.21.46.mov
MacOS: Chrome / Safari
Screen.Recording.2024-04-23.at.16.18.06.mov
MacOS: Desktop
Screen.Recording.2024-04-23.at.16.29.54.mov