gamer147
f237851e42
feat(sleeve): shop catalog + /sleeve/{info,buy} endpoints
Schema: SleeveShopSeries -> SleeveShopProducts -> Rewards (owned).
Migration AddSleeveShop creates 3 tables with FK cascade.
Importer mirrors BuildDeck pattern: find-or-create per series/product,
rewards replaced wholesale on rerun (owned collection). 10 series,
270 products imported from seeds/sleeve-shop.json.
Controller:
- /sleeve/info returns wire-faithful dict-keyed shape
({sleeve_list: {<series_id>: {product_info: {<product_id>: ...}}}}).
is_purchased_product derived from viewer.Sleeves.Contains(sleeve_id).
- /sleeve/buy: sales_type 0=free / 1=crystal / 2=rupy / 3=ticket(501).
Validates series_product mismatch, currency, already-purchased.
Currency debited with post-state-total reward_list entry; cosmetic
grants dispatched through RewardGrantService.ApplyAsync (covers
sleeve + emblem bundled grants per product).
476 tests pass (was 466; +10 sleeve tests).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-27 22:09:45 -04:00
..
2026-05-26 13:24:49 -04:00
2026-05-27 10:17:06 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 14:31:25 -04:00
2026-05-26 21:57:47 -04:00
2026-05-27 10:18:03 -04:00
2026-05-26 22:28:41 -04:00
2026-05-26 22:28:41 -04:00
2026-05-26 15:16:36 -04:00
2026-05-26 14:31:25 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 14:44:21 -04:00
2026-05-26 15:46:36 -04:00
2026-05-27 21:44:24 -04:00
2026-05-26 15:46:36 -04:00
2026-05-26 15:46:36 -04:00
2026-05-26 14:31:25 -04:00
2026-05-27 10:14:58 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 15:02:49 -04:00
2026-05-26 13:59:50 -04:00
2026-05-26 13:42:59 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 14:16:32 -04:00
2026-05-26 14:16:32 -04:00
2026-05-26 14:16:32 -04:00
2026-05-26 15:46:36 -04:00
2026-05-26 15:29:57 -04:00
2026-05-26 14:31:25 -04:00
2026-05-27 22:09:45 -04:00
2026-05-26 14:31:25 -04:00
2026-05-26 15:46:36 -04:00
2026-05-26 15:46:36 -04:00