-
Notifications
You must be signed in to change notification settings - Fork 3k
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: 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! |
@@ -247,6 +247,7 @@ function MoneyRequestView({report, parentReport, parentReportActions, policyCate | |||
thumbnail={receiptURIs.thumbnail} | |||
image={receiptURIs.image} | |||
isLocalFile={receiptURIs.isLocalFile} | |||
filename={receiptURIs.filename || transaction.filename} |
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 need a fallback value here?
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.
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 |
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.
LGTM
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)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-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