Repository navigation
Description
Task
T-087a· Milestone M8 — Dashboard · Size S · Priority P0 · Epic #8Implements FR-DSH-001
Branch
feat/t-087a-bench-home-screen-active-campaigns— one task = one branch = one PR (doc 32 §6)
Summary
Implement features/bench/ per doc 13 §3.1 using hooks from T-085c: active campaign cards with progress, workbench summary, recent campaigns table, recent case specimen tags; empty state with 'New campaign' call to action.
Context / motivation
Landing screen; first impression of the product.
Scope
In scope
- Live progress via SSE bridge.
Implementation guidance
features/bench/BenchPage.tsxcomposesActiveCampaigns(RUNNING/PAUSED: progress bar, counts, cases, strategy/backend chips),WorkbenchSummary(online workers per backend fromuseWorkers),RecentCampaignsTable(StatTable: name · strategy · backend · status · runs · fails · cases · first failure at · started; row click → console) andRecentCases(SpecimenTags of the latest modes).- Data:
useCampaigns({status: ['RUNNING','PAUSED']}),useCampaigns({limit: 10}),useWorkers(); recent cases from the per-campaign modes query for the 3 most recent campaigns (no new endpoint; document the choice). - Live: the SSE bridge patches counts; no polling.
- Empty state: "No campaigns yet — start one to let RoboProbe hunt for failures", with an action to
/campaigns/new. - 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
- Renders seeded fixtures (T-107) correctly; empty state when no data.
- axe 0 serious/critical.
- Loading skeletons (no layout shift) and error states (ProblemView) covered.
- Table rows reachable and activatable with Enter.
- 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
features/bench/*.test.tsxwith MSW fixtures.
Dependencies
Blocked by: #165 (T-085d), #166 (T-086a), #167 (T-086b)
Blocks: no other task (leaf)
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/features/bench/**
Independent feature folder.
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-087a (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 §3.1
Requirements: FR-DSH-001 (traceability: doc 28)
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity
/config.json), SSE client with reconnect/Last-Event-ID and query-cache patching #165feat(web): build Bench and campaign creation wizard (#303)
CodewithJha commentedon Nov 22, 2026
Shipped on main (merged PR).
fix(web): verify seeded Bench and campaign wizard (T-087a/b) (#313)