Commit Graph

10 Commits

Author SHA1 Message Date
1612834577 Switch card data source from pokemontcg.io to TCGdex
The Pokémon TCG API is deprecated (no new keys, existing keys end 2027-03-01)
and was returning 5xx errors. TCGdex is free and needs no API key.

- src/lib/api.ts: fetch the card list, then each card and set, with retries
  and limited concurrency; map to the existing TcgCard shape. Pokémon TCG
  Pocket cards are skipped.
- Keep the old card IDs for the 10 cards whose TCGdex ID differs, so saved
  checklists stay valid (verified by name, set and number).
- Fall back to the old image host for cards TCGdex has no scan for, and to a
  placeholder if an image fails to load.
- route.ts: serve the last cached data (marked stale) when a refresh fails;
  drop the API key handling.
- Remove the API key variables from compose and the env example; update README.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-18 13:14:25 +00:00
a2604bef11 refactor 2025-08-17 16:16:12 +01:00
683df65774 make sure the reverse override is considered for collected logic 2025-08-17 15:29:51 +01:00
da70f6f184 add manual addtiona of RH as these sometimes are missed 2025-08-17 15:24:25 +01:00
db77e1f0bf make sure the card names and sets are shown in full 2025-08-17 14:42:22 +01:00
0260afb152 add abbreviations for rarity 2025-08-17 12:47:44 +01:00
c048e37795 add cost for the variants using USD to GBP conversion 2025-08-17 12:44:29 +01:00
e9f132e9dd add separate checkboxes for variants 2025-08-17 12:37:32 +01:00
b9e7e21919 add collected page and move the checkbox 2025-08-17 12:32:04 +01:00
caee8e27f2 Init commit from initial prompt 2025-08-17 12:21:15 +01:00