1
0
Fork 0
polaris-task-force/src/app
Z8MB1E 997ae39a59 feat(minigames): record completed runs in the period ledger
Phase 1 of the minigame periods feature:

- Shared server-side recorder (lib/minigames/periods/record.ts) writes one
  minigame-entries row per completed scored run, lazily creating the
  anchored period it belongs to (unique startDate makes it race-safe).
  Failures are swallowed so a ledger hiccup can never break a submission.
- Pure anchored-period math (lib/minigames/periods/derive.ts).
- Wire the recorder into all five Core submit actions after their profile
  update: flappy (passes > 0), EOD (win), radio (>= 1 correct message),
  aim trainer and OPORD (any completed round).
- Server-validated durations for every game: flappy and radio watch now
  report durationMs (with bounds), aim trainer reports its run duration
  (clamped to the 30s course), EOD derives it from seconds, OPORD from
  timeMs.
- Integration test covering derivation, lazy period creation, pre-anchor
  null period and the never-throw guarantee.
2026-10-11 17:06:52 -04:00
..
(frontend) feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
(payload) chore(payload): regenerate admin import map 2026-10-09 13:13:27 -04:00
api feat(notifications): add staff toggle to show only your own notifications 2026-10-09 14:43:12 -04:00
login feat(analytics): add Microsoft Clarity analytics 2026-10-01 10:04:45 -04:00