Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(db): seed a full year of realistic activity for demo personas

4 months ago

abbd43f
Authored
grim7/13/2026, 8:19:04 AM
the story was a thin handful of runs — it read as a toy, not a repo. make
the seed simulate an ACTIVE, ~year-old maintainer repo:

- ~2,500 change requests across 365 days with a weekday rhythm, occasional
  spam waves, and a dense recent window so the home sparklines are alive.
- a realistic verdict mix (≈62% pass / 28% block / 10% review) from dozens
  of contributors — regulars, occasionals, spammers, newcomers — with
  reason-matched titles and failing rules.
- varied ai-review findings across files (four templates, block + review).
- a real pending queue (capped, recent) plus a history of decided reviews.
- enabled rule configs (baseline + ai-review) so the rules page has data,
  and daily rollups across the whole year for analytics history.

built deterministically (seeded PRNG) and bulk-inserted — ~2,500 runs /
19k steps seed in ~3s. idempotent: skips an already-populated repo, so
repeat logins are instant; reset to reseed. the one-repo and many-repos
personas now get stories too (many-repos lighter at 120 days each); empty
stays intentionally empty.

verified live: dev:demo boots, active persona lands on a populated
dashboard. checks: typecheck all, biome, boundaries, 216 tests.

Parente421886

5 files changed
  • all-summaries.md+16−0
  • apps/web/src/lib/server/dev/handler.ts+9−2
  • packages/db/src/pglite.integration.test.ts+4−5
  • packages/db/src/seed.ts+612−99
  • packages/db/src/services/seed.integration.test.ts+24−9