// Decorative MRR trendline for the partner dashboard + reports sparklines. // // Historical MRR isn't stored yet (that needs a daily MRR-snapshot job, same // future work as the operator metrics pipeline), so the sparkline shape is // PURELY VISUAL — a deterministic ease-out ramp with a gentle wave so it reads // as organic growth. It is not real data and must not be presented as such; // when a real series lands, swap this for the snapshot query. Deterministic // (no Math.random) so SSR and client renders match. export function useMrrTrendline(points = 90): number[] { return Array.from({ length: points }, (_, i) => { const t = i / (points - 1) const eased = 1 - (1 - t) ** 2 return Math.round(38000 + eased * 17000 + Math.sin(i / 7) * 320) }) }