Announce each reply once instead of every streamed chunk
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The message list is role="log" with aria-live="polite", and a reply's text is rebuilt on every streamed chunk. Some screen readers read those partial updates one by one, which is noisy, and others skip them.
What to do
- While a reply streams, set the log to
aria-live="off". - Add a visually hidden
aria-live="polite"region (there's acc-sr-onlyclass already). When a reply finishes, put its final text there once, then set the log back topolite. - Error and cut off replies should be announced too, with their error text.
- Messages the visitor sends don't need an announcement.
Where to look
packages/widget/src/dom/messages.ts(the constructor setsroleandaria-live;updateMessagesetsaria-busywhile streaming)packages/widget/src/widget.ts(handleSend: where streaming starts and ends)packages/widget/tests/dom/messages.test.ts
Acceptance criteria
- The log is
aria-live="off"while a reply streams andpoliteotherwise - The hidden region gets the full reply text once, when it finishes
- Failed replies announce their error message
- Unit tests for each
- A short note in the PR on what you checked with a screen reader, if you have one (not required)
- Changeset for
@chatcops/widget(patch) -
pnpm test:coverage,pnpm lintandpnpm sizepass
The chat panel (dist/chatcops.panel.js) has a 14 kB gzip budget and about 800 B of it is left, shared by several open issues. Keep the change small, and check pnpm size before you open the PR.
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 7
- Merge trung bình
- 3 giờ 39 phút
- Pull request đã merge (30 ngày)
- 275
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 codercops/chatcops
-
Widget: fetch signed-in visitor tokens when a session is requestedCó thể đã có người làm @piyusshhjangid đã nhận hôm nay. Đang mởenhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 63/100
codercops/chatcops#461 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Widget: support CSP nonces for injected stylesCó thể đã có người làm @piyusshhjangid đã nhận hôm nay. Đang mởenhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
codercops/chatcops#460 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Server: validate `rateLimit.windowMs` before creating the limiterCó thể đã có người làm @ashutoshpalhare đã nhận hôm nay. Đang mở
codercops/chatcops#452 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Widget: a "New reply" button when the visitor has scrolled upCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest widget
codercops/chatcops#420 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
chatcops test: --url to test a deployed serverCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởenhancement hacktoberfest testing
codercops/chatcops#419 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/chatcops
Issue tương tự
-
b:minor bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
software-mansion/argent#1698 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 bình luận ·
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 82/100
better-auth/better-auth#12132 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
automation missing-model model-sync provider:tinfoil
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/models.dev#12053 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
o8 next debug build aborts on Glass to Dark appearance switch (nil identifier messaged before check)Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
hurttlocker/o8#5112 ·