Skip to content

[T-111b] Risk atlas screen: pair matrix, enlarged slice, anchor selector & sliders, volume gauge, 'Probe here' #179

Closed

Description

@CodewithJha

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

Implements FR-DSH-004 · FR-RSK-004 · PR-07

Branch feat/t-111b-risk-atlas-screen-pair-matrix — one task = one branch = one PR (doc 32 §6)

Summary

Implement features/atlas/ per doc 13 §3.6: upper-triangle small multiples, enlarge on click, anchor (nominal / case medoid) + sliders re-querying /risk/slice, stacked volume bar with Wilson CIs and robustness score, 'Probe here' → manual run (UC-05).

Context / motivation

US-006: operating-envelope map.

Scope

In scope

  • Debounced slider queries; cached per (pair, anchor, values).

Implementation guidance

  • features/atlas/AtlasPage.tsx (tab atlas): PairMatrix (upper triangle of d×d RiskHeatmap thumbnails at low resolution), SliceView (enlarged at risk.slice_resolution exposed via /meta), AnchorControls (nominal | case medoid; sliders for non-axis params → anchor values, debounced via atlasConfig.ts), VolumeGauge (stacked SAFE/UNCERTAIN/FAILURE with Wilson CI whiskers and the robustness score), ProbeHereDialog (click → confirm physical values → POST /campaigns/{id}/runs manual run, repeats default 1).
  • Query keys include anchor + resolution for caching; prefetch neighbouring pairs on hover.
  • URL state: selected pair and anchor in search params (shareable link).
  • 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

  • Probe-here creates a manual run with the clicked values (MSW).
  • Anchor change re-queries.
  • A shared URL restores the same view.
  • The probe-here run appears in the console stream via SSE.
  • 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/atlas/*.test.tsx.

Dependencies

Blocked by: #178 (T-111a), #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/atlas/**

Independent 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-111b (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.6 · doc 12 §3.4 · doc 03 §UC-05 · doc 09 §5.4

Requirements: FR-DSH-004 · FR-RSK-004 · PR-07 (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