feat(engine): win-summary action hierarchy — Play Again, Watch, Share #164
Reference in New Issue
Block a user
Delete Branch "feat/win-flow"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase G of
docs/ui-redesign-2026-07.md(independent of the settings-tabs/you-hub stack — based on master, one file:win_summary_plugin.rs).What
WatchReplayButton/CopyShareLinkButtonmarkers fromstats_plugin, so the existing handlers drive them — including the no-replay / no-share-URL toast fallbacks. Newclose_overlay_on_watch_replaycollapses the celebration when Watch is pressed; Share keeps it open so the copy toast lands on the celebration screen.NewGameRequestEvent::default()(modeNone= same mode; deal options come from Settings) — no new plumbing.Bug fixed in scope
The old handler played
history.replays.last()— with newest-first ordering that was the oldest replay, not the just-won game. Both actions now go throughSelectedReplayIndex, whichrefresh_replay_history_on_winalready snaps to 0 (newest) on everyGameWonEvent.Verification
--all-targets -D warningsclean, fmt (re-verified during review).Follow-up noted (not in this PR)
Watch from the You-hub Replays tab doesn't close that modal either — same wart, flagged for the menu-redesign dismissal sweep.
🤖 Generated with Claude Code