Relato de problema com captura de tela redigida (Koatla)

Đang mở
#1,222 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start from ./kit (ErrorPage, createErrorHandler) to see how this package structures optional exports, then add the new ./feedback entry point exporting createFeedbackCapture and <FeedbackPanel>. The reference implementation lives in a private repo, so the acceptance list is the only spec: screenshot capture, masking/blur, the console ring buffer with email redaction, the optional html-to-image import degrading gracefully, and the keyboard/touch annotation editor. Done means each acceptance checkbox has a test.

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

Mô tả

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

(leitura de origin/main) sem widget de relato, sem captura de tela e sem editor de anotação. ErrorPage e createErrorHandler (./kit) tratam erro, não relato.

Referência no AC

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

packages/koatla/src/capture/screenshot.ts:8-36 (html-to-image, exclui a própria UI, mascara data-koatla-mask e senhas por blur, import dinâmico); capture/redact.ts, capture/mask-pii.ts, capture/ring.ts, capture/console.ts, capture/network.ts (buffers em anel); panel/screenshot-editor.tsx:85 (canvas.toBlob para anotar); panel/report-form.tsx, auto/transport.ts.

Defeitos do AC (verificados por leitura do código): nenhum por leitura de bug. Observação: a captura pode vazar PII fora de data-koatla-mask e dos campos de senha.

Proposta

./feedback com createFeedbackCapture({ exclude, maskSelector, ring: { console: 50, network: 30 } }), <FeedbackPanel> com editor de anotação (retângulo, seta, texto) e envio via transport injetável.

Critério de aceite (testável)

  • A captura não inclui o próprio painel (nó com data-* de exclusão ausente no PNG).
  • Elementos com data-* de máscara e campos type=password saem com blur no PNG; o DOM ao vivo não muda durante a captura.
  • O buffer de console tem no máximo 50 linhas e descarta as antigas; [email protected] em texto sai como [email].
  • Sem html-to-image instalado, o relato segue sem captura e sem erro.
  • O editor de anotação funciona com teclado (foco, setas) e com toque em 390 px.

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

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 codeatlasdev/ui

Tất cả issue của codeatlasdev/ui

Issue tương tự

Thêm issue về TypeScript

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.