code-corps / code-corps/code-corps-ember

Improve error rendering via `error-formatter`

Aperta
#691 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
120
Fork
75
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

# Problem

Our `error-formatter` component right now is mostly passing through errors received from the API.

That doesn't really make too much sense. API errors are really technical and not that useful to the user. We should compile a list of API errors and decide how to handle them. The options could be

* Redirect to an error route and not display it via `error-formatter` at all
* Display a friendly client-message on the page, via `error-formatter`. This could eventually even be localised.
* Do something else entirely

# References

Work on this sort of started already in #689. I started ignoring the API messages and simply displaying a friendly, locally defined error based on the type of error received from the API, but it needs further refinement.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il componente error-formatter e il lavoro in #689; esamina come i tipi di errore API vengono attualmente associati ai messaggi. Il lavoro è completato quando si è concordato come gestire l’elenco degli errori API — reindirizzamento, messaggio locale intuitivo o un altro comportamento — e il componente è stato perfezionato di conseguenza.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
frontend
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.