Skip to content

Add telemetry dashboard with Play/Stats toggle - #6

Open
Copilot wants to merge 1 commit into
mainfrom
copilot/telemetry-dashboard
Open

Add telemetry dashboard with Play/Stats toggle#6
Copilot wants to merge 1 commit into
mainfrom
copilot/telemetry-dashboard

Conversation

Copilot AI commented Aug 6, 2026

Copy link
Copy Markdown

Summary

Adds a telemetry/stats dashboard to the game, viewable via a new Play/Stats toggle in the header. Since there's no analytics backend yet, the dashboard runs against mock data (src/telemetry-data.js) shaped like a real telemetry API response, so it's a drop-in swap later.

Design process

Explored 3 mockup concepts (rendered as screenshots) before building:

  • Concept A: Light stat cards (corporate analytics look)
  • Concept B: Dark terminal (monospace, keyboard heatmap)
  • Concept C: Playful tiles (matches Wordle's own aesthetic)

Chosen direction: Concept A's card layout, rendered in Concept B's dark color palette.

All mockups plus screenshots of the shipped dashboard are in docs/telemetry-mockups/. Full write-up in docs/telemetry-dashboard-plan.md.

What's included

  • src/telemetry-data.js: mock summary stats, guess distribution, letter accuracy
  • src/components/TelemetryDashboard/: dashboard component (stat cards, guess distribution chart, letter accuracy grid)
  • src/components/Header/Header.js: Play/Stats nav toggle
  • src/components/App/App.js: switches between Game and Dashboard views
  • src/styles.css: dark dashboard theme, scoped to .telemetry-* classes (no impact on existing game styles)

Out of scope

A player leaderboard was proposed as a fast-follow but needs per-player identity/accounts that don't exist yet, so it's left for a future PR.

Verification

  • npx eslint on changed files: clean
  • npx parcel build public/index.html: succeeds
  • Manually verified both Play and Stats views render correctly via headless Chrome screenshots (included in docs/telemetry-mockups/real-*.png)

Adds a stats dashboard showing games played, win rate, guess
distribution, and letter accuracy, built against mock telemetry
data. Includes 3 design mockup concepts and the final chosen
design (dark stat cards) as artifacts in docs/telemetry-mockups.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants