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

Đang mở
#15,048 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
csharp
Lĩnh vực
frontend, web-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C#
Star
1.4k
Fork
264
Merge trung bình
7 giờ 38 phút
Pull request đã merge (30 ngày)
544

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bitfoundation/bitplatform

Tất cả issue của bitfoundation/bitplatform

Issue tương tự

Thêm issue về C#

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.