-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Collect user data and integrate error page with Intercom (#1111)
* Collect user data and integrate error page with Intercom This commit puts an ErrorBoundary around each Route's parent component. This way each ErrorBoundary is under the IntlProvider and has Intercom in scope so we integrate and prefill support request messages when crashes happen. ErrorBoundary component now gets a `component` prop to specify which component it is wrapping and this will be sent with the errbit report. It is also collecting user name, dbid and email to send with the report, to help gain more insight/context on the crashes. Note I: The @airbrake-js/browser calls to the Errbit server seem to ignore the extra data added as context, params and session, unless the error is a string or we cast a new instance from the raised error object. To be investigated. See github issue: airbrake/airbrake-js#1193 Note II: MainErrorBoundary has been renamed to ErrorBoundary Fixes: CHECK-1744 * Remove console log with intentional error 😅 Also to mention that change in helpers.js is to guard agains `null` value for `str`. Fixes CHECK-1747 * Add missing files 🤦
- Loading branch information
1 parent
fc82c29
commit 033de3b
Showing
25 changed files
with
885 additions
and
783 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
localization/react-intl/src/app/components/error/ErrorBoundary.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"id": "errorBoundary.message", | ||
"description": "Prefilled support request message when Check UI crashes", | ||
"defaultMessage": "Hello, I'm having trouble with Check. The web interface has just crashed and is blocking me from doing work!" | ||
}, | ||
{ | ||
"id": "mainErrorBoundary.cardTitle", | ||
"description": "Title for error state card displayed in error page", | ||
"defaultMessage": "An unexpected error happened" | ||
} | ||
] |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.