Skip to content

mobile: site manager app (Expo + shadcn) and user journey - #1

Merged
Current-cmd merged 1 commit into
mainfrom
feat/mobile
Nov 21, 2026
Merged

Current-cmd merged 1 commit into
mainfrom
feat/mobile

Conversation

@Current-cmd

Copy link
Copy Markdown
Owner

What

Adds a site manager mobile app (mobile/, Expo SDK 58 + shadcn via React Native Reusables) that records on site and talks to the Tagwerk API on the GPU laptop over Tailscale, plus a user journey and ready checklist.

Why

The site manager is the one person who feeds Tagwerk, and so far they only had the /site web page. They need a phone app: record a video, photo or voice note in under a minute, work without signal, see what Tagwerk understood, and confirm camera proposals. For the demo, the team also needs a shared view of who does what and what must be ready before outside users touch it.

Changes

  • App screens (mobile/App.tsx, mobile/src/screens/)
    • Heute: KPIs (actual vs planned, SPI, delay), camera proposals with one-tap confirm, open activities with a state picker per element (/api/overview, /api/elements/{id}/confirm)
    • Erfassen: zone, video with commentary / photo / voice note (expo-audio) / typed note; result card with confirmed changes, proposals, absences, labour, deliveries, events
    • Scan: walk-through video to /api/scan; objects grouped by category with frame thumbnails; link to the 3D scan
    • Bericht: today's Bautagebuch from /api/v2/report, PDF via /export/report.html, dashboard link
    • Settings: server URL with :8080 / :8081 / :8082 presets, optional token, connection test, connect QR (tagwerk://connect?url=…&token=…)
  • Upload queue (mobile/src/queue.ts): saved across restarts; files copied out of the picker cache; resent with the same capture_id (the server answers exists); each job remembers the server it was recorded for; live pipeline steps from the /events websocket
  • API client (mobile/src/api.ts): multipart upload over XHR with progress, bearer token, response types matching contracts/structured.schema.json
  • UI: React Native Reusables components in mobile/components/ui/, NativeWind 4 + Tailwind 3, shadcn neutral theme plus success / warning / info tokens, extra xl / hero button sizes for gloves, state labels copied from tagwerk/labels.py
  • Docs: docs/USER-JOURNEY.md (roles, journey from setup to daily report, ready checklist for demo / pilot / later); mobile/README.md (run on the phone, laptop Metro, dev setup); mobile/expo-go-qr.png
  • No backend changes

Testing

  • npx tsc --noEmit passes; expo-doctor passes after adding expo-asset
  • Ran the app's exact requests against the laptop (:8082 scan project):
    • Typed note: processed in 9.5 s, absence detected
    • 15 s site video: processed in 50 s, transcript and one camera proposal
    • Resend with the same id: returned exists
    • Scan: 51 s, 5 objects with thumbnails; 3D reported "too few matching frames" on the shaky clip
  • Checked every screen in the Expo web build against :8080
  • Android bundle builds through Metro on the laptop and downloads over Tailscale
  • Not yet run on a physical Android phone in Expo Go

Notes

  • Metro runs on the laptop (~/tw-mobile.sh start|stop|log, exp://100.118.181.69:8090) because the Mac firewall blocks incoming connections; the source there is a copy in ~/Developer/hacka/tagwerk-mobile, outside the main checkout
  • With the rules fallback (no Claude key), a typed "ein Mann krank" gives trade unbekannt

…oday, capture with offline queue, scan, report, connect

docs: user journey and ready checklist
@Current-cmd
Current-cmd merged commit a7cc367 into main Nov 21, 2026
2 checks passed
@Current-cmd
Current-cmd deleted the feat/mobile branch November 22, 2026 00:49
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