feature: tournament check-in, free agents, join rules and stats leaderboard - #403
Open
lukepolo wants to merge 3 commits into
Open
feature: tournament check-in, free agents, join rules and stats leaderboard#403lukepolo wants to merge 3 commits into
lukepolo wants to merge 3 commits into
Conversation
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.
Features
Check-In — optional per tournament, off by default. Auto-scheduled window (opens/closes N minutes before start), three modes reusing the existing
e_check_in_settingsenum:Captains,Players,Admin. InPlayersmode a team is checked in oncemin_players_per_lineupplayers confirm, so substitutes aren't required. Schedule locks once the window opens.CheckInReview— new tournament status. If every team checks in, the tournament closes registration as before. If any team misses, it is held instead of seeding. Organizers can re-admit a team, extend check-in, or continue without them. Auto-continues at start so a held tournament can never stall. No-shows are never deleted — they keep their roster and are simply excluded from seeding.Free Agents — players register alone and are drafted into balanced teams. Selection is by sign-up time only; ELO decides which team, never who gets a slot.
Join rules — per-tournament minimum role, ELO range, invite-only + passcode, preferred regions. Gates the player being added, not just whoever clicks.
Stats leaderboard — tournament-scoped, with ADR and HLTV rating that
v_tournament_player_statsdoesn't carry.Notes
assign_seeds_to_teamsandtournament_has_min_teamsgate on the window having opened, not just oncheck_in_required— behaviour is unchanged for any tournament that doesn't use check-in.hasura.user, and SQL guards treat a role-less session as an internal write.registration_passcodeis exposed via a row-level computed field, not a column permission (Hasura column permissions are per-role, not per-row).node scripts/seed-tournament-qa.mjsstands up seven tournaments covering every state.