-
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
[CP staging][FIX] iOS - Scan - After taking picture, image is not displayed on confirmation screen #48194
Conversation
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 good assuming it tests well on Android too
@@ -446,7 +447,7 @@ function IOURequestStepScan({ | |||
}) | |||
.then((photo: PhotoFile) => { | |||
// Store the receipt on the transaction object in Onyx | |||
const source = `file://${photo.path}`; | |||
const source = getPhotoSource(photo.path); | |||
IOU.setMoneyRequestReceipt(transactionID, source, photo.path, action !== CONST.IOU.ACTION.EDIT); |
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.
Do we want to strip file://
from photo.path here? @neil-marcellini on IOS
IOU.setMoneyRequestReceipt(transactionID, source, photo.path, action !== CONST.IOU.ACTION.EDIT);
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.
No I think it's fine yes? Now we're only adding file:// on Android so no reason to strip double occurrence of it.
@@ -446,7 +447,7 @@ function IOURequestStepScan({ | |||
}) | |||
.then((photo: PhotoFile) => { | |||
// Store the receipt on the transaction object in Onyx | |||
const source = `file://${photo.path}`; | |||
const source = getPhotoSource(photo.path); | |||
IOU.setMoneyRequestReceipt(transactionID, source, photo.path, action !== CONST.IOU.ACTION.EDIT); |
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.
No I think it's fine yes? Now we're only adding file:// on Android so no reason to strip double occurrence of it.
Thanks so much @ishpaul777! We don't need C+ here because I trust your testing and it's a simple change. I also don't want to slow things down. Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
well i meant that on IOS before photo.path dont had prefix
|
Ok, feel free to submit another PR to clean this up. For now it works, even if a bit redundant so I'm going to merge and move forward. |
✋ 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/neil-marcellini in version: 9.0.26-1 🚀
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.0.26-6 🚀
|
Details
Fixed Issues
$ #48118
PROPOSAL:
Tests
Expected Result:
The taken picture should be displayed on the confirmation screen
Offline tests
QA Steps
Same as test 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
Record_2024-08-29-00-23-06.mp4
Android: mWeb Chrome
iOS: Native
trim.21B798D3-B4E0-416D-8623-8F800934F095.MOV
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop