Repository navigation
fix: Invalid file is downloaded when uploading invalid file and downloading from receipt view - #35536
Conversation
…oading from receipt view
|
@allroundexperts 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] |
|
@hoangzinh Can you help review it? Thanks |
|
Hi @tienifr! |
|
Ah, I see it now. Un-assigning myself! |
| thumbnail={receiptURIs.thumbnail} | ||
| image={receiptURIs.image} | ||
| isLocalFile={receiptURIs.isLocalFile} | ||
| filename={receiptURIs.filename || transaction.filename} |
There was a problem hiding this comment.
Do we need a fallback value here?
There was a problem hiding this comment.
I just want to use transaction.filename in case it's pending waypoint. But after checking, we don't need it anymore
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-02-01.at.21.25.17.android.movAndroid: mWeb ChromeScreen.Recording.2024-02-01.at.21.26.45.android.chrome.moviOS: NativeScreen.Recording.2024-02-01.at.21.17.59.ios.moviOS: mWeb SafariScreen.Recording.2024-02-01.at.21.16.33.ios.safari.movMacOS: Chrome / SafariScreen.Recording.2024-02-01.at.21.07.12.web.movMacOS: DesktopScreen.Recording.2024-02-01.at.21.13.05.desktop.mov |
|
@tienifr please upload recording for other platforms as well. |
|
@hoangzinh updated |
|
✋ 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/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
1 similar comment
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 1.4.36-5 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.4.37-7 🚀
|
Details
Fixed Issues
$ #35482
PROPOSAL:
Tests
Offline tests
Same as above
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Screen.Recording.2024-02-02.at.16.05.12.mov
Android: mWeb Chrome
Screen.Recording.2024-02-02.at.16.04.36.mov
iOS: Native
Screen.Recording.2024-02-02.at.16.05.56.mp4
iOS: mWeb Safari
Screen.Recording.2024-02-02.at.16.01.18.mov
MacOS: Chrome / Safari
Screen.Recording.2024-02-01.at.11.14.50.mov
MacOS: Desktop
Screen.Recording.2024-02-02.at.16.08.21.mov