Document Attach Widget
Component Detail
User Interface
medium complexity
mobile
0
Dependencies
0
Dependents
2
Entities
0
Integrations
Description
Inline widget embedded in the activity summary screen and activity detail view that displays attached documents and triggers attachment flows. Shows document thumbnails in a horizontal scroll list with add and remove controls, enforcing the 5-file-per-activity limit client-side.
document-attach-widget
Responsibilities
- Display list of attached documents with thumbnails and file metadata
- Trigger camera capture or file picker attachment flow
- Enforce max 5 attachments per activity and show limit feedback
- Show upload progress and error states per attachment
- Allow removal of existing attachments with confirmation
Interfaces
showAttachedDocuments(activityId: string)
onAddDocumentTapped()
onRemoveDocumentTapped(documentId: string)
renderThumbnail(document: ActivityDocument)
showUploadProgress(progress: double)
showLimitReachedError()
showAttachmentError(error: String)
Related Data Entities (2)
Data entities managed by this component