Skip to content

feat(admin): add experimental skill suggestions to admin toolbox#589

Open
garrappachc wants to merge 3 commits intomasterfrom
feat/skill-suggestions
Open

feat(admin): add experimental skill suggestions to admin toolbox#589
garrappachc wants to merge 3 commits intomasterfrom
feat/skill-suggestions

Conversation

@garrappachc
Copy link
Copy Markdown
Member

Summary

  • Adds a games.skill_suggestions boolean config (default off, marked experimental) toggled from the Player Restrictions admin page
  • When enabled, shows a small / arrow inside the skill spinner for any class where the player's performance consistently suggests their manually-set skill is miscalibrated (thresholds: >1550 → skill too low, <1450 → skill too high, requires ≥10 games on the class)
  • Silences a suggestion for 3 games after each skill change by snapshotting stats.gamesByClass into the skillHistory entry at write time — no extra query at render time, no migration needed for existing data

Test plan

  • Enable games.skill_suggestions in Player Restrictions → save
  • Open a player profile as an admin — verify arrows appear on classes where applicable and are absent otherwise
  • Update a player's skill; confirm arrows disappear and only reappear after 3 games on that class
  • Disable the flag → verify no arrows appear for any player
  • Confirm ELO is not mentioned anywhere in the admin-facing UI

🤖 Generated with Claude Code

Shows a subtle per-class up/down arrow in the skill spinner when a
player's performance consistently suggests their skill is set too low or
too high. Guarded behind a games.skill_suggestions feature flag (default
off). Suggestions are silenced for 3 games after each skill change to
allow results to propagate before re-evaluating.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Playwright test results

passed  199 passed

Details

stats  199 tests across 29 suites
duration  15 minutes, 48 seconds
commit  0fc32f2

garrappachc and others added 2 commits May 4, 2026 19:36
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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