Repository navigation
mobile: fixes from 5-agent review - #2
Merged
Merged
Conversation
- queue: 15 min XHR timeout, auto-retry on reconnect/app start/every 30 s, ask the server before resending a recovered job, keep all unfinished jobs, no storage writes per progress tick, steps never move backwards on event replay, no removal while uploading, per-job token - api: websocket reconnect timer cleared on close, spi/forecast may be null - Today: no crash when SPI is null, reached states not tappable, spelled-out KPI labels, safe-area bottom padding, accessibility labels - Capture: works offline with cached zones (alert links to settings), try/catch around camera/mic/send, 'Senden an <Zone>', not-yet-sent banner, audio/mp4, duration read before stop - Report: removed the fake Freigeben button, PDF is the main action; Scan: encoded ids in URLs - Settings: QR scan handled once and confirmed before switching server - App: report/overview failures no longer mark the app offline, Android back button, toast live region - UI: 44 pt default and icon buttons, darker success/info badge text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Fixes the confirmed findings from a 5-agent review of the mobile app (API contracts, upload queue, Android/Expo Go runtime, site UX, security).
Why
The review found a crash on the Heute tab, ways for the upload queue to hang or never resend, a "Freigeben" button that saved nothing, and recording that did not work offline, the main use case on site.
Changes
mobile/src/queue.ts)GET /captures/{id}before re-posting, so a run still in flight is not overwrittenmobile/src/api.ts): websocket reconnect timer cleared on close;spiandforecast_finishtyped as nullablekpi.spiis nullaudio/mp4; duration read before stopTesting
npx tsc --noEmitpassesNot in this PR (pilot)
tailscale serve)