Tab badges: show a count when a tab holds more than three badges

Đang mở
#3,543 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
74/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
react, typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start in frontend/app/tab/tabbadges.tsx at allBadges.slice(1, 3), which currently drops badges after the third. When the list is longer than three, render a count (for example the top icon plus a small +N, or a numeric pill) while keeping the top badge colour. Confirm the tab bar shows leftover sessions instead of hiding them; follow any nearby tab-badge tests or stories if present.

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

Mô tả

Problem

A tab shows at most three badges: the highest-priority badge as an icon, then up to two more as small dots (frontend/app/tab/tabbadges.tsx, allBadges.slice(1, 3) in v0.14.5). Any further badges are dropped without any sign that they exist.

We run several AI coding-agent sessions in one tab, one per block. Each session sets a block badge when it finishes or needs input (wsh badge). With four sessions waiting, the tab shows an icon and two dots, and the fourth session is invisible from the tab bar.

Suggestion

When a tab has more badges than it can draw, show the count instead of, or as well as, the dots — for example the top badge's icon followed by a small "+2", or a numeric pill of the total. Keeping the colour of the top badge would preserve the priority signal.

Environment

Wave v0.14.5, Windows 11 with WSL Ubuntu connections.

Ngôn ngữ chính
Go
Star
22.7k
Fork
1.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

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 wavetermdev/waveterm

Tất cả issue của wavetermdev/waveterm

Issue tương tự

Thêm issue về Go

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.