mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
The ROM detail response only filled `user_collections` from a rom's standard collections (the collections_roms join), so smart collections were silently omitted from the detail overview's Collections row. Add smart-collection membership to the response: `UserCollectionSchema` gains an `is_smart` flag and a `smart_for_user` builder that keeps the smart collections whose cached rom_ids include the rom (respecting own / public visibility), and `DetailedRomSchema` appends them alongside the standard ones. The v2 overview renders them with the smart kind badge and routes them to the smart-collection view. Fixes #3934 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>