Skip to content

refactor(admin): group player restrictions by concern - #805

Draft
garrappachc wants to merge 1 commit into
masterfrom
refactor/player-restrictions-sections
Draft

refactor(admin): group player restrictions by concern#805
garrappachc wants to merge 1 commit into
masterfrom
refactor/player-restrictions-sections

Conversation

@garrappachc

Copy link
Copy Markdown
Member

The Player restrictions admin page mixed three distinct concerns in one flat list of controls: registration gates (players.*), join-queue gates (queue.*), and skill configuration (games.*) — the last of which aren't restrictions at all.

This reorganizes the page into three labeled sections (Registration / Join queue / Skill) so the boundaries match the underlying config namespaces. Purely presentational: same single form, route, POST handler, schema, and config keys — no behavior change.

Also reworded two descriptions that were too vague to be actionable:

  • Player skill threshold — now states the actual rule (a player can join a class only if their skill for that class is at or above the value), instead of "classes that meet the given criteria".
  • Default player skill — now notes it's used both for team balancing and the skill-threshold check, and drops the misleading "starts a game" framing.

Separate registration and join-queue restrictions from skill config so
the page's three distinct concerns are no longer mixed in one flat list,
and clarify the skill-threshold and default-skill descriptions.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Playwright test results

passed  245 passed
flaky  1 flaky

Details

stats  246 tests across 47 suites
duration  12 minutes, 30 seconds
commit  74782aa

Flaky tests

chromium › 20-game/01-configure-game-server.spec.ts › configure game server @6v6 @9v9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant