Skip to content

feat: mobile app: add error boundary crash reporting and reset trigger (#696) - #874

Merged
ONEONUORA merged 1 commit into
Fracverse:masterfrom
Divine-designs:feat/696-error-boundary-crash-reporting
Aug 30, 2026
Merged

ONEONUORA merged 1 commit into
Fracverse:masterfrom
Divine-designs:feat/696-error-boundary-crash-reporting

Conversation

@Divine-designs

@Divine-designs Divine-designs commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes #696

Summary

The root ErrorBoundary already rendered a retry button; this PR completes the issue:

  • Crash reporting: componentDidCatch now queues and sends crash reports through the new crashReporter service (src/services/crashReporter.ts), which persists reports to AsyncStorage (bounded queue) and fire-and-forgets them to POST /api/v1/crashes when online.
  • Reset trigger: the boundary's Try Again action now also resets the navigation stack to the home screen via onReset, so the app fully recovers instead of remounting a broken screen.

Acceptance Criteria

  • Wrap root stack in React ErrorBoundary class
  • Display reset state trigger (Try Again resets boundary state + navigates home)
  • Crash reporting (queued locally, delivered to backend)

Tests

  • Added __tests__/ErrorBoundary.test.tsx covering: healthy render, crash fallback, crash reporting with component stack, retry reset + onReset callback, custom fallback.

All 5 tests pass; touched files pass tsc and prettier.

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@Divine-designs Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @Divine-designs

@ONEONUORA
ONEONUORA merged commit f765f37 into Fracverse:master Aug 30, 2026
9 of 10 checks passed
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.

mobile app: Add error boundary component with crash reporting and retry button

2 participants