Tietokilta / ilmomasiina

Event signup system for tietokilta.fi and beyond
MIT License
1 stars 9 forks source link

Useful error messages #118

Closed PurkkaKoodari closed 9 months ago

PurkkaKoodari commented 1 year ago

This PR introduces useful error messages for essentially all parts of the frontend accessing the API.

The error messages are based on a fallback system using the i18n keys from #93; a feature-specific message takes precedence over a generic one, and an error-code-specific message does likewise. See errorMessage.ts for details.

The PR also cleans up some unused/legacy Redux state and error handling. saving is now tracked in form libraries and errors are mostly used temporarily (and some errors will be tracked in form libraries in the future).

Jaakkonen commented 1 year ago

A bit too large to review so lgtm