Skip to content

[T-088b] Campaign console: entry stream, Spine and 'Why this scenario?' rationale popover #172

Closed

Description

@CodewithJha

Task T-088b · Milestone M8 — Dashboard · Size M · Priority P0 · Epic #8

Implements FR-DSH-002 · FR-SEL-008

Branch feat/t-088b-campaign-console-entry-stream-spine — one task = one branch = one PR (doc 32 §6)

Summary

Implement the newest-first entry stream (virtualised; verdict, class, ρ, condition strip, phase, μ ± σ), the Spine in the margin rail, j/k navigation, and the rationale popover (phase, predicted μ ± σ, acquisition value, nearest known case).

Context / motivation

Transparency of the intelligent selector (US-013).

Scope

In scope

  • Click entry → Run entry route.

Implementation guidance

  • features/console/stream/EntryStream.tsx: virtualised newest-first list from the infinite runs query (sort=-ordinal); each row shows ordinal, VerdictNotch, primary class, ρ (signed, 2 dp), ConditionStrip (xs), phase chip and μ ± σ from selection_rationale.
  • stream/RationalePopover.tsx (Radix Popover): phase, predicted μ ± σ, acquisition value + name, nearest known case (code + distance), ε-explore flag — fields from the run's selection_rationale JSON; missing fields are hidden, never shown as "undefined".
  • The Spine renders into the MarginRail slot (T-085b); clicking a tick scrolls the stream to that run.
  • Keyboard: j/k move the selection, Enter opens Run entry, r opens the replay dialog for the selected run (registered via lib/keyboard.ts, feature scope).
  • 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

  • 10 000-entry stream scrolls smoothly (virtualised).
  • Popover content matches selection_rationale fixture.
  • A new SSE run appears at the top without moving the user's position when they have scrolled down (anchor test).
  • Popover keyboard accessible.
  • 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/console/stream/*.test.tsx.

Dependencies

Blocked by: #165 (T-085d), #166 (T-086a), #167 (T-086b)

Blocks: #187 (T-118)

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/console/stream/**

Parallel with T-088a.

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-088b (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.3 · doc 13 §4 · doc 08 §1 · doc 07 §1

Requirements: FR-DSH-002 · FR-SEL-008 (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).

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:M1-3 daystaskChild task of a milestone epictype:featureNew functionality

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions