botsu
f42134e1d0
feat(tcg): Botsu Emoji TCG MVP — boosters, collection, graveyard
...
Backend (apps/presence-api):
- tcg-config: centralized rarity/price/shiny config, daily reset Europe/Paris
- tcg-index-catalog: idempotent Emoji Kitchen sticker indexer (23139 combos)
- tcg-catalog-store: in-memory catalog with path-traversal guard
- tcg-card-store: card instances, discoveries (unique constraint), daily tracking
- tcg-booster-store: daily/paid/admin boosters, per-user mutex, replay protection
- tcg-economy-log: JSONL audit log
- cookie-store: added debitCookies/creditCookies (atomic, no negative balance)
- server.ts: 11 HTTP routes (/tcg/images, /tcg/booster/*, /tcg/collection, etc.)
- 47 backend tests (concurrence, atomicity, path traversal, admin auth)
Protocol (packages/protocol):
- tcg.ts: shared types + strict parsers (rarity, burn, pagination)
Frontend (apps/client):
- tcg-controller: client API controller (Matrix OpenID auth)
- BotsuTcgPage: 3 tabs (Booster, Collection, Cimetière) with filters/pagination
- catalog.ts: emoji-tcg app registered
- Router.tsx + paths.ts: /botsu/tcg/ route
- BotsuNav: nav entry with Smile icon
Docs:
- docs/emoji-tcg-licence.md: Emoji Kitchen attribution and licence note
Config: EMOJI_KITCHEN_ROOT, DAILY_BOOSTER_SIZE=3, BOOSTER_PRICE=1000,
SHINY_RATE=0.01, RARITY_* (sum=1 validated at startup), BURN_REWARD=50
Tests: 106 backend + 98 frontend + 46 protocol = 250 pass
2026-08-06 03:50:14 +02:00
botsu
16eb0647ce
fix(documents): collaborative cursors visible with user names
...
- Fix awareness state: setLocalState({ user: cursorUser }) so the default
y-prosemirror cursorBuilder reads state.user correctly
- Custom cursorBuilder: span.botsu-collab-cursor with inline borderColor,
div.botsu-collab-cursor-label with explicit color (no color:transparent
inheritance issue)
- CSS: caret 2px solid, label absolute below caret, 0.625rem, opacity 0.85
- Unwrap state.user ?? state in builder for robustness
2026-08-05 22:00:58 +02:00
botsu
74eeaa1a5a
feat: add shared BOTSU documents and cookie counter
...
Add authenticated document objects persisted on the BOTSU drive, opaque shared references for local drafts, and websocket document snapshots/patches.
Add synchronized cookie counter API/client slice and keep the canary UI icon updates covered by BOTSU tests.
2026-08-04 16:49:41 +02:00