Files
romm/frontend/src/__generated__/models/RecommendedRomSchema.ts
Sam Dornan 550ee34f01 feat(v2): surface recommendations on game details and home
"Similar games" now reads the recommendations index instead of
`igdb_metadata.similar_games`, so every entry is a game the server actually
holds. That also drops the per-card `by-metadata-provider` lookup the IGDB
stubs needed: the endpoint returns real ROMs, so the cards are ordinary
interactive GameCards rather than synthetic ones.

Adds a "Recommended for you" row to Home, each card captioned with why it
was suggested, behind a `showRecommendations` UI setting. An unbuilt index
or a library too small to relate anything is a normal state, so both
surfaces stay hidden rather than surfacing an error.

Structural IGDB relations (expansions, DLC, remakes, remasters) are
untouched -- those are facts about a game, not recommendations.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 20:12:45 -05:00

15 lines
465 B
TypeScript

/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { SimilarityReasonSchema } from './SimilarityReasonSchema';
import type { SimpleRomSchema } from './SimpleRomSchema';
export type RecommendedRomSchema = {
rom: SimpleRomSchema;
score: number;
reasons: Array<SimilarityReasonSchema>;
seed_rom_id?: (number | null);
seed_rom_name?: (string | null);
};