Phase 4 part 6: the dashboard, CSV exports and an open metrics page

The MRR page adds churn, CLV, CAC and CLV:CAC. Eight tables download as
CSV (MRR, NRR and revenue cohorts, CAC by month and channel, spend,
products, customers). Metrics → Publish builds an open metrics page from
chosen totals only (never a customer) and opens a pull request that adds
or updates it on the site, checked with a Hugo build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 13:28:50 -07:00
co-authored by Claude Opus 5.5
parent 23f765159f
commit 152c14b580
18 changed files with 637 additions and 5 deletions
+17
View File
@@ -1170,6 +1170,23 @@ into `main`.
- CSV export of every table.
- Optionally published as a page on one of the sites, through a pull
request.
- **Built 2026-11-22** (no schema change):
- The MRR and NRR page has a second strip: churn, CLV, CAC and
CLV:CAC.
- `metrics.Export` writes eight tables as CSV, amounts in dollars:
MRR month by month (every month), NRR by cohort and revenue by
cohort (24 months), CAC by month and by channel, the spend log,
products and margins, and customers with their MRR and CRM match.
Each is downloaded at `/metrics/export/<name>.csv`, linked under
its table.
- **Metrics → Publish** builds an open metrics page in Markdown,
with totals only: MRR and ARR, customers and ARPA, 12-month
growth, NRR, churn, and a 12-month table, chosen part by part.
- `seo.Applier.PublishPage` opens a pull request that adds or
updates the page (`hugorepo.UpsertPage`), checked with a Hugo
build. The options and the last pull request are kept. A test
checks that no customer's name, email or ID can appear on the
page.
7. **Pipeline influence**, once the CRM bridge works: the value of open and
won EspoCRM opportunities with at least one marketing touch, by channel.