FN-8502: add photo and file attachments to Chat and Quick Add
Enable supported photo and file attachment workflows across Quick Add and Chat.
- Expand Quick Add and Chat picker, paste, and drag/drop attachment intake.
- Preserve pending attachments until direct and room sends are accepted, with accessible previews and retry support.
- Align Chat MIME and size validation with task attachments, including video, Markdown, and TOML support.
- Add regression coverage for attachment previews, delivery behavior, and accepted MIME types.
Files changed:
.changeset/fn-8502-chat-quick-add-attachments.md | 7 ++
docs/dashboard-guide.md | 5 +-
... quick-entry-attachment-preview-modal.test.tsx} | 50 ++++++--
packages/dashboard/app/components/ChatView.tsx | 80 +++++++++++--
.../dashboard/app/components/InlineCreateCard.tsx | 6 +-
.../app/components/PendingAttachmentPreviews.css | 60 ++++++++++
...ePreviews.tsx => PendingAttachmentPreviews.tsx} | 68 ++++++-----
.../app/components/PendingImagePreviews.css | 35 ------
.../dashboard/app/components/QuickEntryBox.tsx | 127 +++++++++++++--------
packages/dashboard/app/components/TaskForm.tsx | 6 +-
.../__tests__/ChatView.core-interactions.test.tsx | 61 ++++++++--
.../__tests__/ChatView.mobile-render.test.tsx | 20 +++-
.../components/__tests__/ChatView.rooms.test.tsx | 27 ++++-
.../components/__tests__/QuickEntryBox.test.tsx | 59 ++++++++--
packages/dashboard/app/hooks/useChat.ts | 41 ++++++-
.../src/__tests__/chat-attachment-content.test.ts | 17 +++
packages/dashboard/src/chat-attachment-content.ts | 4 +-
.../dashboard/src/routes/chat-attachment-config.ts | 16 +++
.../src/routes/register-chat-room-routes.ts | 9 +-
.../dashboard/src/routes/register-chat-routes.ts | 11 +-
20 files changed, 534 insertions(+), 175 deletions(-)
Fusion-Task-Id: FN-8502
Fusion-Task-Lineage: 0205187c-7e5b-45f8-a71d-fcfd9fb01e65
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>