Files
romm/frontend/src/__generated__/models
Georges-Antoine Assi c2547ec68c fix: model "no file on disk" once instead of per call site
Physical games encoded file-lessness as is_physical=True with
missing_from_fs=False, while every consumer asked the same question through
missing_from_fs alone. Each of those consumers was therefore wrong for a
physical game, and each would have needed its own is_physical rider.

Add Rom.has_file_on_disk, covering both reasons a rom has no file, expose it
on RomSchema, and route the file-dependent surfaces through it:

- The ES-DE and Pegasus exporters no longer emit entries whose path points at
  the .physical sentinel folder.
- The device feeds gain a single _servable_roms() seam, so all three entry
  points that enumerate roms drop the ones with no file rather than minting
  download URLs for them.
- GET /roms/{id}/content answers 404 with a reason instead of falling through
  to the generic "no files found".
- v2 gates Play, Download, copy-link and the QR share on the flag, in
  useCanPlay and useGameActions rather than at each of the surfaces.

The is_physical exclusions in mark_missing_roms stay: they are what maintains
the invariant that a physical game is never flagged missing, and the one in
the missing filter keeps a stray flag away from the cleanup task that
hard-deletes.

Also translate the physical-game and barcode strings, which had been copied
into eleven locales as English.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-25 22:26:20 -04:00
..
2026-07-20 16:16:58 -04:00
2026-04-03 14:43:19 -04:00
2026-03-12 23:02:12 -04:00
2026-05-28 09:43:47 -04:00
2025-10-16 17:14:45 -04:00
2025-10-15 20:49:59 -04:00
2026-03-15 09:35:12 -04:00
2026-03-15 09:35:12 -04:00
2025-09-02 08:38:11 -04:00
2026-02-18 16:37:48 -05:00
2025-10-15 16:21:17 -04:00
2026-05-25 11:02:35 -04:00
2026-07-20 16:16:58 -04:00
2026-04-03 14:43:19 -04:00
2026-07-20 16:16:58 -04:00
2025-11-26 15:19:45 -05:00
2026-03-10 20:48:49 +01:00
2026-04-03 14:43:19 -04:00
2026-04-06 21:53:49 -04:00
2026-03-12 23:02:12 -04:00
2026-05-29 20:54:32 -04:00
2025-09-15 10:28:32 -04:00
2026-05-28 09:43:47 -04:00
2025-07-15 11:59:35 -04:00
2026-03-12 23:02:12 -04:00
2025-11-26 15:19:45 -05:00
2026-07-20 16:16:58 -04:00
2026-07-20 16:16:58 -04:00
2025-10-21 14:17:47 -04:00
2025-10-15 20:49:59 -04:00
2025-09-07 19:20:46 -04:00
2026-04-03 14:43:19 -04:00
2026-04-06 21:53:49 -04:00
2026-04-06 21:53:49 -04:00
2026-03-15 09:35:12 -04:00
2026-04-06 21:53:49 -04:00
2026-03-15 09:35:12 -04:00
2026-03-22 17:17:14 -04:00
2025-01-26 21:52:50 -05:00
2025-10-15 16:21:17 -04:00
2026-03-15 09:35:12 -04:00
2026-03-12 23:02:12 -04:00
2025-10-16 12:25:05 -04:00
2025-10-15 20:49:59 -04:00
2026-06-08 10:25:27 -04:00
2026-06-08 10:25:27 -04:00
2026-07-20 16:16:58 -04:00
2025-10-15 16:21:17 -04:00