[HOLD on #69523] Migrate remaining AttachmentModal usages#65245
[HOLD on #69523] Migrate remaining AttachmentModal usages#65245chrispader wants to merge 64 commits intoExpensify:mainfrom
AttachmentModal usages#65245Conversation
AttachmentModal usages
|
Why was I not assigned to review it? 🤔 |
|
Looking... |
|
There are conflicts @chrispader |
@parasharrajat ahh i see Multi-attachment support has just been merged to cc @mountiny |
|
That works. |
|
@parasharrajat just finished the refactoring for multi attachment file support. I couldn't find time to properly test this yet, will hopefully do tomorrow or the day after. If you want, you can already check if everything works. @mountiny or @blimpich could anybody of you please trigger a ad-hoc build? |
|
finishing this up now! |
|
I've finished refactoring for multi-attachment support, but since the PR has just been reverted in #65354, i'd say we HOLD this PR until multi attachment support is merged again. I'm going to do thorough testing of my changes with multi attachment support and with the clipboard issue in mind. cc @mountiny |
AttachmentModal usagesAttachmentModal usages
|
Yeah, let's hold. |
|
Reviewing today. Thanks for waiting. |
|
@chrispader Can you please resolve conflicts? Testing it today. |
|
There are test failures now. |
|
@chrispader Can you please fix tests? |
|
@parasharrajat i think the failing test is unrelated to this PR 🫠 |
This reverts commit 229dc8d.
|
Sounds good. yeah this is happening on main too. |
|
@chrispader Could we please split this up to smaller PRs and take it one usage at a time, this is taking ages to get through because it is super big PR. Lets just do one modal per PR |
@mountiny sure, i will further split up the PR! |
AttachmentModal usagesAttachmentModal usages
|
Thanks for splitting up, reviewing other ones now. |
AttachmentModal usagesAttachmentModal usages
|
Closing this in favor of the separate PRs, that were extracted from this one. Posted details here: #53493 (comment) (Please do not delete this branch yet) |
@mountiny @parasharrajat
Explanation of Change
In #63630 we migrate the
ReportAttachmentsscreen to the newAttachmentModalScreeninstead ofAttachmentModalcomponent. The PRs listed here migrate all of the remaining usages ofAttachmentModal. The screen handles the different appearance on web vs. native. For each of the different modal types ("report attachment", "profile avatar", "workspace avatar", ...) there is a specific content component.Fixed Issues
$ #53493
PROPOSAL:
Tests
AttachmentModal flows:
Go to all flows that show attachments and and check if
Following flows to test:
Clipboard pasting (only support for a single file)
Multi-file upload support
Send attachment:
Offline tests
Not needed.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as in Tests.
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
Screen_Recording_20250207_004027_New.Expensify.Dev.mp4
Screen_Recording_20250207_004044_New.Expensify.Dev.mp4
Screen_Recording_20250207_003937_New.Expensify.Dev.mp4
Screen_Recording_20250207_004006_New.Expensify.Dev.2.mp4
Android: mWeb Chrome
iOS: Native
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-06.at.16.32.44.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-06.at.16.32.30.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-03.at.11.26.24.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-06.at.16.32.17.mp4
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-06.at.16.33.13.mp4
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2025-02-06.at.16.38.14.mov
Screen.Recording.2025-02-06.at.16.37.58.mov
Screen.Recording.2025-02-06.at.16.37.32.mov
Screen.Recording.2025-02-06.at.16.37.47.mov
Screen.Recording.2025-02-06.at.16.36.50.mov
MacOS: Desktop