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

Description

A mobile UI widget that allows peer mentors to select files from the device file system or capture photos via camera for attachment to activity records. It presents a bottom sheet or modal with source options and handles permission requests before invoking the native picker. Selected files are previewed inline before upload is confirmed.

Feature: Document Attachments

document-picker-widget

Sources & reasoning

Line 107 names document attachments under NHF's unique needs with specific examples (invitations, Facebook screenshots) and the Bufdir verification rationale. The priority matrix at line 157 confirms NICE TO HAVE with Phase 2 placement. Blueprint assigns [v1.0] matching the Fase 2 ordinal.

  • docs/source/likeperson.md · line 107
    Dokumentvedlegg til aktiviteter: Invitasjoner, Facebook-skjermbilder m.m. - viktig for Bufdir-etterprøving.
  • docs/source/likeperson.md · line 157
    Dokumentvedlegg til aktiviteter | - | âś“ | - | - | âś“ | NICE TO HAVE | 2

Responsibilities

  • Render file source selection UI (file system, camera, photo library)
  • Request and handle device permissions for camera and storage access
  • Display thumbnail previews of selected attachments before upload
  • Emit selected file references to the parent activity form
  • Enforce file type and size constraints with inline validation feedback

Interfaces

open(activityId: string): void
onFilesSelected(files: SelectedFile[]): void
onCancel(): void
setAllowedTypes(types: MimeType[]): void

Related Data Entities (1)

Data entities managed by this component