Add quick retry button to game HUD for mobile#70
Merged
vicplusplus merged 2 commits intomainfrom Apr 9, 2026
Merged
Conversation
Adds a retry (refresh) icon button in the top-right corner of the game HUD. Tapping it resets the board immediately if no arrows have been cleared, or shows a "Retry?" confirmation modal first to prevent accidental resets mid-solve. The button is hidden during loading and the victory sequence. Keyboard navigation links it between the back button (Left/Right) and trail toggle (Up/Down). Layout and navigation coverage tests updated. https://claude.ai/code/session_018W1WstkubVp8eK9yWP5zWe
7c96a12 to
61ffcb6
Compare
GameHud.uxml now contains two ConfirmModal instances (leave-modal and retry-modal), each with identically-named modal-confirm-btn and modal-cancel-btn. root.Q<Button>(name) returns only the first match in DOM order, which may be a hidden instance, causing AssertStateNavigation to wrongly report a navigable button as hidden. Switch to Query<Button>(name).ToList() and assert that at least one matching button is visible. Single-button cases are unaffected. https://claude.ai/code/session_018W1WstkubVp8eK9yWP5zWe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a retry (refresh) icon button in the top-right corner of the game
HUD. Tapping it resets the board immediately if no arrows have been
cleared, or shows a "Retry?" confirmation modal first to prevent
accidental resets mid-solve. The button is hidden during loading and
the victory sequence. Keyboard navigation links it between the back
button (Left/Right) and trail toggle (Up/Down). Layout and navigation
coverage tests updated.
https://claude.ai/code/session_018W1WstkubVp8eK9yWP5zWe