Repository navigation
Description
Task
T-086b· Milestone M8 — Dashboard · Size S · Priority P0 · Epic #8Implements FR-DSH-008
Branch
feat/t-086b-components-robustnessbar-spine-virtualised-emptystate— one task = one branch = one PR (doc 32 §6)
Summary
Implement RobustnessBar (−1…1 centred zero), Spine (vertical verdict ticks, virtualised for 10 000 runs, click = jump), EmptyState (explains next action) and StatTable (sortable, numeric alignment, units).
Context / motivation
Doc 13 §6 component contracts.
Scope
In scope
- TanStack Virtual for Spine and StatTable > 200 rows.
Implementation guidance
RobustnessBar:value: numberclamped to [−1, 1]; centred zero line; negative fill--risk-failure, positive--risk-safe;role="meter"witharia-valuemin=-1,aria-valuemax=1,aria-valuenow.Spine:runs: {ordinal: number; verdict: Verdict; id: string}[],onSelect(id),selectedId?; virtualised with@tanstack/react-virtual(tick height from tokens); arrow keys move the selection;aria-labellike "Run 87, FAIL".EmptyState:title,body,action?: {label, to | onClick},illustration?; copy lives with the calling feature (doc 13 §4: always explain the next action).StatTable<T>: column defs{key, header, align, format?, sortable?}; sortable headers witharia-sort; virtualised beyond 200 rows (doc 13 §4); numeric columns right-aligned with tabular numerals.- Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff
PLR2004); public APIs typed (mypy strict) and documented.
Acceptance criteria
- Spine renders 10 000 ticks with < 16 ms frame (perf test in jsdom approximated by render count).
- Unit + axe tests.
-
aria-sorttoggles correctly. - Spine keyboard navigation test.
- Rendering 10 000 rows mounts only a small window of row elements (virtualisation assertion).
- Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
- Docs, config reference and CHANGELOG
Unreleasedupdated where behaviour, keys or interfaces changed. - Definition of Done (doc 32 §3) satisfied.
Tests required
- Component tests per folder.
Dependencies
Blocked by: #162 (T-085a)
Blocks: #169 (T-087a), #171 (T-088a), #172 (T-088b), #173 (T-089a), #179 (T-111b), #180 (T-112a), #182 (T-113a)
Parallelization notes
Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:
web/src/components/RobustnessBar/**web/src/components/Spine/**web/src/components/EmptyState/**web/src/components/StatTable/**
Parallel with T-086a/c.
Definition of Done
Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-086b (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.
References
Design docs: doc 13 §6 · doc 13 §4
Requirements: FR-DSH-008 (traceability: doc 28)
External:
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity