Skip to content

Add buttons to report errors and leave feedback

Axel Bocciarelli requested to merge support into main

Fix #7 (closed)

  • I add a mailto button to the menu, which users can use to leave feedback.
  • I wrap ImageViewContainer in an error boundary, so the app remains usable if a loading error occurs (i.e. users can select another dataset or retry to fetch the current one).
  • I wrap the entire App in another error boundary. If users hit the retry button in this one, the page reloads.
  • Both error boundaries include a button to report the error. It's a mailto link with a pre-filled subject and body. The body contains the error message and asks users to provide additional context.

braggy-feedback

Note that in production, users won't see Create React App's error modal.

While I'm at it, I also make sure that the currently selected dataset is highlighted in the file browser. This change is not visible in the GIF above, so here is a screenshot instead:

image

Edited by Axel Bocciarelli

Merge request reports

Loading