1
0
Fork 0
polaris-task-force/tests
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
..
e2e feat(missions): add a per-mission planning map with Arma markers 2026-10-04 02:53:21 -04:00
int feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
push-schema.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
seed-baseline.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
test-db.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
vitest-global.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00
vitest-teardown.ts feat(test): run tests against a dedicated truncated database 2026-09-22 17:58:17 -04:00