Commit graph

6 commits

Author SHA1 Message Date
b828bbeba3 collection sync with orphan handling
- preview_sync endpoint shows what'll get deleted before you commit
- import services handle reconciliation (find missing items, delete them)
- grid items get flagged as orphaned when their collection source is gone
- party exposes has_orphaned_items
- blueprints include orphaned field
2025-12-23 22:42:58 -08:00
db2aa43d81 add game_name columns for artifact skill matching
separate game names (used for import matching) from display names
2025-12-18 22:48:08 -08:00
3b9eab8b79 switch artifact import to name matching, store quality
match skills by name field instead of skill_id
store raw quality (1-5) instead of computed strength
2025-12-18 22:30:39 -08:00
371f2a29dd fix artifact import: preload queries, handle symbol keys 2025-12-14 01:42:06 -08:00
c498278c89 fix array extraction order in artifact import 2025-12-13 20:12:00 -08:00
6cf85a5b3e add artifact import from game data
- Add ArtifactImportService to parse game JSON and create collection artifacts
- Maps game skill_id to our (group, modifier) format using verified mapping
- Handles skill quality -> strength lookup via ArtifactSkill.base_values
- Supports duplicate detection via game_id, with optional update_existing flag
- Quirk artifacts get proficiency from game data; skills stored as empty
- Add POST /collection/artifacts/import endpoint
- Add game_id column to collection_artifacts, collection_weapons,
  collection_summons for tracking game inventory instance IDs
2025-12-03 14:20:21 -08:00