MessageFeedback e ações da mensagem (copiar, avaliar)
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
- 1-2 ngày
- Mức phù hợp với người mới
- 56/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ệ
- typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 6
- Fork
- 3
- Merge trung bình
- 5 giờ 21 phút
- Pull request đã merge (30 ngày)
- 378
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codeatlasdev/ui
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
codeatlasdev/ui#1340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:a11y area:components bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
codeatlasdev/ui#1336 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
codeatlasdev/ui#1329 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
codeatlasdev/ui#1292 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:components enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
codeatlasdev/ui#1198 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codeatlasdev/ui
Issue tương tự
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
sandbox-quantum/switch#2163 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automated issue report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/dashboard kind/bug QA/dev-automation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug pydanty:is-working
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
pydantic/pydantic-ai#13939 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
self-host
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
funmusicplace/mirlo#2625 ·
Maintainer thường phản hồi trong vòng 1 ngày