Files
nuzlocke-tracker/.beans/nuzlocke-tracker-sgp4--fetch-and-store-badge-images-locally.md
Julian Tabel 8bd4ad1ecf Download badge and boss sprite images locally during export
The seed export command now downloads badge images and boss sprites
from remote URLs and stores them in frontend/public/, rewriting the
JSON URLs to local paths. Sprites are namespaced by game version
(e.g. /boss-sprites/red/brock.png) so each generation can have
its own sprite style.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 22:13:30 +01:00

1.0 KiB

title, status, type, priority, created_at, updated_at
title status type priority created_at updated_at
Fetch and store badge images locally in-progress task normal 2026-02-08T20:57:15Z 2026-02-08T20:57:41Z

Badge images are currently loaded via remote URLs, which can lead to missing images if the remote source is unavailable. Download all badge images and store them locally as part of the seed script's export function.

The seed script already fetches badge URLs when exporting boss battle data — extend this to also download the actual badge image files and save them to a local assets directory. Update badge image references to point to the local copies.

Checklist

  • Extend the seed script export function to download badge images from the URLs found in boss battle data
  • Store downloaded badge images in a local assets directory (e.g. frontend/public/badges/ or similar)
  • Update badge image URL references to use the local paths instead of remote URLs
  • Handle edge cases (missing URLs, download failures, duplicate filenames)