{# Reusable cockpit presentation macros. The Overview is the TEMPLATE for a consistency pass across the cockpit (Paper / Replay / Backtest roll to these next), so the headline card, the provisional-Sharpe span, and the compact track row all live here. Pure presentation — no data is computed in templates. #} {# ---- provisional_num: a number that DIMS + marks itself when its window is still pre-gate ------------- Keep short-window forward stats visible ("fun to watch") but visibly NOT authoritative. `warming=True` renders muted with a "· pre-gate" marker; once the window clears it renders bright/normal. `cls` is the bright (cleared) sign-class (e.g. "pos"/"neg"); pre-gate always overrides to muted. #} {% macro provisional_num(text, warming, cls="") %} {%- if warming -%} {{ text }} · pre-gate {%- else -%} {{ text }} {%- endif -%} {% endmacro %} {# ---- headline_card: the fund headline — the CONNECTED backfill record + a small live-readiness chip --- `h` is the backfill view: final_equity, total_return_pct, sharpe, max_dd_pct, since (year), title, and `gate` {days, min_days, status} for the secondary chip. `curve` is the pre-rendered multi-year SVG. #} {% macro headline_card(h, curve) %}
no backfilled record yet · live: gate {{ h.gate.days }}/{{ h.gate.min_days }} · {{ h.gate.status }}
{% endif %}| edge | record | forward | nav |
|---|---|---|---|
| {{ venue }} | |||
dimmed = pre-gate, statistically provisional