Repository navigation
Add a photosensitivity warning to visual games - #237
Merged
Merged
Conversation
Games that flash visual stimuli (Card Rat, Directional Processing, Fast Piggie, Field of View, High-Speed Memory, Object Track, Orbit Sprite Memory, Otter Stop) now show a highlighted warning box just above the Start button. The shared .game-flash-warning style uses the existing warning tokens (7.1:1 text contrast). The template carries the warning, and flashWarning.test.js requires it in every game except the audio-only ones (Fine Tuning, Sound Sweep). Fixes #202 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Object Track's balls move and highlight but do not flash images, so it joins the audio-only games on the test's NO_FLASH_GAMES list. Refs #202 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix "as been" and "Cat rat" typos, tighten the Directional Processing wording, and end each warning with "Stop and seek professional advice if you notice anything that could indicate a problem." Refs #202 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Adds a highlighted photosensitivity warning box to the welcome panel of every game that flashes visual stimuli, just above the Start button. Fixes #202.
What changed and why
<p class="game-flash-warning">added to Card Rat, Directional Processing, Fast Piggie, Field of View, High-Speed Memory, Orbit Sprite Memory, and Otter Stop. Fine Tuning and Sound Sweep are audio-only, and Object Track's balls move but do not flash, so those three don't get it..game-flash-warningrule inapp/styles/game-shared.cssreuses the existing--color-warning-*tokens (text 7.1:1 on the fill) and adds a heavier left border._template/interface.htmlincludes the warning, with a note to delete it only for audio-only games. The convention is documented inapp/games/CLAUDE.md,app/CLAUDE.md, and_template/CLAUDE.md.app/games/flashWarning.test.jsscans every game directory and requires the warning, placed before the Start button, in every game not on aNO_FLASH_GAMESlist. A new visual game is caught by default.How it was tested
npm run lintandnpm test: all 2156 tests pass.Review closely
🤖 Generated with Claude Code