Skip to content

Persist guest XP, scores, and achievements without sign-in - #56

Open
CosmonautJones wants to merge 2 commits into
mainfrom
feat/hire-me-site-trust
Open

CosmonautJones wants to merge 2 commits into
mainfrom
feat/hire-me-site-trust

Conversation

@CosmonautJones

Copy link
Copy Markdown
Owner

Guests can earn XP, unlock the trophy, and land Adventure scores on this device without GitHub. Sign-in still syncs to Supabase when it is configured.

Why

XP, achievements, and the leaderboard were built, then gated on OAuth. Unauthenticated visitors (almost everyone on the live site) got a silent no-op: hidden XP bar, dropped scores, achievements reset on refresh.

What changed

  • Local guest profile for XP, levels, streaks, and trophy unlocks
  • Local Adventure scores on High Scores, Recent Runs, and Your Stats
  • Game achievements persist and show in the trophy panel
  • Road Scholar counts opening project pages, not only a card click
  • Pixel Perfect requires a filled 32x32 canvas
  • Cartographer records egg discoveries for guests
  • /adventure no longer crashes when Supabase env vars are missing

Test plan

  • Unit: guest profile, guest scores, project views, achievement QA matrix, tracker persist (67 tests)
  • Browser on localhost: First Steps, Night Owl, Road Scholar, Mixologist, Pixel Perfect, Konami, Red Pill, Cartographer, guest high score 0088
  • After merge: confirm Netlify deploy, trophy on production, one Adventure run as a guest

Deploy

Merge to main so Netlify can ship it.

…sign-in

Guests now keep XP, trophy unlocks, and Adventure high scores on this device.
Road Scholar counts project page views, Pixel Perfect requires a filled 32x32, and game achievements write into the same profile.
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