[ui-pvp] PvP-first Play: owned-card eligibility, deck picker, quick match/invites, ladder, battle recap page (#65) #76

Merged
claude merged 7 commits from night2/ui-pvp/collection-lobby into night/2026-11-17 2026-11-18 16:13:27 +00:00
7 Commits
Author SHA1 Message Date
claude db578a44b4 Merge night/2026-11-17 into #76 (resolve src/App.tsx with #74)
# Conflicts:
#	src/App.tsx
2026-11-18 11:13:06 -05:00
claudeandClaude Opus 5.5 a032c6e5d6 [ui-pvp] follow host-pvp #77: POST /invites/:code/join, drafting phase, record decks as strength
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:52:40 -05:00
claudeandClaude Opus 5.5 53736e12a0 [ui-pvp] review notes: neutral 'victory' wording in the fallback recap; /recap/<id> is canonical (/battle/<id> kept as alias)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:40:11 -05:00
claudeandClaude Opus 5.5 2e88a8dbf0 [ui-pvp] recap infobox cells wrap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:23:45 -05:00
claudeandClaude Opus 5.5 c136c500a3 [ui-pvp] onAct resolves on host acceptance; collection passes through the server duel profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:02:11 -05:00
claudeandClaude Opus 5.5 3db3ff7858 [ui-pvp] placeholder board labels follow duel-core action fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:01:43 -05:00
claudeandClaude Opus 5.5 0875573cd7 [ui-pvp] PvP-first Play: owned-card eligibility, deck picker, quick match, invites, ladder, battle recap page
- src/game/collection/: collection model (GET /api/game/collection, local fallback), 40-card
  eligibility with the 4-per-article copy limit, "23 / 40 cards. Mine to play" gate, constructed
  deck picker. No loaners, starters or borrowed decks (BRIEF decisions 1-2).
- PlaySection: PvP hub with quick match, private lobby + invite link, join by link, ladder;
  bot match slot waits for ui-duel's board.
- online.ts / OnlinePlay.tsx: duel PvP client against host-pvp's routes (idToken in body,
  Bearer seat token, ?v= polling with 204), validated responses.
- Leaderboards: Elo ladder with W/L fallback.
- src/game/recap/: /battle/<id> (and /recap/<id>) standalone page rendering duel-design's
  RecapDoc shape; deterministic template fallback over real match data until #69 merges.
- App: /play/invite/<code> and /battle/<id> deep links; session.idToken().
- tests/ui-pvp-*.test.ts, tests/e2e/ui-pvp-smoke.mjs (Playwright, stubbed API).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 22:01:28 -05:00