Commit Graph

10344 Commits

Author SHA1 Message Date
Georges-Antoine Assi
14f8b024e4 Merge pull request #3658 from rommapp/copilot/bug-fix-non-version-filename-tags
Refine filename version-tag parsing to avoid swallowing generic `v*` tags
2026-07-03 08:44:18 -04:00
Georges-Antoine Assi
5d4316cf52 stirp version tags 2026-07-03 08:04:08 -04:00
Georges-Antoine Assi
d929b94fe2 run fmt 2026-07-03 07:56:23 -04:00
Georges-Antoine Assi
2395caa615 Merge pull request #3660 from rommapp/copilot/fix-alpha2-ui-save-state-screenshots
Fix v2 save-state screenshot rendering for filenames with special characters
2026-07-02 16:25:59 -04:00
copilot-swe-agent[bot]
79aebd6d5e Fix v2 state screenshot CSS URLs
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-07-02 17:27:41 +00:00
copilot-swe-agent[bot]
4230fe1f8e Initial plan 2026-07-02 17:20:43 +00:00
copilot-swe-agent[bot]
2621a62bee fix: tighten version tag detection for v-prefixed tags
Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
2026-07-02 11:10:02 +00:00
Georges-Antoine Assi
649b0b8402 Merge pull request #3656 from sildur/master
Fix typo in core mapping from 'zsx' to 'zxs'
2026-07-02 07:08:59 -04:00
copilot-swe-agent[bot]
66892e6d87 Initial plan 2026-07-02 11:06:14 +00:00
Roberto Romero
abdc446ff2 Fix typo in core mapping from 'zsx' to 'zxs'
The EJS core mapping in frontend/src/utils/index.ts keyed the ZX
Spectrum entry as zsx instead of the canonical platform slug zxs (as defined by UniversalPlatformSlug.ZXS in backend/handler/metadata/base_handler.py).

Renaming the key to zxs restores in-browser play for ZX Spectrum.
2026-07-02 10:18:27 +00:00
Georges-Antoine Assi
f90ba3b2a5 Merge pull request #3652 from Spinnich/fix/supergrafx-retroachievements-platform-id
fix(retroachievements): match SuperGrafx against RetroAchievements
2026-07-01 21:41:55 -04:00
Georges-Antoine Assi
335dcf5710 Merge branch 'master' into fix/supergrafx-retroachievements-platform-id 2026-07-01 21:36:09 -04:00
Georges-Antoine Assi
1309647d9f Merge pull request #3647 from Spinnich/fix/fds-retroachievements-platform-id
fix(retroachievements): match Famicom Disk System (FDS) against RetroAchievements
2026-07-01 21:35:12 -04:00
Georges-Antoine Assi
2e7aed8b17 cleanup 2026-07-01 21:29:43 -04:00
Georges-Antoine Assi
f0a195fb1c Merge branch 'master' into fix/fds-retroachievements-platform-id 2026-07-01 21:29:17 -04:00
Georges-Antoine Assi
36c36dc073 Merge pull request #3645 from Spinnich/fix/msx2-retroachievements-platform-id
fix(retroachievements): match MSX2 against RetroAchievements (#3644)
2026-07-01 19:25:01 -04:00
Georges-Antoine Assi
70206b142d cleanup 2026-07-01 19:13:42 -04:00
Spinnich
ef95f91aa0 fix(retroachievements): match SuperGrafx against RetroAchievements
SuperGrafx games never matched against RetroAchievements: the supergrafx
slug had no RA platform ID, so RA hashing was skipped during scans and
matching bailed out early.

RetroAchievements has no separate SuperGrafx console; its games share the
PC Engine/TurboGrafx-16 console, ID 8, same as tg16. Map supergrafx to
that console in both RA tables, mirroring the existing tg16 entries.

Fixes #3651.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 19:52:14 +00:00
Spinnich
6d8d273a81 fix(retroachievements): match Famicom Disk System against RetroAchievements
Famicom Disk System (FDS) games never matched against RetroAchievements:
the fds slug had no RA platform ID, so RA hashing was skipped during scans
and matching bailed out early.

RetroAchievements lists the FDS as its own console, ID 81, separate from
the NES/Famicom console (ID 7). Map fds to that console in both RA tables,
mirroring the existing platform entries.

Fixes #3646.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 17:33:22 +00:00
Spinnich
895337e9d8 fix(retroachievements): match MSX2 against RetroAchievements
MSX2 games never matched against RetroAchievements: the msx2 slug had no
RA platform ID, so RA hashing was skipped during scans and matching
bailed out early.

RetroAchievements has no separate MSX2 console; it groups MSX2 under the
MSX console, ID 29. Map msx2 to that console in both RA tables, mirroring
the existing msx entry.

Fixes #3644.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 16:40:50 +00:00
Georges-Antoine Assi
2149941ddd Merge pull request #3642 from rommapp/posthog-code/fix-unauthorized-asset-access-vulnerability
Add filters for has save/state
2026-07-01 12:00:11 -04:00
Georges-Antoine Assi
fcbf47a476 fix(hooks): make code-signing SessionStart hook executable
The hook never ran: the script was mode 644 and the command invoked it
directly ("$CLAUDE_PROJECT_DIR"/...sh), so it failed permission-denied and
silently no-oped, leaving git commit signing unconfigured. Mark it +x and
invoke via `bash` so a lost mode bit can't regress it. CLAUDE_PROJECT_DIR
is populated for SessionStart hooks, so the path was never the issue.

Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
2026-07-01 11:55:35 -04:00
Georges-Antoine Assi
0cf0b041de feat(gallery): count public saves/states in has-saves / has-states filters
The has-saves / has-states filters matched only the current user's own
saves/states. Match public (community) ones too, so a ROM with another
user's shared save/state is surfaced by the filter — mirroring the
owner-or-public visibility used elsewhere (get_rom_shared_saves/states).

Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
2026-07-01 11:50:58 -04:00
Georges-Antoine Assi
97320fa657 fix(gallery): refetch when has-saves / has-states filters toggle
GalleryShell's filter-change watcher and active-filter count enumerated
every filter except filterSaves/filterStates, so toggling them updated the
store (and URL) but never invalidated the gallery windows. The library only
refreshed once another watched filter changed. Add both to the storeToRefs
destructure, the refetch watch, and the active-count badge.

Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
2026-07-01 11:35:10 -04:00
Georges-Antoine Assi
c68f3ec100 feat(gallery): surface has-saves / has-states filters in v2 FilterDrawer
Wire the existing filterSaves/filterStates store fields into the v2 filter
drawer as tri-state toggles (they were destructured but unused), and add the
has-saves / has-states labels plus their aria strings across all 18 locales.

Generated-By: PostHog Code
Task-Id: feda1257-eb36-4566-9898-528087459416
2026-07-01 11:20:39 -04:00
Georges-Antoine Assi
7221265977 fix trunk 2026-07-01 10:51:56 -04:00
Georges-Antoine Assi
5a63f0d1be fixing failing tests 2026-07-01 10:44:00 -04:00
Georges-Antoine Assi
c94b92afdd self cleanup 2026-07-01 09:06:12 -04:00
Georges-Antoine Assi
71d5d3a47f refactor raw endpoint 2026-07-01 08:58:00 -04:00
Georges-Antoine Assi
da2ccb6d56 Merge pull request #3639 from rommapp/posthog-code/fix-n64-rotating-3d-box-size-display
Fix 3D box size calculation for landscape spine images
2026-06-30 18:26:05 -04:00
Georges-Antoine Assi
9beeaaebdf Add landscape 3D rotating box effect 2026-06-30 18:05:08 -04:00
Georges-Antoine Assi
dbf29f9feb Merge pull request #3638 from Spinnich/fix/filter-values-cache-schema-version
fix(roms): namespace filter-values cache by schema version
2026-06-30 08:28:03 -04:00
Georges-Antoine Assi
8c370fbc22 Merge branch 'master' into fix/filter-values-cache-schema-version 2026-06-30 08:22:19 -04:00
Georges-Antoine Assi
067711b9d7 use version as shcema key 2026-06-30 08:22:16 -04:00
Spinnich
a08b7dfbda fix(roms): namespace filter-values cache by schema version
The /api/roms filter_values dict is cached in Redis keyed only by a
runtime data-version that survives app upgrades. When a filter field is
added (e.g. tags), entries written by the previous version lack the new
key, so the response fails validation (filter_values.tags "Field
required") and returns 500 until the entry's 7-day TTL elapses or a scan
invalidates it.

Embed a schema version in the cache key so reads after an upgrade ignore
entries written under the old shape and recompute instead. Pre-namespace
keys are bypassed for free by the changed key format. Bump
ROM_FILTERS_CACHE_SCHEMA_VERSION whenever the cached dict gains or loses
a field.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 10:47:16 +00:00
Georges-Antoine Assi
78e08ee54f Merge pull request #3634 from rommapp/claude/fervent-davinci-oc3y6f
Add Artwork subtab to Media tab with scraped art gallery
5.0.0-alpha.2
2026-06-29 19:38:35 -04:00
Georges-Antoine Assi
a0f9535d45 update langs 2026-06-29 19:36:35 -04:00
Georges-Antoine Assi
9c7b12b983 Merge pull request #3632 from rommapp/claude/github-issue-3574-eiapde
Fix ROM upload temp directory to use RESOURCES_BASE_PATH
2026-06-29 19:34:57 -04:00
Georges-Antoine Assi
9858d5bf60 Merge branch 'master' into claude/fervent-davinci-oc3y6f 2026-06-29 19:29:54 -04:00
Georges-Antoine Assi
69aad95282 remove comments 2026-06-29 19:28:13 -04:00
Georges-Antoine Assi
253fd33e30 Merge branch 'master' into claude/github-issue-3574-eiapde 2026-06-29 19:26:08 -04:00
Georges-Antoine Assi
0cefc0eb73 Merge pull request #3631 from rommapp/claude/github-issue-3617-l1l0cu
Add ROM revision field to game details overview
2026-06-29 19:25:51 -04:00
Georges-Antoine Assi
dd591ba298 Merge pull request #3635 from rommapp/fix/sibling-platform-id-detached-load
fix(backend): load platform_id on siblings to avoid DetachedInstanceError
2026-06-29 19:22:01 -04:00
Georges-Antoine Assi
c69e77ba0a fix(backend): load platform_id on siblings to avoid DetachedInstanceError
The single-rom endpoints (`/{id}/simple`, `/{id}`) build SiblingRomSchema
from the eager-loaded `sibling_roms` relationship. `_visible_siblings`
filters those siblings with `perms.can_see_rom(s.id, s.platform_id)`, but
the `with_details` loader restricts sibling columns via `load_only` and did
not include `platform_id`. Reading the deferred attribute after the session
closed triggered a lazy load on a detached instance, raising
DetachedInstanceError.

Add `Rom.platform_id` to the sibling `load_only` so the permission check
reads an already-loaded column.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 18:10:03 -04:00
Claude
4e07aa45bb feat(frontend-v2): surface scraped videos on the Overview tab
Extract the art-asset resolution into a shared util (resolveRomArtwork)
so the Media tab's Artwork subtab and the Overview tab stay in sync, and
add a Videos section to the Overview tab for the scraped preview clips.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFq1CxyxqM5nBCY6Tfgyv1
2026-06-29 14:46:34 +00:00
Claude
c1c1797abb fix(frontend-v2): expose scraped art assets in Media tab
The V2 game details view only surfaced screenshots and title screens,
hiding the majority of scraped art (bezel, logo, marquee, box art, fan
art, mix images) and the scraped videos that the classic GUI showed in
its overview carousel.

Add an "Artwork" subtab to the Media tab: a read-only, labelled gallery
of every scraped art asset that doesn't already have its own surface.
Images open a fullscreen lightbox; videos play inline. ScreenScraper is
preferred with gamelist fallbacks, mirroring v1's MediaCarousel.

Closes #3613

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FFq1CxyxqM5nBCY6Tfgyv1
2026-06-29 14:40:08 +00:00
Claude
f9a5537efc fix(upload): store chunk temp dir under writable resources path
Chunked ROM uploads created their temp directory directly under
ROMM_BASE_PATH (/romm/tmp/uploads). The bare /romm directory is owned by
the image's romm user (1000:1000, mode 755), so containers running with a
custom UID/GID cannot create directories there, causing uploads to fail
with "PermissionError: [Errno 13] Permission denied: '/romm/tmp'".

Default the upload temp root to RESOURCES_BASE_PATH instead, which is a
writable mounted volume in those setups (this is why manual uploads, which
write under resources/, already worked). ROMM_TMP_PATH still overrides it.

Fixes #3574

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014ficBAiEtYtZyBY8nWExKh
2026-06-29 14:36:09 +00:00
Claude
0e38eb4024 fix(frontend-v2): show revision tag on game Overview tab
The v2 game details Overview tab did not surface the parsed revision
tag (e.g. "Rev 1", "Rev B"), which the classic GUI showed in its Info
section. Add a Revision fact row to the Overview tab, sourced from the
ROM's revision field.

Closes #3617

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TUiuFX615VBcwYT7xb6dsm
2026-06-29 14:35:41 +00:00
Georges-Antoine Assi
cdbad10ab5 Merge pull request #3629 from Spinnich/feat/filter-by-custom-tags
feat(roms): filter games by custom tags
2026-06-29 10:27:18 -04:00
Georges-Antoine Assi
9740793673 Merge pull request #3628 from rommapp/dependabot/uv/python-socketio-5.16.2
build(deps): bump python-socketio from 5.14.0 to 5.16.2
2026-06-29 10:10:42 -04:00