Add bean for fetching and storing badge images locally
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||||
Reference in New Issue
Block a user