[Bug]: Desktop: Title page download summary shows zero counts and a trailing separator

Đang mở Phù hợp với người mới
#132 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
desktop

Hướng nghiên cứu

Dòng tóm tắt được tạo tại desktop/app/src/browsing/view/title.rs:445; hãy đọc hàm đó và phần mã view xung quanh để xem từng bộ đếm và tên hồ sơ được nối vào như thế nào. So sánh với component SeriesPanel trên web để làm theo các quy tắc ẩn số đếm bằng không, tô màu và nối bằng dấu phân cách. Tái hiện bằng cách chạy cargo run --locked -- --scene title --snapshot /tmp/t.png từ desktop/, rồi chạy lại để xác nhận dấu « · » ở cuối đã biến mất và chỉ còn các phần khác không.

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

Mô tả

bug

[!NOTE]
This issue was written by Claude (Claude Opus 5.5) from a review session of the desktop app (#80) with @PhrolovaMoe. It was found in headless renders of the debug build's fixture scenes (--snapshot), not on a live server.

Version

0.40.0 (feat/desktop, 017a837b)

Area

Other (desktop app)

What happened?

The managed show summary on the title page (desktop/app/src/browsing/view/title.rs:445) prints every counter, even zeros ("0 downloading · 0 missing · 0 skipped"), then the profile name. When the profile name is empty the line ends with a stray " · ". The web's SeriesPanel only shows non-zero counts, colours downloading/to find/missing, and adds the next schedule time.

Steps to reproduce

From desktop/, with a debug build: cargo run --locked -- --scene title --snapshot /tmp/t.png: the line ends in "0 skipped ·".

Expected behavior

The same summary as the web.

Suggested fix

Build the line from only the non-zero parts (with the web's colours), join them with " · ", and skip empty values.

Ngôn ngữ chính
TypeScript
Star
4
Fork
1
Merge trung bình
4 giờ 49 phút
Pull request đã merge (30 ngày)
5

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

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

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 tinystream-dev/tinystream

Tất cả issue của tinystream-dev/tinystream

Issue tương tự

Thêm issue về TypeScript

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.