Files
nuzlocke-tracker/.beans/nuzlocke-tracker-zno2--build-reference-data-mappings.md
Julian Tabel df7ea64b9e Add reference data mappings and auto-download for PokeDB import tool
Add mappings module with pokemon form, location area, encounter method,
and version mappings. Auto-download PokeDB JSON exports from CDN on
first run, caching in .pokedb_cache/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 10:02:57 +01:00

1.5 KiB

title, status, type, priority, created_at, updated_at, parent, blocking
title status type priority created_at updated_at parent blocking
Build reference data mappings in-progress task normal 2026-02-11T08:43:02Z 2026-02-11T08:50:29Z nuzlocke-tracker-bs05
nuzlocke-tracker-rfg0

Build the lookup maps needed to translate PokeDB identifiers into our seed format.

Checklist

  • Pokemon form mapping: Map pokemon_form_identifier (e.g. "pidgey-default", "mr-mime-default") to pokeapi_id using the existing backend/src/app/seeds/data/pokemon.json as reference. Handle naming convention differences between PokeDB and PokeAPI (may need fuzzy matching or a manual override table).
  • Location area mapping: Map location_area_identifier to human-readable location names and regions using locations.json and location_areas.json. Produce names matching our existing format (e.g. "Route 1", "Viridian Forest").
  • Encounter method mapping: Map PokeDB's 73 encounter methods to our simplified set. See the draft mapping in the parent bean. Implement as a dictionary/config that's easy to extend.
  • Version mapping: Map PokeDB version_identifiers to our game slugs (should mostly be 1:1 but verify).

Notes

  • The pokemon form mapping is the trickiest part — PokeDB uses identifiers like "mr-mime-default" while our pokemon.json uses names like "Mr. Mime" and pokeapi IDs
  • Log warnings for any unmapped identifiers so we can add overrides
  • The pokemon_forms.json from PokeDB may help bridge the gap