Skip to content

feat: shutter-first capture, offline queue, capture retract, and PWA shell - #48

Open
TimerErTim-Agent wants to merge 1 commit into
feat/one-tap-drafting-and-deadlinesfrom
feat/shutter-first-capture-offline-queue
Open

TimerErTim-Agent wants to merge 1 commit into
feat/one-tap-drafting-and-deadlinesfrom
feat/shutter-first-capture-offline-queue

Conversation

@TimerErTim-Agent

Copy link
Copy Markdown
Collaborator

Summary

Removes capture-flow friction on mobile with a shutter-first quick-capture flow, resilient offline upload queue, capture retraction while active, and lightweight static app-shell caching.

Part of #43

Stack

PR Branch Scope
#46 feat/hunt-board-views-and-ui-cleanup Target-grouped boards & UI cleanup (closes #26)
#47 feat/one-tap-drafting-and-deadlines 36-prompt decks, 80-char prompt cap, one-tap fill & lock, quick-pick bar, mixed decks, draft deadlines & host override
this PR feat/shutter-first-capture-offline-queue Shutter-first capture, IndexedDB offline queue, capture retract, PWA SW
PR 4 feat/roster-lifecycle-and-game-deadline Game deadline, roster controls, late join, scheduler completion, live toasts
PR 5 feat/single-step-signup-unverified-limit 1-step signup, 1-game unverified limit, public invite preview
PR 6 feat/oidc-identity-providers Google / Apple / generic OIDC + passwordless deletion (closes #41, #43)

Backend & Schema

  • Add Board::retract_capture, CaptureRepository::delete (port, instrumented, fakes, SQLite optimistic delete + board tile capture_id nullification), and RetractCapture use case with best-effort object-store media cleanup.
  • Add DELETE /api/games/:game_id/captures/:capture_id endpoint with conformance and E2E tests.

Frontend

  • Add IndexedDB offline capture queue + board snapshot cache (offline-capture-queue.ts, use-offline-capture-queue.ts) with automatic retry on reconnect/focus and Option A post-completion preservation (Spiel bereits beendet – Foto bleibt lokal gespeichert + one-tap download).
  • Add shutter-first QuickCaptureSheet (native camera, optional live viewfinder burst into local photo tray, target-filtered open tile assignment, and deferred assignment).
  • Add "Foto zurückziehen" with inline confirmation inside PhotoLightbox for the uploader while a game is active.
  • Add lightweight static app-shell public/sw.js bypassing /api/ endpoints + pwa-install.ts.

Verification

  • mise run sync:openapi && mise run ci (format, lint, design/docs/branding checks, OpenAPI drift check, release build, Rust unit/conformance/scheduler/E2E tests, 47 Vitest tests) passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant