feature/boss-sprites-and-badges #22

Merged
TheFurya merged 2 commits from feature/boss-sprites-and-badges into develop 2026-02-14 11:04:14 +01:00

2 Commits

Author SHA1 Message Date
d8fb6c328c Add game_id FK to BossBattle for version-exclusive bosses
All checks were successful
CI / backend-lint (pull_request) Successful in 8s
CI / frontend-lint (pull_request) Successful in 30s
Version-exclusive bosses (e.g., Bea in Sword, Allister in Shield) were
using the section field to indicate which game they belong to. This adds
a proper game_id foreign key so the API can filter bosses per game,
keeping section free for visual grouping like "Main Story".

- Alembic migration adds nullable game_id column with FK and index
- API list_bosses filters by game_id unless ?all=true is passed
- Seed data updated to use game_slug instead of section overloading
- Admin form adds "Game (version exclusive)" dropdown
- Export endpoints include game_slug for exclusive bosses

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-14 11:00:48 +01:00
3e7a6c9221 Add boss battle sprites, badge images, and fix seed data
- Download boss battle sprites from Bulbapedia for all 21 games (313 bosses)
- Download 36 missing badge images from Bulbapedia archives
- Fix non-square boss sprite stretching (use h-10 w-auto instead of w-10 h-10)
- Fix firered Giovanni seed data (badge was "50" instead of "Earth Badge",
  missing ground specialty_type)
- Add one-time fetch scripts for boss sprites and badges

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