interface icon indicating copy to clipboard operation
interface copied to clipboard

Add error screen

Open sakulstra opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Errors should be bound to the content area and not completely crash the app https://github.com/aave/interface/issues/695

Describe the solution you'd like Default practice in React is to have an error boundary e.g. around the content area and show some sort of error screen so you can still access the navigation & similar.

Describe alternatives you've considered There could be multiple boundaries to have more fine grained control(e.g. a boundary in the modal wrapper to limit the error to the modal). Would go with a global one as a first step though.

sakulstra avatar Apr 22 '22 09:04 sakulstra

Hey @sakulstra Can you please give some screenshot references here?

I'm also curious about types of errors. I'd love to add a system here. As for formats we can use:

  1. Full screen 'Something went wrong' or 404
  2. Top banner, like 'No internet connection'
  3. Dismissable pop-ups
  4. Warning messages like we show in tx modal

iamanastasia avatar Jun 08 '22 11:06 iamanastasia

Probably leverage the <ErrorBoundary> from react and scope it to given panels/components across the overall UI. This could be a tool to reach for here. Open question around scoping Next.js-based errors and how <ErrorBoundary /> plays into it.

drewcook avatar Jul 27 '22 21:07 drewcook