1
0
Fork 0
polaris-task-force/tests/e2e
Z8MB1E 0bb9719139 feat(minigames): show upcoming games as disabled with a release countdown
- Optional `estimatedReleaseDate` (date and time) on the minigames registry,
  with a named migration and regenerated types.
- Sidebar: an `upcoming` game renders greyed out and non-interactive, with a
  tooltip carrying the estimate and a live countdown. It is a hoverable row
  rather than a disabled menu item, because a disabled Radix item sets
  `pointer-events: none` and would swallow the tooltip.
- Page gate: each minigame page checks its registry status and renders
  `MinigameComingSoon` instead of the arena while the game is upcoming, so a
  typed URL cannot reach unfinished gameplay. The date is display only: the
  game goes live when an admin flips `status` to active.
- Leaderboards exclude upcoming games, so they get neither a tab nor a board.
- Pure `countdown.ts` formatter plus a client ticker that computes the
  remaining time only after mount, avoiding an SSR hydration mismatch.

Note: `registry.ts`, `payload-types.ts` and `migrations/index.ts` also carry
the Call for Fire registry row and its generated types. That feature was
committed as 6d6a5fb and announced a separate commit for those files; they are
included here because they are entangled with these edits in the same files.

Tests: pure countdown unit tests, registry/gate/leaderboard integration tests,
and an e2e that seeds an upcoming row, hovers the disabled sidebar entry to
assert the tooltip, and checks the coming-soon gate.
2026-10-11 18:47:43 -04:00
..
banner_check.spec.mjs test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
frontend.e2e.spec.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
global-setup.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
minigame-leaderboards.e2e.spec.ts test(minigames): e2e smoke for the leaderboards page and document periods 2026-10-11 17:06:52 -04:00
minigame-upcoming.e2e.spec.ts feat(minigames): show upcoming games as disabled with a release countdown 2026-10-11 18:47:43 -04:00
mission-planning-map.e2e.spec.ts feat(missions): add a per-mission planning map with Arma markers 2026-10-04 02:53:21 -04:00
operations-reservations.e2e.spec.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
operations.e2e.spec.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
opord-recall.e2e.spec.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
supply-boxes.e2e.spec.ts test(e2e): seed e2e user, serialize workers, and deflake specs 2026-09-30 18:43:29 -04:00
tech-tree.e2e.spec.ts fix(tech-tree): save canvas positions in one request so auto-arrange cannot overload the server 2026-10-03 04:08:29 -04:00
tours.e2e.spec.ts feat(tours): add permission-aware guided tours with replay and device opt-out 2026-09-30 18:43:21 -04:00