Review follow-ups: PR #700 — fix(scan): "Open on TCGplayer" follows the picked printing, not the scanned one #928
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?
Non-blocking findings from the auto code review of PR #700 (fix(scan): "Open on TCGplayer" follows the picked printing, not the scanned one) — captured for batch cleanup rather than blocking the PR.
Commit
5bbc2ca· https://github.com/Gambit-Inc/gambit/pull/700SHOULD-FIX:
mobile/rork-recon-card-scanner/expo/components/CardDetailSheet.tsx:470-487—tcgSalesQ(the "TCGPlayer" sold-listings tab) still builds its queryKey/URL fromtcgProductId = Number(item?.match.tcgplayer_product_id ?? 0), the headline product id. This PR addsprintingTcgProductId()and uses it to fixgambitSalesQ(line 491) andtcgUrl(line 607), but leaves this adjacent query on the old headline id. Pick a non-headline printing (e.g. the Altart in this PR's own Luffy OP16-015 test fixture), switch the sold tab to "TCGPlayer", and the sales shown are for the base/headline product, not the picked printing — the exact bug class the PR title claims to fix, half-done in the same component.NITS:
backend/app/services/card_cache_projection.py:408-409— the continuation-line indent for the newtcg_pid_by_variantparameter doesn't align with the opening paren of_build_price_variants(, inconsistent with the rest of the file's style (cosmetic only).Filed from a Claude Code session