mirror of
https://github.com/rommapp/romm.git
synced 2026-12-05 23:44:11 +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>
11 lines
232 B
TypeScript
11 lines
232 B
TypeScript
/* generated using openapi-typescript-codegen -- do not edit */
|
|
/* istanbul ignore file */
|
|
/* tslint:disable */
|
|
/* eslint-disable */
|
|
export type UserCollectionSchema = {
|
|
id: number;
|
|
name: string;
|
|
is_smart?: boolean;
|
|
};
|
|
|