ChatThreadList (lista de conversas)

オープン
#1,205 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
50/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

The library entry point is packages/ui/src/lib; read the existing VirtualList, ConversationItem, and Popover/Sheet components there first, since the issue expects them to be reused. Build ChatThreadList against the stated props and check the four acceptance criteria with a fixture of 500 threads; confirm the DOM stays under 60 rows, arrow keys and Enter work, the active row has aria-current="true", and non-running rows become disabled while one thread is running. The AC paths are private, so treat them only as behavioral reference.

索引モデルが issue の本文から書いたものです。

説明

area:a11y area:components enhancement

Versão: @codeatlasdev/ui 4.6.0 · código lido em main (950628f2) · classe: lacuna (migração do AC)

Problema

O AC depende deste comportamento hoje e a lib não o oferece. Sem ele, a migração perde qualidade no desktop, no mobile ou no PWA.

O que a lib já oferece (para não duplicar) e o que falta

Conferido com git grep -il "ThreadList" origin/main -- packages/ui/src/lib (950628f2): nenhum resultado. Peças reaproveitáveis que existem: MessageBubble, VirtualList, ConversationItem, CodeSnippet (./code), CopyButton, Chip/ChipRow, Popover, Sheet, Spinner, toast.

Referência no AC

Caminhos do repo AC (repo privado, só caminho):

apps/seller/src/components/copilot/thread-switcher.tsx:21-58 (ThreadRow: título truncado, relativeTime, spinner "Respondendo" com aria-label, aria-current); :69 (isEmptyDraft desabilita "Nova conversa"); :103-105 (rótulo do gatilho); :68: outras conversas desabilitadas enquanto uma responde. apps/web/src/components/conversations-admin/thread-list-card.tsx (max-h-[600px]); use-copilot-threads.ts:37-46 (lista inteira, sem paginação).

Defeitos do AC (leitura do código, não executado): - Sem renomear, excluir, buscar ou agrupar por data no seller.

  • Admin carrega todas as conversas de uma vez e filtra no cliente.
  • "Sem título" é o único estado para título vazio.

Proposta

<ChatThreadList threads activeId running onselect onnew> com grupos "Hoje/Ontem/Anteriores", busca com debounce, VirtualList acima de 100 itens, aria-current e ações opcionais onrename, ondelete (confirmação).

Critério de aceite (testável)

  • 500 conversas: menos de 60 linhas no DOM.
  • Setas movem o foco entre linhas e Enter abre.
  • Conversa ativa tem aria-current="true".
  • Enquanto uma conversa responde, as outras ficam com disabled e a que responde mostra "Respondendo" anunciado uma vez.

Mãe: #1089

主要言語
TypeScript
スター
6
フォーク
3
平均マージ
5時間 21分
マージ済み PR(30日)
378

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codeatlasdev/ui のほかの issue

codeatlasdev/ui の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。