Label: complexity: high
Points: 200
Description
For creator analytics dashboards, group invoices by creation-week/month cohorts and compute funding-completion rates per cohort, to visualize trends over time.
Technical Context
New src/cohortAnalyzer.ts. Buckets Invoice[] by configurable time period (week/month) using Invoice creation timestamp data, computes completion rate per bucket.
Acceptance Criteria
Label: complexity: high
Points: 200
Description
For creator analytics dashboards, group invoices by creation-week/month cohorts and compute funding-completion rates per cohort, to visualize trends over time.
Technical Context
New
src/cohortAnalyzer.ts. BucketsInvoice[]by configurable time period (week/month) usingInvoicecreation timestamp data, computes completion rate per bucket.Acceptance Criteria
analyzeCohorts(invoices, period: "week"|"month")returns ordered cohort buckets with{ period, total, completed, completionRate }