Commit Graph
10541 Commits
Author SHA1 Message Date
abduznikandCopilot Autofix powered by AI ec59266c77 minor comma that was added by mistake
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-12 16:43:26 +03:00
abduznik 1f69a5bec6 Add Freegosy to community tab in README 2026-07-12 16:39:07 +03:00
Georges-Antoine Assi 275d3a8d01 Merge pull request #3724 from rommapp/posthog-code/discard-chroma-key-placeholder-art
fix(backend): discard ScreenScraper chroma-key green placeholder art
2026-07-11 08:21:48 -04:00
Georges-Antoine Assi 579e12574c fix(backend): discard ScreenScraper chroma-key green placeholder art
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
2026-07-11 07:57:36 -04:00
Georges-Antoine Assi bc2b8917e6 Merge pull request #3723 from rommapp/posthog-code/ci-freeze-frontend-v1
ci: fail PRs that modify the frozen frontend v1 UI
2026-07-10 18:28:01 -04:00
Georges-Antoine Assiandgreptile-apps[bot] cbf134a576 Update .github/workflows/frontend-v1-frozen.yml
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-07-10 18:10:21 -04:00
Georges-Antoine Assi 70cddb8984 ci: fail PRs that modify the frozen frontend v1 UI
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
2026-07-10 18:00:37 -04:00
Georges-Antoine Assi dea86e392d Merge pull request #3716 from TowyTowy/fix/2236-metadata-handler-fault-tolerance
fix(scan): make Hasheous and SteamGridDB scan lookups fault-tolerant in the metadata handlers
2026-07-10 10:38:20 -04:00
Georges-Antoine Assi 55d55bb1d1 Merge pull request #3719 from wolfg1969/patch-1
Fixed the translation of "player-count"
2026-07-10 09:51:46 -04:00
Georges-Antoine Assi db7118ab74 Merge pull request #3717 from rommapp/manual-details-invisible
fix(frontend): restore manual display and extract ManualSubtab
2026-07-10 09:48:14 -04:00
Georges-Antoine Assi 86796fac5b fix(frontend): restore -webkit-line-clamp on now-playing title
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
2026-07-10 09:44:11 -04:00
Georges-Antoine Assi 8e1a0e9f8b fix(frontend): restore manual upload path for existing-manual ROMs
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
2026-07-10 09:41:09 -04:00
wolfg 0b258fb9a3 Fixed the translation of "player-count" 2026-07-10 21:35:05 +08:00
Georges-Antoine Assi 3410095348 refactor(frontend): extract manual viewer into ManualSubtab
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
2026-07-10 08:10:08 -04:00
Georges-Antoine Assi 008da3f89c force manuals to display again in details view 2026-07-10 08:01:06 -04:00
TowyTowyandClaude Fable 5 27a013b1fd fix(scan): make Hasheous and SteamGridDB scan lookups fault-tolerant
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>
2026-07-10 10:53:00 +02:00
Georges-Antoine Assi c81caf7c2b Merge pull request #3713 from rommapp/posthog-code/fix-config-parse-error-surfacing
fix: surface config.yml parse errors instead of silently using defaults
5.0.0-beta.3
2026-07-09 20:47:32 -04:00
Georges-Antoine Assi 2a65371a64 fix: only return config parse error to authenticated users
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
2026-07-09 20:18:12 -04:00
Georges-Antoine Assi d200fa4408 Merge pull request #3714 from rommapp/posthog-code/fix-manual-inline-viewer
fix(backend): serve PDF/Markdown manuals inline so the viewer can render them
2026-07-09 20:14:00 -04:00
Georges-Antoine Assi 8e74790d25 fix: clear stale config parse error on missing/recreated config
_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
2026-07-09 19:58:42 -04:00
Georges-Antoine Assi d587fc7034 fix(backend): scope inline document serving to manual-category files
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
2026-07-09 19:56:53 -04:00
Georges-Antoine Assi e95281748d fix: show config parse error and writable warnings independently
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
2026-07-09 19:54:33 -04:00
Georges-Antoine Assi def9258636 fix(backend): serve PDF/Markdown manuals inline so the viewer can render them
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
2026-07-09 19:38:16 -04:00
Georges-Antoine Assi 28aa53107b fix: surface config.yml parse errors instead of silently using defaults
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
2026-07-09 19:37:55 -04:00
Georges-Antoine Assi e2e539faad Merge pull request #3709 from rommapp/posthog-code/fix-launchbox-cover-region
fix(launchbox): match remote cover art region to ROM region
2026-07-09 13:42:32 -04:00
Georges-Antoine AssiandCopilot Autofix powered by AI 5a8522a3ff Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-09 13:36:34 -04:00
Georges-Antoine AssiandCopilot Autofix powered by AI 081ebfb6b6 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-09 13:36:13 -04:00
Georges-Antoine Assiandgreptile-apps[bot] f1df8a6ca9 Update backend/handler/metadata/launchbox_handler/media.py
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-07-09 13:35:59 -04:00
Georges-Antoine Assi bbb5c451d9 Merge pull request #3705 from VoidHandler/fix/m4a-cover-extract
fix(backend): correct M4A embedded cover extraction and validation
2026-07-09 13:34:53 -04:00
Georges-Antoine Assi 84332b5c63 fix(launchbox): match remote cover art region to ROM region
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
2026-07-08 23:23:27 -04:00
VoidHandler 20132dfbcb format code 2026-07-08 21:56:49 -04:00
zurdiandClaude Opus 4.8 1c9c405cdd feat(v2): move ROM metrics into the status sheet on mobile
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>
2026-07-08 11:26:51 +00:00
VoidHandler efa5945f03 fix(backend): validate embedded cover format and surface extraction failures
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.
2026-07-08 00:33:43 -04:00
VoidHandler d169e5f4e4 fix(backend): correct M4A embedded cover MIME detection
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.
2026-07-07 22:19:00 -04:00
Georges-Antoine Assi ff2aa0d7d7 Merge pull request #3700 from rommapp/posthog-code/display-media-files-in-details-tab
feat(roms): serve and display media files inline in details tab
5.0.0-beta.2
2026-07-07 12:00:40 -04:00
Georges-Antoine Assi 80a1ea18f8 fix(v2): order artwork images before videos, narrow filter with type guard
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
2026-07-07 11:00:13 -04:00
Georges-Antoine Assi 3e1212e38d cleanup 2026-07-07 10:57:53 -04:00
Georges-Antoine Assi acbd8feff8 import i18n correctly 2026-07-07 10:53:00 -04:00
Georges-Antoine Assi 65f29fe383 remove has_manual_files 2026-07-07 10:47:15 -04:00
Georges-Antoine Assi 9096fad433 refactor(v2): make RCarousel generic over its item type
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
2026-07-07 10:40:49 -04:00
Georges-Antoine Assi 2c44ae25e5 simplify resolve artwork 2026-07-07 10:30:27 -04:00
Georges-Antoine Assi d4bdfef07c Merge pull request #3703 from rommapp/posthog-code/fix-romfile-visibility-bypass
fix(roms): enforce parent ROM visibility on direct file endpoints
2026-07-07 10:02:34 -04:00
Georges-Antoine Assi 3abd0829b7 fix(roms): enforce parent ROM visibility on direct file endpoints
The direct ROM-file endpoints (`get_romfile` and `get_romfile_content`)
resolved a RomFile purely by its user-supplied id and never mapped it
back to the parent Rom, so an authenticated user with roms.read could
read or download a file of a ROM hidden from them by knowing/guessing
the RomFile.id, bypassing the hidden ROM/platform policy.

Resolve the parent Rom and apply assert_rom_visible (404-masking) before
returning any file bytes or metadata, matching the ROM-level content
endpoints and the existing check in patch.py.

Generated-By: PostHog Code
Task-Id: 149c191c-7a22-4cf6-aafd-4dcf53f4fba0
2026-07-07 09:28:27 -04:00
Georges-Antoine Assi e483127120 Merge pull request #3702 from rommapp/posthog-code/firefox-static-bg-svg
perf(v2): use static background SVG in Firefox to stop GPU repaint
2026-07-06 22:49:00 -04:00
Georges-Antoine Assi 3d817b1762 Merge pull request #3701 from rommapp/posthog-code/save-core-per-game
feat(player): remember emulator core per-game
2026-07-06 22:48:52 -04:00
Georges-Antoine Assi 6e2a77aa93 fix(player): validate each stored core before falling back
Validate the per-game and per-platform cores independently so a stale
or unsupported per-game core falls through to a valid per-platform core
instead of jumping straight to the first supported core.

Generated-By: PostHog Code
Task-Id: 6cc47d8f-2bb8-4424-ba58-e595fe947444
2026-07-06 22:43:05 -04:00
Georges-Antoine Assi e0e2e109b1 perf(v2): use static background SVG in Firefox to stop GPU repaint
The auth_background.svg fallback contains two infinite CSS animations.
As a full-viewport background-image under a 28px blur (and re-sampled by
every backdrop-filter surface), Firefox's WebRender re-rasterizes the
whole viewport every frame, pegging the renderer/GPU. It is worst on
pages that fall back to this art (settings, administration) since they
call setBgArt(null); other pages show static cover art.

Swap to the existing static variant in Firefox only via the
@-moz-document url-prefix() hack (the same pattern v1's Auth.vue already
uses). Other browsers keep the animation. The BackgroundArt fallback is
moved from an inline style into CSS so the override can take effect.

Generated-By: PostHog Code
Task-Id: d82d41fa-0db7-477d-bb80-fc512558e076
2026-07-06 22:39:05 -04:00
Georges-Antoine Assi e3605bf950 feat(player): remember emulator core per-game
Persist the selected EmulatorJS core per-game and fall back to the
per-platform default when a game has no saved core. The per-platform
key is still written so it acts as the default for new games on that
platform.

Closes #2042

Generated-By: PostHog Code
Task-Id: 6cc47d8f-2bb8-4424-ba58-e595fe947444
2026-07-06 22:33:14 -04:00
Georges-Antoine Assi 30274cb31d Merge pull request #3689 from DevYukine/feat/playmatch-api-v2
feat(playmatch): move integration to API v2
2026-07-06 22:21:23 -04:00
Georges-Antoine Assi 3348d9bb29 cleanup 2026-07-06 22:17:56 -04:00