-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: Submit Expense - Error message about corrupted file when dragging and dropping image receipt #40471
fix: Submit Expense - Error message about corrupted file when dragging and dropping image receipt #40471
Conversation
…g and dropping image receipt. Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@rayane-djouah 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] |
Adding screenshots in few moments... |
@paultsimura, I don't think we need recording for native and mWeb since we don't support drag and drop there. |
@Krishna2323 The changes look good. Let's also avoid failing in the future if a file has no URI. We can do it by early returning here: if (!Str.isImage(file.name ?? '') || !file.uri) {
return Promise.resolve();
} Instead of using App/src/libs/fileDownload/FileUtils.ts Lines 244 to 253 in 5e41d85
|
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.
@Krishna2323 this regression isn't only for drag drop. It happens on native too.
Please see - #40162 (comment)
@rushatgabhane this should be fixed already. Did you check on the latest |
Signed-off-by: Krishna Gupta <belivethatkg@gmail.com>
@paultsimura, #40471 (comment) added. |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid12.09.mp4Android: mWeb ChromeiOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-04-19.at.12.02.4112.02.mp4iOS: mWeb SafariMacOS: Chrome / SafariScreen.Recording.2024-04-18.at.20.47.4509.42.mp4MacOS: DesktopScreen.Recording.2024-04-18.at.20.53.2509.42.mp4 |
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 ✔️
fix: Submit Expense - Error message about corrupted file when dragging and dropping image receipt (cherry picked from commit 8699315)
✋ 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.63-11 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.63-21 🚀
|
Details
Fixed Issues
$ #40440
PROPOSAL:
Tests
Offline tests
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 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4