SkateSpots/src
shakespeare.diy 6d0480961c Quick Snap: camera-first on native (runtime Camera plugin), file input on web
The previous file-input-only approach fixed the crash but opened the gallery
on native because capture="environment" is only a hint the OS can ignore.

New platform-aware flow (lib/quickCapture.ts):
- Native (APK): open the OS camera directly via the runtime-injected
  window.Capacitor.Plugins.Camera with source:'CAMERA' — forces the real
  camera and gives built-in preview/retake. Accessed off the runtime object,
  so no '@capacitor/camera' specifier in the bundle (keeps the white-screen
  fix intact). User cancel is treated as a no-op.
- Web: falls back to the file input with capture="environment".
- If the native camera errors, gracefully falls back to the file input.

MapPage Quick Snap now routes through handleQuickSnap() → the captured photo
feeds the existing upload → create-spot flow unchanged. Bump 1.0.69.

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
2026-07-24 19:38:46 +07:00
..
components Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
contexts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00
hooks Crew Agent Phases 0–2: opt-in AI guide (🐝 Sasquatch) per crew 2026-07-24 19:26:19 +07:00
i18n Step 3: Crews — map-anchored collective feature (kind 35006) 2026-07-24 13:59:50 +07:00
lib Quick Snap: camera-first on native (runtime Camera plugin), file input on web 2026-07-24 19:38:46 +07:00
pages Quick Snap: camera-first on native (runtime Camera plugin), file input on web 2026-07-24 19:38:46 +07:00
test feat: update default relay set to all 5 relays 2026-06-16 22:35:09 +07:00
App.test.tsx New project created with Shakespeare 2026-06-15 19:49:07 +07:00
App.tsx feat: update default relay set to all 5 relays 2026-06-16 22:35:09 +07:00
AppRouter.tsx Step 3: Crews — map-anchored collective feature (kind 35006) 2026-07-24 13:59:50 +07:00
index.css UX audit round 2: Near Me fix, map height, touch targets, iOS dirs, a11y, mobile layout 2026-07-23 21:56:11 +07:00
main.tsx Fix native white screen: relative asset base + boot crash guard 2026-07-24 18:21:57 +07:00
vite-env.d.ts fix: restore full skate-spots source tree from misplaced src/src/ copy 2026-06-15 22:18:28 +07:00