HIGH story-document-attachments-for-activities-organization-admin-002 3 pts

User Story

As a Organization Administrator
I want to view a thumbnail grid of all documents attached to an activity and open any attachment in full-screen preview
So that I can verify the correct files were uploaded and review them without leaving the app

Acceptance Criteria

  • Given I open an activity that has attached documents, when the screen renders, then a thumbnail grid shows one thumbnail per attachment with a file-type indicator badge
  • Given the thumbnail grid is visible, when I tap a thumbnail, then a full-screen preview modal opens with the document rendered at full resolution
  • Given the preview modal is open, when I tap the close button or swipe down, then I return to the activity detail screen with focus restored to the thumbnail I tapped
  • Given the preview modal is open with a screen reader active, then the document filename and type are announced when the modal opens
  • Given the attachment has a signed URL that has expired, when I open the preview, then a fresh signed URL is fetched transparently without an error being shown to me
  • Given an activity has no attachments, when I view the activity detail, then no attachment section is shown (the section is hidden, not empty)

Business Value

Providing in-app document preview eliminates the need to download files to a device gallery or email them for review. This reduces the risk of sensitive documents (e.g., participant consent forms) being stored in insecure locations outside the app, while also making it faster for peer mentors to respond to coordinator queries about a specific activity's evidence trail.