MessageFeedback e ações da mensagem (copiar, avaliar)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 56/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Read packages/ui/src/lib/Button.svelte plus the existing CopyButton and Popover sources to copy their prop and a11y conventions; the grep quoted in the issue confirms no feedback component exists yet. Add MessageFeedback beside them with aria-pressed and arrow-key roving focus, and change CopyButton so a rejected clipboard promise yields denied and a polite 'Não foi possível copiar' status instead of the check mark, keeping touch targets at 44 px and focus-visible. Done means the three acceptance checkboxes pass in the library's test run and a manual keyboard pass.
索引モデルが issue の本文から書いたものです。
説明
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 "Feedback\|ThumbsUp" origin/main -- packages/ui/src/lib (950628f2): só ocorrências não relacionadas (Button.svelte, index.ts, theme/define.ts). 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/chat-message/assistant-message.tsx:26-30 (copiar: navigator.clipboard.writeText(content) sem await nem catch; mostra "copiado" mesmo se falhar), :36-60 (botão absoluto em -top-2 -right-2, reveal-on-hover).
Defeitos do AC (leitura do código, não executado): - assistant-message.tsx:27: falha de permissão do clipboard é engolida e o ícone de ✓ aparece.
- Não há avaliação (joinha) nem motivo. Feedback não existe no AC (lacuna, não regressão).
- Ação de copiar é só da IA. Pergunta do vendedor não tem copiar.
Proposta
<MessageFeedback value onchange> (grupo de dois botões com aria-pressed, opção de motivo) e copyToClipboard com resultado ok | denied para o CopyButton.
Critério de aceite (testável)
- Falha de copiar mostra "Não foi possível copiar" (status polite), sem ✓.
- Avaliar com teclado: Tab para o grupo, setas e Enter escolhem,
aria-pressedreflete. - Botões de ação com 44 px no toque e visíveis com foco (sem depender só de hover).
Mãe: #1089
- 主要言語
- TypeScript
- スター
- 6
- フォーク
- 3
- 平均マージ
- 5時間 21分
- マージ済み PR(30日)
- 378
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codeatlasdev/ui のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
codeatlasdev/ui#1340 ·
メンテナーはふだん 1 日以内に返信
-
area:a11y area:components bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
codeatlasdev/ui#1336 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
codeatlasdev/ui#1329 ·
メンテナーはふだん 1 日以内に返信
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
codeatlasdev/ui#1292 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:components enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
codeatlasdev/ui#1198 ·
メンテナーはふだん 1 日以内に返信
codeatlasdev/ui の issue をすべて見る
似ている issue
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
sandbox-quantum/switch#2163 ·
メンテナーはふだん 1 日以内に返信
-
automated issue report
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area/dashboard kind/bug QA/dev-automation
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
pydantic/pydantic-ai#13939 ·
メンテナーはふだん 1 日以内に返信
-
self-host
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
funmusicplace/mirlo#2625 ·
メンテナーはふだん 1 日以内に返信