[CP Staging] Fix distance eReceipt in attachment view - #71006
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-09-22.at.11.52.16.PM.movAndroid: mWeb ChromeScreen.Recording.2025-09-22.at.11.42.28.PM.moviOS: HybridAppScreen.Recording.2025-09-22.at.11.54.07.PM.moviOS: mWeb SafariUploading Screen Recording 2025-09-22 at 11.55.39 PM.mov… MacOS: Chrome / SafariScreen.Recording.2025-09-22.at.11.40.19.PM.movMacOS: DesktopScreen.Recording.2025-09-23.at.12.02.02.AM.mov |
|
@cristipaval 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] |
Fix distance eReceipt in attachment view (cherry picked from commit d43e2d5) (cherry-picked to staging by cristipaval)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/cristipaval in version: 9.2.16-8 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/cristipaval in version: 9.2.16-10 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.2.16-14 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/cristipaval in version: 9.2.17-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.2.17-6 🚀
|
Explanation of Change
We updated distance ereceipts to be a PDF generated in the backend and stopped showing the distance HTML wrapper in the App, but that didn't account for previously generted receipts and for when the distance request is edited, so now we are checking if the receipt of the distance request is an image, and if it is we show the wrapper.
Worth noticing that we are also fixing the backend code to also generate a PDF receipt when the request is updated.
Fixed Issues
$ #70931
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
After creating the request
After updating
MacOS: Desktop