Skip to content

feat(game): hide graded modes behind a Configure-settings toggle - #203

Merged
marota merged 1 commit into
ainetus:mainfrom
marota:claude/co-study4grid-overflow-error-mtwp20
Aug 3, 2026
Merged

feat(game): hide graded modes behind a Configure-settings toggle#203
marota merged 1 commit into
ainetus:mainfrom
marota:claude/co-study4grid-overflow-error-mtwp20

Conversation

@marota

@marota marota commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Game Mode's landing page always showed a top-level Mode card with three choices (European grid — demo, France THT — graded, France EHV Matpower — graded) before the player had entered anything. The two graded families are advanced datasets a newcomer doesn't need to see, and demo is the only mode most sessions ever use.

The Mode card is now hidden by default. Its former slot inside Configure settings — the "Difficulty (network)" select, which only ever applied to demo mode — is replaced by a toggle button ("🌐 Other modes / regions"). Activating it reveals the exact same Mode picker (buttons + blurbs, unchanged) plus, once demo is selected, the difficulty select right below it, matching the current layout.

Updated GameConfigScreen.test.tsx: tests that exercised France THT / Matpower now open Configure settings and the new mode toggle first (openModePicker() helper), and the settings-toggle test asserts the mode buttons and difficulty select stay hidden until the new toggle is used.

Full suite: 1917 passed / 3 skipped. tsc -b clean, lint 0 errors, code-quality gate OK, production build OK.

Claude-Session: https://claude.ai/code/session_01FSWwhkaPiAsxasECiBws8k

Game Mode's landing page always showed a top-level Mode card with three
choices (European grid — demo, France THT — graded, France EHV Matpower —
graded) before the player had entered anything. The two graded families are
advanced datasets a newcomer doesn't need to see, and demo is the only mode
most sessions ever use.

The Mode card is now hidden by default. Its former slot inside Configure
settings — the "Difficulty (network)" select, which only ever applied to
demo mode — is replaced by a toggle button ("🌐 Other modes / regions").
Activating it reveals the exact same Mode picker (buttons + blurbs,
unchanged) plus, once demo is selected, the difficulty select right below
it, matching the current layout.

Updated GameConfigScreen.test.tsx: tests that exercised France THT /
Matpower now open Configure settings and the new mode toggle first
(openModePicker() helper), and the settings-toggle test asserts the mode
buttons and difficulty select stay hidden until the new toggle is used.

Full suite: 1917 passed / 3 skipped. tsc -b clean, lint 0 errors,
code-quality gate OK, production build OK.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FSWwhkaPiAsxasECiBws8k
Signed-off-by: Antoine Marot <amarot91@gmail.com>
@marota
marota merged commit 7f872c8 into ainetus:main Aug 3, 2026
11 checks passed
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