mc-dashboard/app
hurkicorgi 3a69dc9243 Rich per-player stats + pick-your-metric leaderboard
- lib/player-stats.ts: single computePlayerStats() reads every
  world/stats/<uuid>.json plus world/advancements/<uuid>.json and joins
  with usercache.json. Returns a flat PlayerStats record per player:
  playtime, longest life, mob/player kills, deaths, K/D, damage dealt
  and taken (HP-scaled), blocks mined, items used / crafted / picked up
  (+ unique), distance (summed across all _one_cm stats), chest opens,
  nether/end trips, villager trades, fish caught, animals bred, and
  advancements (non-recipe) / recipes unlocked.
- New GET /api/players/stats (authed, 60s memo). Existing
  /api/players/playtime now returns a thin projection of the same
  computed data (shared cache key keeps both endpoints cheap).
- New components/Leaderboard.tsx with a metric select grouped into
  Time / Combat / World / Exploration / Progression / Economy (22
  metrics). Sorts descending, top 10 with "show all" toggle, smart
  number formatting (1.2k / 3.4M / HP / km). Replaces the old
  PlaytimeLeaderboard in the Players tab.
- PlayerDrawer upgraded: uses the full stats payload, shows small
  tiles for Kills / Deaths / K/D / Advs / Mined / Crafted / Distance
  alongside Playtime + Last seen.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 06:37:50 -06:00
..
admin Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
api Rich per-player stats + pick-your-metric leaderboard 2026-04-13 06:37:50 -06:00
login UX polish pass 2: toasts, optimistic updates, mod update detection 2026-04-13 05:11:17 -06:00
error.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
favicon.ico Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
global-error.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
globals.css Initial commit: Minecraft dashboard 2026-04-13 00:46:58 -06:00
layout.tsx UX/UI/perf pass: admin tabs, theme toggle, log polish, mod search, JAR cache 2026-04-13 04:58:25 -06:00
not-found.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
opengraph-image.tsx Bundle analyzer, task run-now/toggle/weekly, error reporter, OG image, a11y 2026-04-13 06:08:48 -06:00
page.tsx Pass 3 first slice: mod update action, error boundaries, a11y, palette 2026-04-13 05:30:23 -06:00
providers.tsx Bundle analyzer, task run-now/toggle/weekly, error reporter, OG image, a11y 2026-04-13 06:08:48 -06:00