Skip to content

[T-087a] Bench (home) screen: active campaigns, workers summary, recent campaigns & cases #169

Closed

Description

@CodewithJha

Task T-087a · Milestone M8 — Dashboard · Size S · Priority P0 · Epic #8

Implements 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.tsx composes ActiveCampaigns (RUNNING/PAUSED: progress bar, counts, cases, strategy/backend chips), WorkbenchSummary (online workers per backend from useWorkers), RecentCampaignsTable (StatTable: name · strategy · backend · status · runs · fails · cases · first failure at · started; row click → console) and RecentCases (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 Unreleased updated where behaviour, keys or interfaces changed.
  • Definition of Done (doc 32 §3) satisfied.

Tests required

  • features/bench/*.test.tsx with 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)

Activity

  1. added this to the M8 — Dashboard milestone on Nov 19, 2026
  2. CodewithJha commented on Nov 22, 2026

    @CodewithJha
    OwnerAuthor

    Shipped on main (merged PR).

  3. added a commit that references this issue on Nov 22, 2026
    893b74a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dashboardReact web dashboardmilestone:M8M8 — Dashboardpriority:P0Critical path / blocks otherssize:S<= 1 daytaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions