Skip to content

v0.6.3

Choose a tag to compare

@mkjt2 mkjt2 released this 12 Jun 17:56
ff61a94

Features

  • Cost Distribution toggle (Sessions / Total $) + avg cost tile (#290) — The Trends Cost Distribution card gains a Sessions/Total $ toggle so each histogram band can show either its session count or its summed dollar total, alongside a new average-cost tile. The analytics cost_distribution payload renames percentiles to stats and adds an avg (arithmetic mean) field.
  • Green bars in Cost Distribution Total $ mode (#291) — Histogram bars render green when the card is in Total $ mode, visually distinguishing it from the Sessions view.

DB Migrations

None.

API Changes

  • GET /api/analyticscards.cost_distribution shape change (#290): the cost_distribution.percentiles object ({p50, p90, p99}) is renamed to cost_distribution.stats and gains an avg field (arithmetic mean of the per-data-point cost values, decimal string). Still null when there are no data points.

Breaking Changes

  • API consumers reading cards.cost_distribution.percentiles from the analytics response must switch to cards.cost_distribution.stats (same p50/p90/p99 fields, now with an added avg). No env var, CLI, or migration impact.