ai-code-battle/web
jedarden 804e31798f Add Phase 9 features: embeddable replay widget and playlists
Embeddable Replay Widget:
- web/embed.html: Minimal standalone HTML with Open Graph and Twitter Card tags
- web/src/embed.ts: TypeScript embed viewer with auto-play, progress bar, keyboard controls
- R2 warm cache + B2 cold archive fallback for replay loading
- ~7KB gzipped (well under 50KB target)

Replay Playlists:
- cmd/acb-indexer/src/playlists.ts: Auto-curated playlist generator
  - Featured, upsets, comebacks, domination, close games, long games, weekly categories
  - Uses match data to detect notable games
- web/src/pages/playlists.ts: SPA page for browsing playlists
- web/src/api-types.ts: Added playlist types and fetch functions

Other changes:
- web/src/replay-viewer.ts: Added getIsPlaying() method for embed viewer
- web/vite.config.ts: Added embed.html as build entry point
- web/app.html: Added Playlists nav link
- web/public/img/embed-placeholder.svg: OG image placeholder

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-29 02:03:45 -04:00
..
public Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
src Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
.gitignore Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
app.html Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
embed.html Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00
index.html Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
package-lock.json Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
package.json Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
pages.json Fix R2 custom domain in pages.json to match project spec 2026-03-26 22:10:37 -04:00
tsconfig.json Complete Phase 3: TypeScript Canvas replay viewer 2026-03-24 07:30:04 -04:00
vite.config.ts Add Phase 9 features: embeddable replay widget and playlists 2026-03-29 02:03:45 -04:00