feat(client): expose pinned debug click mode control#5152
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a dedicated sandbox dropdown menu within the game menu, allowing users to open sandbox tools and toggle the visibility of a quick floating click-mode button. It also adds corresponding state management in useUiStore, localization keys across multiple languages, and unit tests. The feedback suggests a UX improvement to keep the sandbox dropdown menu open when toggling the click-mode button visibility, rather than closing it immediately.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
| onClick={() => { | ||
| onToggleDebugClickModeButtonVisible(); | ||
| setSandboxOpen(false); | ||
| }} |
There was a problem hiding this comment.
Closing the dropdown menu immediately when toggling a setting (like the click mode button visibility) can be jarring for users who might want to perform multiple actions or verify the toggle state. Consider keeping the menu open by omitting setSandboxOpen(false) here.
| onClick={() => { | |
| onToggleDebugClickModeButtonVisible(); | |
| setSandboxOpen(false); | |
| }} | |
| onClick={() => { | |
| onToggleDebugClickModeButtonVisible(); | |
| }} |
No description provided.