hensei-api/app/controllers
Justin Edmund 7bda9a1432
Improve collection sync with scoped filtering and orphan handling (#201)
* 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

* scope artifact sync by element and proficiency

- accept filter param in preview_sync and import
- only check/delete items matching active filter
- prevents accidental deletion of filtered-out items

* scope weapon sync by element and proficiency

- accept filter param in preview_sync and import
- element checks collection_weapon first, falls back to weapon
- proficiency joins through weapon table

* scope summon sync by element

- accept filter param in preview_sync and import
- element joins through summon table
2025-12-31 22:20:10 -08:00
..
api/v1 Improve collection sync with scoped filtering and orphan handling (#201) 2025-12-31 22:20:10 -08:00
concerns batch_preview: accept pre-fetched wiki_data from client 2025-12-14 13:12:25 -08:00
application_controller.rb Remove rabl 2022-12-21 01:16:34 -08:00
tokens_controller.rb Return the user's role in login and user blueprints (#133) 2023-09-09 02:29:32 -07:00