Share screenshots directly into mobile capture #739

Closed
opened 2026-08-13 12:50:17 +00:00 by timmy · 0 comments
Owner

Product gap

Android can share text and URLs into Stackchain, but the installed PWA manifest only accepts a GET share target. A screenshot must be saved, Stackchain opened, New selected, and the file found again even though capture already supports optimized PNG/JPEG/WebP previews and durable screenshot Drafts.

Slice

Accept one shared image through the OS share sheet, stage it privately in IndexedDB in the service worker, and consume it once in capture without replacing an existing draft. Preserve shared text fields and existing screenshot optimization. Reject unsupported, empty, or multiple files without losing existing work.

Acceptance

  • Manifest advertises multipart POST sharing for text, URL, and one PNG/JPEG/WebP image.
  • A valid shared image opens ?launch=new&shared=image, is consumed once, and appears in the existing capture preview.
  • Existing text/URL share capture remains supported.
  • Invalid or multiple images produce actionable capture status and never overwrite an open capture.
  • Private staged data is removed on sign-out/session purge with the existing private capture database.
  • 320px/390px capture behavior remains within the existing responsive preview and 44px controls.
  • Focused and full test suites pass.

Non-duplication evidence

Historical work covers text/URL sharing (#223), share-through-sign-in (#313), capture attachments (#469), optimization (#495), and screenshot Drafts (#615), but current origin/main still declares only a GET text share target and has no OS image-share intake. No open issue or PR covers this flow.

## Product gap Android can share text and URLs into Stackchain, but the installed PWA manifest only accepts a GET share target. A screenshot must be saved, Stackchain opened, New selected, and the file found again even though capture already supports optimized PNG/JPEG/WebP previews and durable screenshot Drafts. ## Slice Accept one shared image through the OS share sheet, stage it privately in IndexedDB in the service worker, and consume it once in capture without replacing an existing draft. Preserve shared text fields and existing screenshot optimization. Reject unsupported, empty, or multiple files without losing existing work. ## Acceptance - Manifest advertises multipart POST sharing for text, URL, and one PNG/JPEG/WebP image. - A valid shared image opens `?launch=new&shared=image`, is consumed once, and appears in the existing capture preview. - Existing text/URL share capture remains supported. - Invalid or multiple images produce actionable capture status and never overwrite an open capture. - Private staged data is removed on sign-out/session purge with the existing private capture database. - 320px/390px capture behavior remains within the existing responsive preview and 44px controls. - Focused and full test suites pass. ## Non-duplication evidence Historical work covers text/URL sharing (#223), share-through-sign-in (#313), capture attachments (#469), optimization (#495), and screenshot Drafts (#615), but current `origin/main` still declares only a GET text share target and has no OS image-share intake. No open issue or PR covers this flow.
timmy self-assigned this 2026-08-13 12:55:47 +00:00
timmy closed this issue 2026-08-13 12:58:08 +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#739
No description provided.