Phase 3 of the minigame periods feature: - Record each ledger row's own instant (`occurredAt`, server clock at submit) so calendar windows score runs that actually happened in them. Backfilled from createdAt for existing rows. - Pure UTC calendar windows (lib/minigames/periods/calendar.ts): completed month and year windows, with the first window of each kind partial because it begins at the anchor, and nothing crowned until the window has ended. - Close pipeline extended: after the period sweep it crowns Player of the Month and Player of the Year for every completed window, scored with the same placement ladder as the period champion. Idempotent like the period close (achievement unique key plus an existence check). - period-tick logs the crowned windows; integration tests cover window enumeration, both crowns and idempotency. |
||
|---|---|---|
| .. | ||
| e2e | ||
| int | ||
| push-schema.ts | ||
| seed-baseline.ts | ||
| test-db.ts | ||
| vitest-global.ts | ||
| vitest-teardown.ts | ||