target / goalert

Open source on-call scheduling, automated escalations, and notifications so you never miss a critical alert
https://goalert.me
Apache License 2.0
2.17k stars 230 forks source link

dev: normalize error handling in react components with ErrorConsumer #3928

Closed mastercactapus closed 6 days ago

mastercactapus commented 2 weeks ago

Description: This PR refactors the error handling logic in several components by introducing the ErrorConsumer utility. The main goal is to streamline and standardize how errors are consumed and displayed across the application. This change replaces the previous usage of splitErrorsByPath and direct error handling within the components.

Out of Scope:

Screenshots: (Not applicable for this PR)

Describe any introduced user-facing changes:

Describe any introduced API changes:

Additional Info:

mastercactapus commented 6 days ago

Superseeded by #3939