Seletor de intervalo sobre histograma (dois cursores, toque, teclado, playhead)
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
- 35/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ệ
- html, typescript
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Start from AudioPlayer.svelte:17-25, the existing single-cursor slider with role="slider" and its arrow/Home/End handling, and reuse that key handling as the template. Build the new two-handle component alongside it: pointer capture on the track (pointerId in pointermove), clamping so start <= end, and ARIA value attributes updated per index. Verify against the four acceptance boxes at 390px, with focus on each handle, and with reduced motion forced. The AC paths and the F-02 defect are in a private repo and cannot be read, so treat them as reference only.
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
(leitura de origin/main) AudioPlayer tem forma de onda com role="slider", setas, Home e End, e arrasto (AudioPlayer.svelte:17-25), mas é um cursor único (playhead). Não há seletor de intervalo com dois cursores sobre histograma.
Referência no AC
Caminhos do repo AC (repo privado, só caminho):
apps/web/src/components/geography/map/overlays/player/waveform-slider.tsx:93-100 (role="slider" com eventos de mouse), :110-116 (barras tocadas e playhead), player/player-header.tsx:26-27.
Defeitos do AC (verificados por leitura do código): (leitura) ver F-02.
Proposta
<RangeHistogram values={number[]} bind:start bind:end playhead={n} onchange> com dois role="slider", teclado (setas, PageUp/Down, Home/End), pointer events (toque) e touch-action: none na faixa.
Critério de aceite (testável)
- Tocar na faixa seleciona a alça mais próxima e arrasta com dedo (
pointermovecompointerId), também em 390 px. - Com foco nas alças, setas movem uma barra;
aria-valuenow,aria-valueminearia-valuemaxrefletem o índice. -
start <= endsempre; tentar cruzar trava na outra alça. - Playhead com
playing=truemarca barras até o índice com classe de estado, eprefers-reduced-motiondesliga a transição de cor.
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ự
-
bug frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
CivicTechWR/accessible-housing-portal#578 ·
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 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
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
-
enhancement ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
lolimmlost/aidj#433 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày