Files
nuzlocke-tracker/.beans/nuzlocke-tracker-ok1t--bulk-import-for-evolutions-routes-and-bosses.md
Julian Tabel 8f6d72a9c4 Add bulk import for evolutions, routes, and bosses
Add three new bulk import endpoints that accept the same JSON format as
their corresponding export endpoints, enabling round-trip compatibility:

- POST /evolutions/bulk-import (upsert by from/to pokemon pair)
- POST /games/{id}/routes/bulk-import (reuses seed loader for hierarchy)
- POST /games/{id}/bosses/bulk-import (reuses seed loader with team data)

Generalize BulkImportModal to support all entity types with configurable
title, example, and result labels. Wire up Bulk Import buttons on
AdminEvolutions, and AdminGameDetail routes/bosses tabs.

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

29 lines
1.1 KiB
Markdown

---
# nuzlocke-tracker-ok1t
title: Bulk import for evolutions, routes, and bosses
status: completed
type: feature
priority: normal
created_at: 2026-02-08T12:33:39Z
updated_at: 2026-02-08T19:13:27Z
parent: nuzlocke-tracker-iu5b
---
Extend the bulk import capability (currently Pokemon-only) to cover evolutions, routes, and boss battles.
## Current state
- Pokemon has a bulk import modal that accepts JSON and reports created/updated/errors
- Evolutions, routes, and bosses can only be created one at a time
- All entities can be exported to JSON
## Desired behavior
- Add bulk import modals to:
- AdminEvolutions — import evolutions JSON
- AdminGameDetail routes tab — import routes JSON (with children/encounters)
- AdminGameDetail bosses tab — import bosses JSON (with pokemon teams)
- Import format should match the export format for round-trip compatibility
- Show progress/results summary (created, updated, errors) like the Pokemon import
## Backend
- May need new bulk-import endpoints for evolutions, routes, and bosses
- Or extend existing seed loader functions to be callable via API