feat: reusable, time-windowed leaderboard (@cozy-games/leaderboard) #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/reusable-leaderboard"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Extract the leaderboard into a generic, backend-agnostic package and add
rolling Today/Week/Month/All-Time windows, a web component, and local-first
development against the Firestore emulator.
Package (leaderboard/):
Firebase and Supabase adapters (Supabase client injected, no added dep)
in HTML, configure the backend once in JS
error messages, anonymous name) so i18n lives in the app; README + CONFIGURATION
App (mnswpr.com):
local dev (VITE_FIRESTORE_EMULATOR)
Firebase schema-as-code:
no client updates/deletes, namespace-generalized), empty indexes (rolling
windows need none)
leaderboard-env-migration.md, AYO.md)
Utils/tests: UTC date-bucket helper (retained as metadata) with Vitest coverage.