Commit Graph

5 Commits

Author SHA1 Message Date
Georges-Antoine Assi
4d74c05e1d perf(siblings): regroup only on identity changes and scope the post-scan repair
add_rom skips the regroup when the merge changed no identity column. The
post-scan repair regroups the scanned ROMs for a ROM-scoped scan and
rebuilds only the scanned platforms otherwise, since no group spans two
platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 10:15:48 -05:00
Georges-Antoine Assi
fdf1467a5d pr-ready: prose
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:48:44 -05:00
Georges-Antoine Assi
e46fcd7c51 pr-ready: simplify
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:47:39 -05:00
Georges-Antoine Assi
cf18cc9799 pr-ready: code-review
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 09:46:38 -05:00
Georges-Antoine Assi
ff412aa09c fix(siblings): group versions by connected component everywhere
The game page's siblings matched on any shared provider id, while the
gallery's group_by_meta_id window partitioned on the first non-null id in
a fixed provider order. A version matched by IGDB and ScreenScraper and
one matched by ScreenScraper alone were siblings on the game page but two
gallery cards. The recommendation surfaces didn't group at all: the
cold-start row ranks by rating, which every version shares, so one game
filled it.

rom_sibling_groups now stores each ROM's connected component over
rom_identity_keys, kept in step by add_rom/update_rom/delete_rom and
rebuilt after a scan. The sibling_roms view, the gallery window and the
recommendations all read it: the feed and similar games collapse each
game to one entry, exclude the other versions of a played game, and
show the version the grouped gallery shows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 20:12:06 -04:00