[WIP] feat: Allow pasting multiple files of any type into the composer#86677
[WIP] feat: Allow pasting multiple files of any type into the composer#86677chrispader wants to merge 15 commits intoExpensify:mainfrom
Conversation
|
|
onPaste event for text based content and no filesonPaste event for text based content and no files
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
|
Okay so here's a quick update after working on this follow-up for the recently reverted Multi file clipboard paste PR: In general, it is already possible to paste multiple files of any data type to the clipboard on both Android and iOS, but there are some caveats that i'm still working on and haven't found a holistic solution yet: iOS
Android
|
onPaste event for text based content and no files
@dangrous @MonilBhavsar @grgia @parasharrajat
Explanation of Change
This PR updates the React Native
react-native+0.83.1+011+Add-onPaste-to-TextInput.patchto only fireonPastewhen there are valid pasted files and not for text-based content.Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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