Capture camera-first photo evidence from mobile New issue #937

Closed
opened 2026-08-16 04:21:12 +00:00 by timmy · 0 comments
Owner

User problem

Mobile operators capturing physical incidents must leave Stackchain, take a photo, then return through a generic screenshot picker. The existing evidence pipeline already optimizes, redacts, captions, orders, persists offline, and files images, but offers no direct camera entry point.

Scope

Add a camera-first Take photo action using the rear-facing camera alongside Choose existing in New issue capture. Both inputs append to the same five-image evidence bundle; cancellation must preserve the draft and existing evidence. Keep a normal gallery/files path on desktop.

Acceptance

  • At phone width, Photo evidence exposes touch-safe Take photo and Choose existing actions without horizontal overflow.
  • The camera input uses accept="image/*" and capture="environment"; the existing picker remains multi-select without capture.
  • Photos from either source share optimization, preview, caption/edit/reorder, Draft persistence, and filing behavior.
  • Repeated camera captures append; cancellation changes nothing; the sixth image is rejected without losing the first five.
  • Behavioral tests prove the shared controller and rendered mobile contract; focused and full suites pass.

Non-duplication evidence

All 471 historical issue titles and the latest 100 commits were checked. Existing issues cover screenshot evidence, sharing, editing, optimization, Drafts, and voice capture, but none provides direct camera-first photo capture.

## User problem Mobile operators capturing physical incidents must leave Stackchain, take a photo, then return through a generic screenshot picker. The existing evidence pipeline already optimizes, redacts, captions, orders, persists offline, and files images, but offers no direct camera entry point. ## Scope Add a camera-first **Take photo** action using the rear-facing camera alongside **Choose existing** in New issue capture. Both inputs append to the same five-image evidence bundle; cancellation must preserve the draft and existing evidence. Keep a normal gallery/files path on desktop. ## Acceptance - At phone width, Photo evidence exposes touch-safe Take photo and Choose existing actions without horizontal overflow. - The camera input uses `accept="image/*"` and `capture="environment"`; the existing picker remains multi-select without capture. - Photos from either source share optimization, preview, caption/edit/reorder, Draft persistence, and filing behavior. - Repeated camera captures append; cancellation changes nothing; the sixth image is rejected without losing the first five. - Behavioral tests prove the shared controller and rendered mobile contract; focused and full suites pass. ## Non-duplication evidence All 471 historical issue titles and the latest 100 commits were checked. Existing issues cover screenshot evidence, sharing, editing, optimization, Drafts, and voice capture, but none provides direct camera-first photo capture.
timmy self-assigned this 2026-08-16 04:21:12 +00:00
timmy closed this issue 2026-08-16 04:33:46 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: stackchain/stackchain-dashboard#937
No description provided.