Skip to content

fix(seed): revenue chart should not spike on the current month#37

Merged
jeffgicharu merged 1 commit into
mainfrom
fix/revenue-curve-realism
May 19, 2026
Merged

fix(seed): revenue chart should not spike on the current month#37
jeffgicharu merged 1 commit into
mainfrom
fix/revenue-curve-realism

Conversation

@jeffgicharu
Copy link
Copy Markdown
Owner

Why

Live dashboard Monthly Revenue showed the in-progress current month at ~$98k vs ~$10–38k for every prior full month — a 2.5× artifact from the paid-invoice month weighting front-loading month 0. That reads as synthetic seed data, not a real business.

What

Rebalanced PAID_MONTHS so paid invoices spread fairly evenly across the trailing 6 months with only a partial current month.

Verification

Local fresh reseed: per-month paid totals are now in a comparable range with the current month mid-range (no final-month spike); the curve is naturally bumpy (realistic for project-based billing). tsc/eslint clean. Before/after chart screenshots in the final report.

…spike

The paid-invoice month weighting front-loaded the current month, so the
dashboard Monthly Revenue chart showed the (partial) current month at
~2.5x every prior full month — reading as 'seed dumped recent data'
rather than a real business. Rebalanced so paid invoices spread across
the trailing 6 months with only a partial current month.
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the demoSeed function in seed.ts to adjust the distribution of paid invoices in the PAID_MONTHS array. The change spreads invoices more evenly across the trailing six months to create a more realistic revenue chart for demo data, avoiding a spike in the final month. I have no feedback to provide as there are no review comments.

@jeffgicharu jeffgicharu merged commit d736dff into main May 19, 2026
19 checks passed
@jeffgicharu jeffgicharu deleted the fix/revenue-curve-realism branch May 19, 2026 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant