Skip to content

Add quick retry button to game HUD for mobile#70

Merged
vicplusplus merged 2 commits intomainfrom
claude/mobile-quick-retry-button-aztYG
Apr 9, 2026
Merged

Add quick retry button to game HUD for mobile#70
vicplusplus merged 2 commits intomainfrom
claude/mobile-quick-retry-button-aztYG

Conversation

@vicplusplus
Copy link
Copy Markdown
Owner

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

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
@vicplusplus vicplusplus force-pushed the claude/mobile-quick-retry-button-aztYG branch from 7c96a12 to 61ffcb6 Compare April 8, 2026 21:31
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
@vicplusplus vicplusplus merged commit b345cdd into main Apr 9, 2026
4 checks passed
@vicplusplus vicplusplus deleted the claude/mobile-quick-retry-button-aztYG branch April 9, 2026 15:18
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.

2 participants