GenSpectrum / dashboards

https://genspectrum.github.io/dashboards/
GNU Affero General Public License v3.0
2 stars 0 forks source link

feat(components): add error boundary to components #225

Closed JonasKellerer closed 1 month ago

JonasKellerer commented 1 month ago

resolves #143

Summary

Adds a error boundary to each component. This will catch every error thrown in its children. If the error is a UserFacingError then the content of the error message will also be shown. Otherwise it will be omitted. The error should take up as much space as the original component.

This also introduces a loading skeleton for those components, which have this state.

When the reference genome can not be fetched, an error banner will be shown.

Screenshot

grafik

Error banner when error while fetching reference genome. grafik

PR Checklist

JonasKellerer commented 1 month ago

As discussed we log the error message for non user facing errors in the console.