User Interface medium complexity mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations

Description

A mobile UI widget that lets peer mentors select files from the device file picker or camera roll and attach them to an activity record. It displays a thumbnail preview of selected attachments and provides remove/retry controls. The widget integrates with the activity detail view and shows upload progress per attachment.

Feature: Document Attachments

attachment-picker-widget

Sources & reasoning

Lines 107-108 give the exact use-case (invitations, screenshots for Bufdir auditing). Line 348 places it in Fase 2 (v1.0). The needs matrix marks it NICE TO HAVE / Fase 2, consistent with should_have at v1.0.

Responsibilities

  • Render file picker and camera roll trigger buttons within the activity form
  • Display thumbnail previews and upload progress for each pending attachment
  • Allow removal of selected attachments before or after upload
  • Emit selected file handles to AttachmentService for compression and upload
  • Show error states when upload fails with retry affordance

Interfaces

open(): void
onFilesSelected(files: FileHandle[]): void
removeAttachment(attachmentId: string): void
getUploadProgress(attachmentId: string): UploadProgress