The Dashboard shows zeros and empty charts when its data fails to load

Aperta
#15,048 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
frontend, web-dev

Direzione di ricerca

Start with the three Dashboard widgets, OverallStatsWidget, ProductsCountPerCategoryWidget and ProductsPercentageWidget, and find where each one calls IDashboardController and where a failed call falls through to the empty-data rendering. Reproduce by making the call fail, for example with the server stopped, and confirm the zeros and empty charts appear. Done means a failed load shows an error state with a retry action in each widget, and no figures or empty charts are drawn in that case.

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

Descrizione

The Dashboard's widgets (OverallStatsWidget, ProductsCountPerCategoryWidget and ProductsPercentageWidget) each load their data from IDashboardController. When that call fails, because the server can't be reached, the app is offline or the server answers with an error, the error is shown, and then the widget renders as if the call had returned an empty catalog: the four figures read 0 and both charts are drawn empty. Once the error message is gone, the page says there are no categories and no products, which isn't true.

A widget whose data couldn't be loaded should say so in its own place and offer to try again, instead of showing figures it never received.

Lingua principale
C#
Stelle
1.4k
Fork
264
Merge medio
7h 38m
PR unite (30g)
544

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bitfoundation/bitplatform

Tutte le issue di bitfoundation/bitplatform

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.