Put trading and giving up front and suggest the players who need each card

The Échanges et dons page now opens on two illustrated tiles, centred and
360 px wide at most: trade (L'Échange Écarlate) and give (the Dawn card,
renamed Le Don de l'Aube with a gift story). Each counts the cards missing
on either side and previews a few. In the composer, the most useful players
come first in the list and as suggested chips, and missing duplicates lead
with a badge; nothing is filtered, so owned duplicates stay tradeable for
Awakenings. GET /api/cards/traders adds `wants`: which of the viewer's own
duplicates each player lacks, and nothing else of their collection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 17:01:56 +01:00
parent 2f3c371d7b
commit 17e5cd5e63
12 changed files with 302 additions and 46 deletions

View file

@ -160,7 +160,21 @@ export function validateSiteContent(site) {
"cards.transfers.inboxTitle",
"cards.transfers.sentTitle",
"cards.transfers.finishedTitle",
"cards.transfers.empty",
"cards.transfers.tradeTileImage",
"cards.transfers.tradeTileTitle",
"cards.transfers.tradeTileText",
"cards.transfers.tradeTileHint",
"cards.transfers.tradeTileNone",
"cards.transfers.giftTileImage",
"cards.transfers.giftTileTitle",
"cards.transfers.giftTileText",
"cards.transfers.giftTileHint",
"cards.transfers.giftTileNone",
"cards.transfers.suggestionsLabel",
"cards.transfers.tradeMatchHint",
"cards.transfers.giftMatchHint",
"cards.transfers.giftLacksChosen",
"cards.transfers.theyLackBadge",
"cards.transfers.giftFrom",
"cards.transfers.giftTo",
"cards.transfers.tradeWith",