-
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
New Attachment Upload UX with Real-Time Previews #44889
Merged
deetergp
merged 27 commits into
Expensify:main
from
kidroca:kidroca/feat/attachment-upload-ux
Jul 31, 2024
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
bf4c208
ReportUtils: simplify optimistic comment constructor logic
kidroca ccfa861
ReportUtils: extract attachment HTML generation to a separate function
kidroca c7fdc5a
ReportUtils: rename getAttachmentHtml to getUploadingAttachmentHtml
kidroca f5fcb32
Enhance attachment handling in getUploadingAttachmentHtml function
kidroca 605990b
fix: prevent error when custom attachment source attribute is undefined
kidroca b2b1544
ReportUtils: improve attachment HTML generation logic
kidroca 5d8d376
VideoRenderer: correct video source URL resolution logic
kidroca cce5e7e
ReportUtils: improve attachment handling for non-media files
kidroca feed1af
ReportUtils: prevent extra line breaks when comment text is empty
kidroca 75756e5
ReportUtils: lint fix
kidroca d017246
ReportUtils: fix type errors
kidroca 72077d4
CONST: add optimistic source attribute for attachments
kidroca 0e34971
libs/isReportMessageAttachment: improve attachment message check logi…
kidroca 556f795
AttachmentCommentFragment: update attachment uploading detection
kidroca 40d07c4
ContextMenuActions: update attachment detection logic
kidroca b7a0608
ContextMenuActions: prettier fix
kidroca d28d2e0
isReportMessageAttachment: Update to pass unit tests
kidroca 27ca9a8
Remove `uploading-attachment` custom model from BaseHTMLEngineProvider
kidroca feeb9c4
ReportUtils: Enhance data attribute generation
kidroca 2903070
Merge branch 'main' into kidroca/feat/attachment-upload-ux
kidroca 58c4237
Merge branch 'main' into kidroca/feat/attachment-upload-ux
kidroca 715ae21
🐛 fix(AnchorForAttachmentsOnly): update download icon visibility logic
kidroca 4008f07
🐛 fix(components/AnchorForAttachmentsOnly): add sourceID check to dow…
kidroca cab7749
♻️ refactor(components/Attachments): improve attachment file name ext…
kidroca 955009b
🐛 fix(components/AttachmentModal): prevent downloading local file sou…
kidroca c147141
🐛 fix(report/ContextMenu): hide download option for uploading files
kidroca c2c7ec9
🐛 fix(libs/ReportUtils): revert translationKey assignment for attachm…
kidroca File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since we introduced local file for preview attachments, we also need to check here whether we should not add an encrypted token for the local file.
More details: #54640 (comment)