Charts: primitivo leve de faixa de atividade espelhada (24 colunas, sem echarts)
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
- 56/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
Hướng nghiên cứu
Read the existing @codeatlasdev/ui/charts components, especially BarChart, Sparkline, and the ChartCanvas path, then compare them with the reference ActivityStrip.svelte and strip.ts named in the issue. Implement a lightweight SVG/CSS primitive with mirrored series, accessible keyboard and pointer interaction, reduced-motion handling, and loading and empty states. Done means the requested behavior works with design tokens and without echarts; check the #1079 states and the stated home bundle budget.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Contexto
No painel do wi (codeatlasdev/wi) a home precisa de uma faixa de atividade das últimas 24 horas: 24 colunas por hora, espelhadas num eixo (recebidas acima, enviadas abaixo), marcas de hora, foco por ponteiro/toque/teclado mostrando a contagem da hora e um resumo em texto para leitores de tela. São 24 números.
O que existe
@codeatlasdev/ui/charts (BarChart, Sparkline) desenha isso, mas é echarts: echarts é peer opcional (6.1.0), e o menor bundle que o BarChart precisa (core + BarChart + Grid + Tooltip + AxisPointer + CanvasRenderer) mede 517 KB minificado, 175 KB gzip (bun build --minify, echarts 6.1.0). O orçamento da home é +30 KB gzip; são ~6x. Sparkline também passa por ChartCanvas/echarts e não espelha dois sentidos nem expõe foco por coluna.
Proposta
Um primitivo leve, sem dependência (SVG/CSS com tokens), por exemplo ActivityStrip/DiffBars:
data: { label: string; a: number; b?: number }[];bdesenha o lado espelhado abaixo do eixo, escala compartilhada;- marcas de eixo configuráveis (
ticks),aria-valuetext/summarye navegação por setas entre colunas (padrãoslider), toque e ponteiro com legenda do valor; - cores só por tokens
--ca-*(série A cheia, B a 50%), ordem de leitura clara no escuro e no claro; - animação única de entrada (colunas crescem a partir do eixo, <= 400 ms), desligada em
prefers-reduced-motion; - altura flexível (preenche o pai) e
Skeleton/estado vazio coerentes com a #1079.
Implementação de referência (≈7 KB de fonte, sem dependências): apps/web/src/routes/app/dashboard/ActivityStrip.svelte + strip.ts no wi.
Workaround no app: componente local em apps/web/src/routes/app/dashboard/ActivityStrip.svelte, registrado como ca-ui-workaround(#N) em .agents/steering/design-system.md.
- 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