Implement the 030-bulk-import-sources feature that adds a one-click bulk import button to load all bestiary sources at once, with real-time progress feedback in the side panel and a toast notification when the panel is closed, plus completion/failure reporting with auto-dismiss on success and persistent display on partial failure, while also hardening the bestiary normalizer to handle variable stat blocks (spell summons with special AC/HP/CR) and skip malformed monster entries gracefully
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
## Summary
|
||||
|
||||
Add a "Bulk Import All Sources" button to the top bar that opens the stat block side panel with a bulk import prompt. The user confirms a base URL, and the app fetches all ~104 bestiary source files concurrently, normalizes each, and caches them in IndexedDB. Progress is shown via a counter and progress bar in the side panel; if the panel is closed mid-import, a lightweight toast notification takes over progress display.
|
||||
Add a "Bulk Import All Sources" button to the top bar that opens the stat block side panel with a bulk import prompt. The user confirms a base URL, and the app fetches all bestiary source files concurrently, normalizes each, and caches them in IndexedDB. Progress is shown via a counter and progress bar in the side panel; if the panel is closed mid-import, a lightweight toast notification takes over progress display.
|
||||
|
||||
## Technical Context
|
||||
|
||||
@@ -17,7 +17,7 @@ Add a "Bulk Import All Sources" button to the top bar that opens the stat block
|
||||
**Project Type**: Web application (React SPA)
|
||||
**Performance Goals**: Non-blocking async import; UI remains responsive during ~12.5 MB download
|
||||
**Constraints**: All fetches fire concurrently (browser connection pooling); no third-party toast library
|
||||
**Scale/Scope**: ~104 sources, ~12.5 MB total data
|
||||
**Scale/Scope**: All sources from bestiary index (currently ~102–104), ~12.5 MB total data
|
||||
|
||||
## Constitution Check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user