v0.6.3
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_distributionpayload renamespercentilestostatsand adds anavg(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/analytics—cards.cost_distributionshape change (#290): thecost_distribution.percentilesobject ({p50, p90, p99}) is renamed tocost_distribution.statsand gains anavgfield (arithmetic mean of the per-data-point cost values, decimal string). Stillnullwhen there are no data points.
Breaking Changes
- API consumers reading
cards.cost_distribution.percentilesfrom the analytics response must switch tocards.cost_distribution.stats(samep50/p90/p99fields, now with an addedavg). No env var, CLI, or migration impact.