[CP staging][FIX] iOS - Scan - After taking picture, image is not displayed on confirmation screen #48194
Conversation
neil-marcellini
left a comment
There was a problem hiding this comment.
Looks good assuming it tests well on Android too
| // 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.
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.
No I think it's fine yes? Now we're only adding file:// on Android so no reason to strip double occurrence of it.
| // 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.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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