Skip to content

Dashboard

SergeyGer edited this page Nov 23, 2026 · 1 revision

Dashboard

The Streamlit shell provides four screens over one persistent global selection.

Run

python -m pip install -e ".[ui]"
streamlit run app.py -- --profile demo
streamlit run app.py -- --profile private --data-dir /path/to/data

Without Streamlit, python app.py --profile demo prints a plain-text four-screen summary.

Screens

  • Overview - latest/replay session, score percentile, frozen cutoff status, source dates, 20-session outcome horizon, pending labels and evidence wording.
  • Topology - 60-session industry cloud/PCA and persistence summary, Mapper graph with linked member inspector (birth/death/lifetime, membership), 2D default with optional 3D.
  • Validation - frozen evaluation runs (reports/evaluation*.json) with metrics, bootstrap uncertainty, periods/counts, settings/evidence status, matched/missed/false drill-down and CSV export.
  • Data - import preview, active snapshot, refresh attempts/failures, revisions, schema/units/coverage and per-source first/last observations.

Replay safety

Replay starts blind. Reveal next 20 sessions adds only the outcome layer for the current selection; Hide outcome returns to blind. Revealing never changes scores, cutoffs, features or windows, and the blind view never discloses future outcomes.

Global selection and keyboard

The selected screen, mode, session date, reveal state, industry member and evaluation run persist across screens, with a single "Advanced controls" area. Keyboard equivalents: previous/next session, previous/next window, reveal, blind and member previous/next (Alt+Arrow, Alt+PageUp/PageDown, Alt+R, Alt+B, Alt+M). The selection/keyboard API is Streamlit-free and unit-tested.

Accessibility

Neutral canvas, teal market line, amber benchmark, alert marks with shape+text, labelled inputs, chart/table text alternatives, focus indicators, reduced-motion support, 2D default/optional 3D, responsive desktop (1440 px) and narrow (390 px) layouts, and contrast-checked text tokens (>= 4.5:1).

Performance

Cached date-change p95 must stay <= 500 ms over 100 changes and cached demo startup <= 5 s on the 2-vCPU/4-GB reference machine. topomarket.ui.performance records the measured values, environment and build metadata alongside each measurement. The implementation reports a cached date-change p95 of 0.054 ms and cached demo startup of 17.6 ms on the reference checkout.

Tests

Public: selection/keyboard/accessibility contracts, four-screen payloads, replay blind/reveal/blind, data-screen provenance, injected fake-Streamlit rendering, performance thresholds, Streamlit AppTest smoke. Opt-in private acceptance: real 9,250-row snapshot replay/keyboard/provenance and cached-date performance.

Clone this wiki locally