Phase 4 part 2: MRR, its movements, NRR and cohorts

Each customer's MRR at each month's end, from the recurring lines of paid
and open invoices: the amount after discounts over the billing interval,
prorations over their part-period. Moves are new, expansion, contraction,
churn and reactivation (sub-dollar noise ignored); NRR monthly and over
12 months; cohorts by first paid month. A start month, suggested when
most of the business appears at once (billing moved to Stripe), makes
those customers the base. Metrics page with a chart, the month table,
cohorts, and each month's customer moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 12:17:53 -07:00
co-authored by Claude Opus 5.5
parent 2c242d8c94
commit 5e799c7541
11 changed files with 860 additions and 2 deletions
+9
View File
@@ -436,3 +436,12 @@ table.runs { margin-top: 0.75rem; }
.checks li, .list td .small, .list td a { overflow-wrap: anywhere; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
/* Metrics */
svg.chart { width: 100%; height: auto; margin: 0.75rem 0 0.25rem; }
svg.chart rect { fill: hsl(var(--primary)); opacity: 0.85; }
svg.chart rect:hover { opacity: 1; }
svg.chart text { font-size: 9px; fill: hsl(var(--muted-foreground)); }
table.cohorts td, table.cohorts th { padding-left: 0.4rem; padding-right: 0.4rem; font-size: 0.85rem; }
.table-wrap { overflow-x: auto; }
table.compact th, table.compact td { white-space: nowrap; padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.85rem; }