Front end for the scoresheet#12
Draft
troccoli wants to merge 53 commits into
Draft
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4de7d5d to
8491745
Compare
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Clicking the substitutions card opens a modal showing on-court players (coloured round buttons) and bench players (white badges). Clicking a player fills the corresponding input; if a substitution pair is active, the partner input is auto-filled. Locked players (whose pair has already swapped back) are visually disabled and rejected server-side. JSON data is stored in data-* attributes to avoid double-quote conflicts with the x-data HTML attribute. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When a set is in progress and a team has used all 6 substitutions, the substitutions card remains clickable and opens a confirmation popup. Confirming shows a dismissible "No substitutions left" modal with a return-to-play button, mirroring the third-timeout flow. Server-side validation in submitSubstitution() also rejects any attempt to submit beyond the limit as a defence-in-depth measure. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…URATION Defaults to 30 seconds. Override in .env to shorten during development. Co-Authored-By: Claude Sonnet 4.6 <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.
Closes #6