From d2144e47bff2f906b1a4b4d064f9c510ffe29925 Mon Sep 17 00:00:00 2001 From: Julian Tabel Date: Sun, 8 Feb 2026 21:57:26 +0100 Subject: [PATCH] Add bean for fetching and storing badge images locally Co-Authored-By: Claude Opus 4.6 --- ...4--fetch-and-store-badge-images-locally.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .beans/nuzlocke-tracker-sgp4--fetch-and-store-badge-images-locally.md diff --git a/.beans/nuzlocke-tracker-sgp4--fetch-and-store-badge-images-locally.md b/.beans/nuzlocke-tracker-sgp4--fetch-and-store-badge-images-locally.md new file mode 100644 index 0000000..fc25ad8 --- /dev/null +++ b/.beans/nuzlocke-tracker-sgp4--fetch-and-store-badge-images-locally.md @@ -0,0 +1,19 @@ +--- +# nuzlocke-tracker-sgp4 +title: Fetch and store badge images locally +status: todo +type: task +created_at: 2026-02-08T20:57:15Z +updated_at: 2026-02-08T20:57:15Z +--- + +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) \ No newline at end of file