Skip to content

feat(ranked): add hidden statistics dashboard - #134

Merged
Poooel merged 2 commits into
mainfrom
feat/ranked-stats
Aug 11, 2026
Merged

feat(ranked): add hidden statistics dashboard#134
Poooel merged 2 commits into
mainfrom
feat/ranked-stats

Conversation

@Poooel

@Poooel Poooel commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a public ranked statistics endpoint with aggregate match, Elo, player, queue, and active-player data
  • record event-based queue samples in D1 and expose 30-day player and 24-hour queue histories
  • add a lazy-loaded, localized /ranked-stats page with live indicators and charts
  • prevent search indexing and avoid creating a player identity when the statistics page is opened

Validation

  • pnpm lint
  • pnpm test:unit (76 tests)
  • pnpm test:worker (63 tests)
  • pnpm --filter @knucklebones/front build
  • pnpm --filter @knucklebones/worker exec tsc --noEmit
  • local migration, public API, and direct frontend route smoke tests

Manual test plan

  1. Open /ranked-stats and confirm all indicators and both graphs load.
  2. Join and leave ranked matchmaking, then confirm the current queue value changes.
  3. Complete a ranked game and confirm match, win/loss, Elo, and active-player values update.

Deployment note

Queue history starts collecting after migration 0008 is deployed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying knucklebones with  Cloudflare Pages  Cloudflare Pages

Latest commit: 879f21a
Status: ✅  Deploy successful!
Preview URL: https://2cee8b06.knucklebones-8ep.pages.dev
Branch Preview URL: https://feat-ranked-stats.knucklebones-8ep.pages.dev

View logs

@Poooel
Poooel merged commit bf0e69a into main Aug 11, 2026
2 checks passed
@Poooel
Poooel deleted the feat/ranked-stats branch August 11, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant