Charts: primitivo leve de faixa de atividade espelhada (24 colunas, sem echarts)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 56/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6
- Forks
- 3
- Ø Merge
- 5 Std. 21 Min.
- Gemergte PRs (30 T.)
- 378
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codeatlasdev/ui
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
codeatlasdev/ui#1340 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:a11y area:components bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
codeatlasdev/ui#1336 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
codeatlasdev/ui#1329 ·
Maintainer antworten meist innerhalb von 1 Tag
-
good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
codeatlasdev/ui#1292 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:components enhancement good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
codeatlasdev/ui#1198 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codeatlasdev/ui
Ähnliche Issues
-
bug frontend
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
CivicTechWR/accessible-housing-portal#578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
nekko-labs/nekko-agent#2998 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
sandbox-quantum/switch#2163 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
lolimmlost/aidj#433 ·
Maintainer antworten meist innerhalb von 1 Tag
-
test: ipcShownDialogKeys.test.tsx can fail the unit run with 'window is not defined' after it endsOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag