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

Aberta
#3,543 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
74/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
react, typescript
Domínio
frontend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Go
Estrelas
22.7k
Forks
1.2k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de wavetermdev/waveterm

Todas as issues de wavetermdev/waveterm

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.