Commit Graph
25 Commits
Author SHA1 Message Date
chrisgarrity cf5183a3ee Revise how unsupported browsers are handled
Browsers other than IE will be allowed to load the GUI.
However, if there is an error, the error boundary will display an unsupported browser message recommending they update to the latest version of a supported browser.

For the purposes of this PR, ‘supported’ means you can load the gui (anything other than IE), and recommended is just the browsers that meet our minimum requirements for Chrome, Firefox, Edge and Safari.
2019-01-09 12:24:01 -05:00
Paul Kaplan 6fe27f7691 Remove the error logging to GA, augment Sentry with the action prop 2018-12-20 13:19:44 -05:00
Paul Kaplan 4df56e41ca Include the action in the sentry report 2018-12-20 13:11:07 -05:00
Paul Kaplan 50a917280a Use new sentry API provided by www, and use analytics ID from www 2018-12-20 12:53:33 -05:00
Paul Kaplan 40ca680e39 Show error ID if available from Raven 2018-12-19 13:39:56 -05:00
chrisgarrity 2fb6a4849d Fix warnings
- empty MapDispatchToProps (dispatch)
- remove `on…` VM listeners from props passed to wrapped component.
2018-08-23 11:14:32 -04:00
chrisgarrity 87966517a5 provide default mapDispatchToProps 2018-08-16 16:01:23 -04:00
chrisgarrity 86c51bc102 Mirror the unsupported browser image
Also just cleaner formatting of the connect in the `errorBoundary` container
2018-08-16 13:14:49 -04:00
chrisgarrity 72a6fac996 Handle RTL in modals 2018-08-15 11:49:47 -04:00
Ray Schamp 317f11ed92 Use bowser rather than platform
bowser correctly detects Chrome Headless as Chrome, is already used by scratchr2, and is more actively maintained than platform.
2018-05-15 09:54:47 -04:00
Paul Kaplan 5fa9e79fb7 Use different errors for unsupported browsers.
Also extract the "supportedBrowser" logic into a helper (rule of 3)
2018-05-03 10:19:03 -04:00
Paul Kaplan 2bdd7cb916 Move ErrorBoundary back into the app 2018-05-02 12:29:04 -04:00
Ray Schamp a3b8a917aa Remove the redundant error line
The error message is included in the first line of the stack
2018-04-12 09:39:15 -04:00
Ray Schamp cd4a055bb7 Add more information to error boundary messages
While working on the menubar, I couldn't find the source of an error. This adds more stack info to the error messages emitted by the error boundary.
2018-04-11 21:04:14 -04:00
chrisgarrity 8861eca99b Add more browsers to the unsupported list
Added:
- Opera (including Opera Mini)
- Silk

Not Added:
- Vivialdi - appears to be ‘Chrome’ in `platform.name`
2018-03-21 11:17:07 -04:00
kchadha b0101fe4f9 Fix reload button on error page so that it goes to the correct url (including the pathname). 2018-03-12 13:42:15 -04:00
chrisgarrity d65fabc6a7 reload without project hash 2018-02-27 14:13:33 -05:00
chrisgarrity 5f1fe57206 Nicer crash message format
fixes #1205.

It doesn’t translate any of the text to avoid a case where translation is causing the error, and fails in the error boundary as well.
2018-02-26 21:13:24 -05:00
Paul Kaplan afe84d52cc Record fatal error boundary hits to analytics 2018-01-29 09:33:11 -05:00
Paul Kaplan d5bfda7ad7 Remove unused var 2018-01-12 09:32:52 -05:00
Paul Kaplan d41491c547 Use new renderer methods to check for WebGL.
Remove the WebGL checks from the error boundary. Instead, just do not
render the stage if it is not supported.
2018-01-12 09:14:20 -05:00
Paul Kaplan aff4ecdd6c Check for experimental-webgl context also. 2018-01-10 15:50:29 -05:00
chrisgarrity 3ddb26deff Support IE just enough to show unsupported modal (#1213)
* Added object.assign polyfill

* Fix IE load failure

Don’t call `(window.AudioContext || window.webkitAudioContext)()` if platform is IE

Catch any other errors, and display Browser unsupported in error-boundary.

If for some reason there are no other errors (unlikely), preview-modal will still check for IE and show the unsupported modal.

Polyfilling Object.assign is enough to get through load and show the modal for IE. We can always switch to `babel-polyfill` if there are others needed later, but for now this is smaller.
2018-01-10 10:13:59 -05:00
chrisgarrity 968b31cdff Temporary message when the GUI has an unhandled error
temporary patch for #1205.
2018-01-08 15:19:53 -05:00
chrisgarrity ff3a2c9b39 WebGL unavailable modal (#1116)
Add Error Boundary (has componentDidCatch method) to handle WebGL errors and display an informative message.
2018-01-08 15:04:08 -05:00