Commit graph

37 commits

Author SHA1 Message Date
Ayo
5a7eea3e12 chore: update packages table with published or documented :) 2026-07-04 11:14:05 +02:00
Ayo
9aec20edbf chore: add roadmap to readme 2026-07-04 10:35:55 +02:00
Ayo
8b66249edf chore: Add CONTRIBUTING.md guide for humans 2026-07-04 09:55:54 +02:00
Ayo
0532fd6d66 chore: infra tooling and configs 2026-07-03 21:54:29 +02:00
Ayo
7685a6dea7 chore: monorepo scripts (dev, build, db, etc) 2026-07-03 20:25:33 +02:00
Ayo
969ebba067 chore: restructure to new cozy-games monorepo
Reviewed-on: https://git.ayo.run/ayo/cozy-games/pulls/1
Co-authored-by: Ayo <ayo@ayco.io>
Co-committed-by: Ayo <ayo@ayco.io>
2026-07-03 13:53:13 +00:00
Ayo
5f6e389258 chore: update readme message 2026-07-03 15:46:50 +02:00
Ayo
7b68c677ef chore: add message of move to cozy-games 2026-07-03 15:45:20 +02:00
Ayo
4fa88fb431 feat: reusable, time-windowed leaderboard (@cozy-games/leaderboard)
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/):
- LeaderBoardService: backend-agnostic core via a storage-adapter seam, with
  Firebase and Supabase adapters (Supabase client injected, no added dep)
- Rolling time windows (last 24h / 7d / 30d) with hover tooltips; top-N by score
- <cozy-leaderboard> web component built on web-component-base: compose the UI
  in HTML, configure the backend once in JS
- Every user-facing string is configurable (labels, tooltips, empty/loading/
  error messages, anonymous name) so i18n lives in the app; README + CONFIGURATION

App (mnswpr.com):
- Compose the board declaratively in index.html via <cozy-leaderboard>
- Nickname + randomized greeting bar; score submission through the element
- Legends: the current all-time leaders frozen into a static /legends page
- Firebase config and leaderboard namespace via Vite env vars; emulator-first
  local dev (VITE_FIRESTORE_EMULATOR)

Firebase schema-as-code:
- firebase.json, .firebaserc, firestore.rules (public reads, create-only scores,
  no client updates/deletes, namespace-generalized), empty indexes (rolling
  windows need none)
- prod (mw-*) vs dev/test (mw-test-*) separation by collection namespace
- emulator config, seed script, and docs (firebase-leaderboards.md,
  leaderboard-env-migration.md, AYO.md)

Utils/tests: UTC date-bucket helper (retained as metadata) with Vitest coverage.

Reviewed-on: https://git.ayo.run/ayo/mnswpr/pulls/1
Co-authored-by: Ayo <ayo@ayco.io>
Co-committed-by: Ayo <ayo@ayco.io>
2026-07-03 13:42:03 +02:00
Ayo
28b90b1dab chore: update readme 2026-07-03 10:32:15 +02:00
Ayo
207e253c69 chore: add sreenshot 2026-07-03 10:29:17 +02:00
Ayo
8774bc8092 chore: update readme 2026-07-03 10:00:25 +02:00
Ayo
81f310e7cc chore: initial agentic instructions 2026-07-02 19:32:52 +02:00
Ayo
8ba28261f8 chore: update readme to mention pnpm in tooling section 2026-04-03 14:15:20 +02:00
Ayo
93fe1d64fd chore: update readme for development setup 2026-04-03 14:14:15 +02:00
Ayo
45507df720 chore: update readme with more info 2026-04-03 12:20:11 +02:00
Ayo
aea4ac2518 chore: update readme w/ dev server info 2026-04-02 22:13:29 +02:00
Ayo
504e42960c chore: update readme 2026-04-02 17:10:49 +02:00
Ayo
a6b7e1194c chore: update readme to mention Vite 2026-04-02 12:48:24 +02:00
Ayo
17af4376c0 chore: update readme; remove outdated info 2026-04-02 12:00:08 +02:00
Ayo
369d530978 update readme 2023-05-11 14:18:13 +02:00
Ayo
58d3692c64 chore: update readme 2022-11-28 13:00:00 +01:00
Ayo
98955b4396 chore: update readme 2022-11-28 11:25:45 +01:00
Ayo
30ee9074ad chore: update readme 2022-11-28 11:23:40 +01:00
Ayo
8d084ffdea chore update readme 2022-11-28 10:27:22 +01:00
Ayo
2e8dc39b57 chore: update readme 2022-11-28 10:22:10 +01:00
Ayo
fc74666d74 chore: update readme 2022-11-28 10:19:11 +01:00
Ayo
055541a34d chore: update readme 2022-11-28 09:52:03 +01:00
Ayo
b110cc5d87 chore: update readme; add link to source code 2022-11-28 09:24:17 +01:00
Ayo
b2060fba41 chore: update deps and readme 2022-11-28 08:16:38 +01:00
Ayo
971fbef756 update readme for opening in locally 2022-08-29 08:07:46 +02:00
Ayo
7a983ec212 chore: update readme 2022-07-09 09:50:40 +02:00
Ayo
1cfd766c56 chore: update readme 2022-07-09 09:47:40 +02:00
Ayo
5940419846 chore: add concurrently and "run dev" command 2022-07-09 09:40:18 +02:00
Ayo
48b3123e75
Update README.md 2021-11-03 10:35:37 +08:00
Ayo
067132b92b update url in readme; transfer unused method to separate file 2020-04-02 22:04:32 +08:00
Ayo
8c4c56afaf add read me 2019-12-25 01:31:17 +08:00