Catalog: per-variant (alt-art) images — each printing shows the base card art #316
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Problem
The catalog now explodes each card into one entry per printing (Normal, Alt Art, etc.) with its own price — but every printing of a card currently shows the SAME image.
canonical_card.image_url/card_cache.image_urlis card-grain (one URL per card number, e.g.images.scrydex.com/onepiece/OP16-001/large); we never stored the distinct alt-art artwork. Confirmed in prod: one-piece has 2633 distinct image URLs for 2633 cards (exactly one per card), whilecard_variantholds ~4713 variants.So an alt-art entry displays the correct name + correct price, but the base card picture instead of its real art.
What is needed
card_variant, or a per-finishimage_urlincard_cache.price_variants).catalog_set_cards→ itemimage_url; mobile already renders per-entryimage_url).Context
Follow-up to the variant-grain catalog PR (feature/catalog-variant-grain) which fixed the set-total undercount (One Piece sets were showing <$100 because only the cheapest base printing was summed). Prices are complete; only the per-art image is missing.
Filed from a Claude Code session