Skip to content

Improve error handling and recovery UX for capture flow#18

Merged
felippemsc merged 4 commits intomainfrom
refactor/ios-error-handling
Feb 9, 2026
Merged

Improve error handling and recovery UX for capture flow#18
felippemsc merged 4 commits intomainfrom
refactor/ios-error-handling

Conversation

@felippemsc
Copy link
Contributor

@felippemsc felippemsc commented Feb 9, 2026

Summary

  • Add live countdown timer for capture sessions (updates every second)
  • Show "Session Expired" UI with orange "Create New Session" button when session expires
  • Add "Retry" button on error alerts for network failures (register, start session, capture)
  • Auto-recover from 401 unauthorized by clearing stale credentials and prompting re-registration
  • Rewrite all user-facing error messages to be friendlier and actionable (no HTTP status codes, no technical jargon)

Test plan

  • Start session and watch countdown tick down live
  • Let session expire — verify "Session Expired" UI appears with "Create New Session" button
  • Toggle airplane mode and attempt an action — verify "Retry" and "Dismiss" buttons appear
  • Tap "Retry" after restoring network — verify action succeeds
  • Simulate 401 (reset device on server) — verify app clears credentials and shows registration prompt
  • Verify all error messages are user-friendly (no raw status codes or technical details)

@felippemsc felippemsc changed the title Refactor/ios error handling Improve error handling and recovery UX for capture flow Feb 9, 2026
@felippemsc felippemsc marked this pull request as ready for review February 9, 2026 01:12
@felippemsc felippemsc merged commit 2fcd28e into main Feb 9, 2026
2 checks passed
@felippemsc felippemsc deleted the refactor/ios-error-handling branch February 9, 2026 01:12
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