tiki-deprecated / app

TIKI DAO 🤫
MIT License
13 stars 6 forks source link

Log UI issues in Sentry #491

Closed ricardobrg closed 2 years ago

ricardobrg commented 2 years ago

As a developer, I should log all UI errors in Sentry.

Flutter-caught errors should be handled with FlutterError.onError. It should not display any custom widgets now, it should be handled in #252.

The uncaught errors should be handled with runZonedGuarded. Sentry has its own runZoneGuarded which is already used in the app at https://github.com/tiki/app/blob/dee089328837dd041dd0649899639e1f5c26b02d/lib/main.dart#L54-L63. It should be configured based in #355 definitions.

Acceptance criteria: 1 - Force a caught UI error and an uncaught one and check if Sentry catch them in the dashboard.

ricardobrg commented 2 years ago

Image

ricardobrg commented 2 years ago

Image

ricardobrg commented 2 years ago

Image