ScreenScraper serves a solid chroma-key green (#00FF00) square when a
requested image (box-2D front/back/side) doesn't exist. RomM stored it as
real artwork, so the v2 3D box painted a bright green face and the flat
cover showed green in the gallery.
Detect the placeholder at download time and drop it: covers fall back to
the procedural placeholder, and a discarded box-2D face falls back to the
dark cover placeholder the box already paints (rather than bright green).
- Add _is_chroma_key_placeholder + _discard_if_chroma_key in the resources
handler; wire into _store_cover and store_media_file.
- store_media_file also cleans up pre-existing green files on rescan.
Generated-By: PostHog Code
Task-Id: 5534668f-a2b6-4575-b6c1-73dcd965062c
The v1 UI (frontend/src/{views,components,console,layouts}) is frozen and
slated for deletion; new frontend work belongs in frontend/src/v2/. This
workflow fails any PR that touches v1 UI files, with an "allow-v1-changes"
label escape hatch for sanctioned critical bug fixes.
Generated-By: PostHog Code
Task-Id: 55fda8a5-426e-479d-8221-26a8437e57bb
Keep the prefixed clamp alongside the unprefixed property so long
soundtrack titles still clamp to two lines in Safari and older Chromium.
Generated-By: PostHog Code
Task-Id: 1d54c00b-3d49-435b-8a16-971389d1382d
Wrap the manual viewer in an overlay RDropzone and add an Upload button to
the header (shown whenever a manual exists) so users can add another manual
to a ROM that already has one, via drag-and-drop or the picker. The overlay
fill gets a min-height so the flex chain doesn't collapse the viewer.
Generated-By: PostHog Code
Task-Id: 1d54c00b-3d49-435b-8a16-971389d1382d
Move the Media tab's manual (PDF/Markdown) panel out of MediaTab.vue into
a self-contained ManualSubtab.vue, mirroring ArtworkSubtab. The subtab now
owns its own scroll (flex column filling the content height) so the viewer
keeps its internal scroll and switching subtabs never forces an outer
scrollbar.
Generated-By: PostHog Code
Task-Id: 1d54c00b-3d49-435b-8a16-971389d1382d
HasheousHandler.lookup_rom and SGDBBaseHandler.get_details_by_names now
resolve to an empty match instead of raising, matching the best-effort
pattern already used by PlaymatchHandler.lookup_rom and
SGDBBaseHandler.get_rom_by_id, so one failing provider can't abort a
scan or discard the other providers' results (#2236).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The raw PyYAML parser error embeds the config file path and line context.
The /config endpoint is unauthenticated, so gate CONFIG_FILE_PARSE_ERROR
behind auth like EJS_NETPLAY_ICE_SERVERS, returning None to anonymous callers.
Generated-By: PostHog Code
Task-Id: 3d4f28a8-5157-4ca4-97a6-f283f5d6329e
_config_file_parse_error was only reset inside _safe_load_yaml, so the
FileNotFoundError paths (get_config and _create_missing_config_file) that
bypass it kept a stale error. Deleting a malformed config could then still
report a YAML error for the new empty config. Reset the flag in both paths.
Generated-By: PostHog Code
Task-Id: 3d4f28a8-5157-4ca4-97a6-f283f5d6329e
Serving any .pdf/.md file inline by extension also flipped game/extra files
from downloads to inline. Gate the document check on RomFileCategory.MANUAL so
only manuals render inline; other files keep the attachment behavior.
Generated-By: PostHog Code
Task-Id: 73be371c-908a-4f9f-9748-7ddba2df71e2
A mounted config file can be both malformed and not writable at once. The
v-else-if chain hid the not-writable warning when a parse error was present,
even though edit controls stay disabled. Show both alerts independently when
the file is mounted.
Generated-By: PostHog Code
Task-Id: 3d4f28a8-5157-4ca4-97a6-f283f5d6329e
Uploaded manual files (RomFile with category="manual") were served from the
content endpoint as application/octet-stream + attachment, so the in-page
manual viewer showed a blank area while nav buttons and download still worked.
Include .pdf and .md in is_allowed_media_file (with explicit MIME overrides)
so they are served inline, and set X-Content-Type-Options: nosniff on inline
responses so a Markdown manual can't be sniffed into HTML.
Fixes#3712
Generated-By: PostHog Code
Task-Id: 73be371c-908a-4f9f-9748-7ddba2df71e2
A YAML syntax error in config.yml caused _safe_load_yaml to discard the
entire config and boot on defaults, with only a log line as signal. Users
mixing the old (scan.export) and new (scan.gamelist.export) gamelist syntax
produced invalid YAML that was silently ignored, so their scan.media list was
dropped and only the default media (box2d, screenshot, manual) were scanned.
Track the parse error and expose it via CONFIG_FILE_PARSE_ERROR on the config
API, and show an error banner in the Library Management settings (v1 and v2)
so users know their config failed to parse and RomM is running on defaults.
Fixes#3708
Generated-By: PostHog Code
Task-Id: 3d4f28a8-5157-4ca4-97a6-f283f5d6329e
LaunchBox remote covers were selected by image type only, picking the
first image of the best type regardless of region. A ROM tagged "(USA)"
could get a Europe box even when a North America box existed.
Derive the ROM's preferred region shortcodes from its filename, map
LaunchBox region names ("North America" -> "us") to the same shortcodes,
and use region as a tiebreaker within the winning cover type.
Fixes#3706
Generated-By: PostHog Code
Task-Id: 1e53a6d4-2d71-413d-8b2a-aa94b01b7e63
On phones the completion/rating/difficulty pickers took a full ribbon
row in the game-details header. Move them into the status button's
mobile sheet as "Your progress" sections; desktop keeps the ribbon
pills unchanged. Extract the shared editor body into MetricSection and
a shared METRICS config so both surfaces stay in sync. Also give the
Play button its own row and add a bit of space above the tab nav on
mobile.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Restrict extracted audio cover bytes to JPEG/PNG via magic-byte sniffing
instead of trusting the declared MP4 imageformat, so a GIF (or missing
format) is no longer mislabeled and persisted as image/jpeg.
MP4Cover.FORMAT_PNG was referenced via a non-existent MP4.Cover attribute,
breaking cover extraction for m4a files. Add unit tests and guard
extract_embedded_cover so failures do not abort the upload path.
Sort library media so image entries precede video entries (stable sort
keeps original order within each group), and use a type-predicate filter
so the result stays typed as RomArtworkEntry[].
Generated-By: PostHog Code
Task-Id: fad7faa2-a17e-4583-a816-1b9915ba138f
Type the #item/#thumbnail slot payloads by inferring T from the `items`
prop, so consumers drop the per-slot casts. Props move to a sibling
types.ts (RCarouselProps<TItem>) since an inline interface leaks into the
generic component's default export.
Generated-By: PostHog Code
Task-Id: fad7faa2-a17e-4583-a816-1b9915ba138f