1
0
Fork 0
polaris-task-force/src/components/frontend/minigames
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
..
blackjack fix(blackjack): show ten-value upcards correctly and auto-refresh the leaderboard 2026-09-19 17:39:18 -04:00
call-for-fire feat(minigames): add Call for Fire artillery observer game 2026-10-11 18:18:02 -04:00
eod fix(eod): unlock custom minefields after clearing two sectors 2026-09-09 18:55:00 -04:00
flappy feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
opord feat(opord): track per-tier best times with leaderboard column and par backfill 2026-09-09 11:37:51 -04:00
poker feat(ui): searchable combobox across data-driven dropdowns 2026-09-17 16:28:17 -04:00
qualification feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
radio feat(minigames): record completed runs in the period ledger 2026-10-11 17:06:52 -04:00
AchievementsHonorRoll.tsx feat(minigames): add period leaderboards, all-time view and achievements 2026-10-11 17:06:52 -04:00
ChipBankCard.tsx feat(chips): persistent chip pool economy with shared balance card 2026-09-14 15:38:05 -04:00
chipBankSounds.ts feat(chips): persistent chip pool economy with shared balance card 2026-09-14 15:38:05 -04:00
MinigameComingSoon.tsx feat(minigames): show upcoming games as disabled with a release countdown 2026-10-11 18:47:43 -04:00
minigameIcon.ts feat(minigames): add Call for Fire artillery observer game 2026-10-11 18:18:02 -04:00
MinigameLeaderboards.tsx feat(minigames): add period leaderboards, all-time view and achievements 2026-10-11 17:06:52 -04:00
PeriodStandingsCard.tsx feat(minigames): add period leaderboards, all-time view and achievements 2026-10-11 17:06:52 -04:00
StandingsTable.tsx feat(minigames): add period leaderboards, all-time view and achievements 2026-10-11 17:06:52 -04:00
UgcLinkButton.tsx refactor(minigames): move routes, components, and libs under minigames parents 2026-09-09 00:02:59 -04:00
UnlockNotice.tsx feat(minigames): add UnlockNotice and wire into EOD and radio arenas 2026-09-08 22:38:38 -04:00
UpcomingCountdown.tsx feat(minigames): show upcoming games as disabled with a release countdown 2026-10-11 18:47:43 -04:00
useLeaderboards.ts feat(minigames): add period leaderboards, all-time view and achievements 2026-10-11 17:06:52 -04:00