kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
672 stars 110 forks source link

Introduce ErrorBoundary Component #1902

Open ravi-kumar-pilla opened 4 months ago

ravi-kumar-pilla commented 4 months ago

Description

At the moment Kedro-Viz does not have an error boundary and a fallback UI (nothing that I am aware of apart from a wrong or broken URL). This ticket is to introduce ErrorBoundary for Kedro-Viz

Context

When an error occurs due to multiple reasons, react removes UI resulting in a blank screen and a bad experience for users. Instead, we can have ErrorBoundary to fallback.

Possible Implementation

https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary

Checklist

Huongg commented 3 months ago

Suggestion: can re-use the PipelineWarningContent for now to handle the error