Skip to content

Replay UI: hand and battle result banners + CLAUDE.md#1

Open
AThraen wants to merge 2 commits into
mainfrom
feat/claude-init
Open

Replay UI: hand and battle result banners + CLAUDE.md#1
AThraen wants to merge 2 commits into
mainfrom
feat/claude-init

Conversation

@AThraen
Copy link
Copy Markdown
Contributor

@AThraen AThraen commented May 15, 2026

Summary

  • Hand result bannerhand_ended now surfaces a persistent pill at the top of the replay table: winner, hand description from the showdown event (e.g. Two pair, Kings and 4s), and pot delta. Previously a 1.6s yellow seat flash was the only signal.
  • Battle result overlaybattle_ended shows a centered "🏆 Battle complete" card with the full ranking, replacing the previous 1.6s winner flash.
  • Both clear when the next hand starts or the user scrubs backward.
  • Adds a CLAUDE.md orientation file generated via /init covering commands, project layout, and key design points (MCP isolation, JSONL audit log, no-build-step static site).

Razor Replay.cshtml and the static-site battle.html get parallel changes; replay.js/site.css are kept in sync between static-site/ and src/AgentBattle.Web/wwwroot/.

Test plan

  • Open a multi-hand replay, scrub to a hand_ended event — banner shows winner + hand description + chip delta
  • Banner clears on the next hand_started
  • Scrub all the way to the end — "Battle complete" overlay shows the full ranking with the winner highlighted
  • Scrub backward past hand_started — banner and overlay disappear
  • Verify with a fold-only hand (no showdown) — banner shows the fold winner without a hand description

🤖 Generated with Claude Code

AThraen and others added 2 commits May 15, 2026 19:00
Quick orientation file generated via /init: build/test/run commands,
project responsibilities, and key design points (MCP isolation, JSONL
audit log, central package management, no-build-step static site).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Round-over previously had no clear indication beyond a 1.6s seat flash.
Now hand_ended surfaces a persistent pill at the top of the table with
the winner, hand description (from the showdown event), and pot delta;
battle_ended shows a centered overlay with the full final ranking.

Both clear when the next hand starts or the user scrubs backward.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant