Commit Graph

6282 Commits

Author SHA1 Message Date
Georges-Antoine Assi
a12450d0fe Merge pull request #4853 from rommapp/fix/pdf-viewer-tabs
fix(v2): mount one PDF viewer at a time in the Media tab
2026-09-28 08:10:03 -04:00
Georges-Antoine Assi
e2224ba858 Merge pull request #4856 from rommapp/fix/setup-checkbox-scroll-blank
fix(v2): keep the checkbox's native input inside its label
2026-09-28 08:06:50 -04:00
Georges-Antoine Assi
abe5b85a06 test(v2): drive MediaTab test with a real memory router
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 08:05:24 -04:00
Georges-Antoine Assi
41c553020d Merge remote-tracking branch 'origin/master' into merge/pdf-viewer-tabs
# Conflicts:
#	frontend/src/utils/rom.fixtures.ts
2026-09-28 07:54:56 -04:00
Georges-Antoine Assi
1d52da5e93 Merge pull request #4848 from rommapp/fix/player-default-descriptor-file
fix(player): boot cue/gdi/ccd/mds disc sets whole by default
2026-09-27 20:46:54 -04:00
Sam Dornan
68e9204f46 fix(v2): stop URL query writes from dropping history entries; bump vue-router to 5.3.1 (#4861)
* chore(deps): bump vue-router to 5.3.1 and vue to 3.5.43

vue-router 5 needs vue ^3.5.34. The runtime API RomM uses is unchanged:
typecheck, the unit suite and the production build pass without code
changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* fix(v2): stop URL query writes from dropping history entries

Query-only router.replace calls resolved against currentRoute, which is
still the page being left while a navigation waits on async guards (the
view-transition capture, the ROM fetch in /rom/:id's beforeEnter). A
write landing in that window cancelled a pending push, so the click was
swallowed, or, on Back/Forward, replaceState'd the entry the browser had
already moved to with the old page's URL, deleting it from history.

patchQuery now binds each write to the path it was made on, waits for an
in-flight navigation to settle (tracked by installQueryNavigationGuard,
installed in AppLayout) and drops the write if the navigation left that
page. The gallery filter sync, the platform, collection, admin, library
management and notification tabs, and the notes selection now write
through it, and the gallery's debounced write is cancelled on unmount.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* style(v2): replace em-dashes in comments of files this PR touches

trunk check reports every no-emdash-in-comment hit in a modified file,
not only on changed lines. Comment text only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* fix(v2): rewrite a ?subtab= the details tab can't show

GameDetails swaps currentRom before a rom-to-rom navigation commits, so a
tab that resets its subtab for the new game writes into the pending
navigation and that write is dropped. The URL then kept a subtab the new
game doesn't have. useSubtabQuery now rewrites an invalid ?subtab= to the
subtab on screen on mount and after every path change, which also fixes
stale deep links.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* refactor(v2): key the details ROM by the route's :rom param

GameDetails read a single currentRom slot that the route guards filled
before the navigation committed, so the page being left briefly
rendered the next game under its own URL, and anything reacting to that
wrote into a navigation still in flight.

stores/roms now keeps a bounded, id-keyed cache of DetailedRoms.
setCurrentRom and update() feed it, so the shared /rom/:rom guard and
every SimpleRom write keep it current, and v1 keeps reading currentRom
unchanged. v2 reads through useRouteRom(), which looks the record up by
the committed route's :rom param: a guard can prefetch the next game
without the current page seeing it. The dialogs, useRomSync, the scan
and pending-asset refreshes, FilesTab and the player seeds all go
through the cache or the route id. useSubtabQuery's rewrite is narrowed
to stale links, the case it still covers.

Also replaces em-dashes in comments of the files this touches, which
trunk check flags per modified file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* style(v2): sort useRomScanRefresh imports for trunk's prettier

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* fix(v2): keep the shown game cached through a burst of rom hops (code-review)

Each superseded rom-to-rom navigation still cached its game, so ten
quick hops could evict the record the committed page renders and blank
it until the last hop landed. Re-cache the shown game before the next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* refactor(v2): simplify the query-write and ROM cache plumbing (simplify)

- routeQuery: track the in-flight navigation as a single marker and
  schedule one flush per router instead of a waiter queue; add
  replaceQuery for whole-query writes and route Logs through it, so no
  v2 query writer bypasses the guard.
- Tab, subtab and gallery-filter writers use syncQueryParam, which only
  writes keys that changed.
- useSubtabQuery shares one owned-subtab helper and drops the route.path
  trigger the id-keyed cache made redundant.
- The ROM cache holds 3 records (nothing reads it to skip a fetch) with a
  single-step eviction; GameDetails re-caches the shown game via
  useRouteRom; FilesTab uses refetchRom's result; Stream parses :rom
  with romIdFromRoute.
- Trim comments to the two-line rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* style(v2): trim the roms.update merge comment (review-polish)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* style(v2): tidy comment grammar left by the em-dash pass (humanizer)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* fix(v2): address review findings on query writes and the ROM cache

- syncQueryParam compares against the queued write, so a control
  switched back before the first write lands still gets written.
- Only the tracked navigation (or an untracked duplicate) settles the
  query guard, so an older navigation aborting after a newer one
  started can't release writes into it.
- roms.reset() (run on logout) clears the detailed ROM cache, and
  deleting a game drops its record once the page has moved off it.
- Shared makeDetailedRom fixture beside makeRom; the CollectionsIndex
  mock carries a route path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* fix(v2): settle query writes only for the tracked redirect chain

- A duplicate navigation settles the query guard only when it began as
  the tracked navigation (a guard redirect back onto this page, followed
  through redirect chains via redirectedFrom). An unrelated duplicate no
  longer releases a held write while the tracked navigation is pending;
  that navigation settles itself when vue-router cancels it.
- DeleteRomDialog logs a failed post-delete redirect instead of
  reporting the delete as failed, and keeps the record of a game the
  page still shows so an aborted redirect can't blank it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

* style(v2): drop the routeQuery header paragraph the guard docs already cover

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CB3a8xbmnmuMeddGnRgVse

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-27 19:43:59 -05:00
Georges-Antoine Assi
4db3caf040 test(v2): address Greptile review on the RCheckbox test comment
Trim the comment to two lines and drop the issue reference.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 20:26:33 -04:00
Georges-Antoine Assi
9d3e8e6cc4 fix(v2): address Greptile review on the PDF viewer subtabs
Hold the pdf.js app until its container is laid out, so a viewer that
loads while its subtab is hidden no longer sizes to zero. Build the
MediaTab ROM through a typed makeDetailedRom factory, and replace the
em-dashes in PdfViewer's comments.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 20:20:01 -04:00
Georges-Antoine Assi
96ede4f04b Merge remote-tracking branch 'origin/master' into feat/streaming-retroarch-core-override 2026-09-27 20:19:32 -04:00
Zach Clendenen
21c5b65d17 fix(streaming): address Greptile review of the RetroArch core override
- Retry the exit once when a broker boots the wrong core and the first exit
  fails: the broker refuses every activate while that game runs, and the
  released claim leaves nothing behind to stop it.
- Stamp the launch's core tier on the session and report it through the
  status poll, so a tab that missed launch-ready still warns about an
  untested or broken core, once.
- Translate the core-untested and core-blocked warnings in every locale.
2026-09-27 16:41:38 -05:00
Zach Clendenen
3fbb746ded test(streaming): review-polish pass, assert the core reaches the tier warning 2026-09-27 14:44:09 -05:00
Georges-Antoine Assi
a1d448b9f7 fix(player): leave the frozen v1 player out of the default change
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 15:10:50 -04:00
Georges-Antoine Assi
fc62d1f4ae style(v2): drop em-dashes from RCheckbox comments
Trunk flags every em-dash in a touched file as a new issue.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 15:08:19 -04:00
Georges-Antoine Assi
fc637f88f8 fix(v2): keep the checkbox's native input inside its label
The visually hidden native input is absolutely positioned, but the label
had no positioning, so its containing block was the nearest positioned
ancestor. In the setup wizard that is the backdrop-filtered card, which
sits outside the platform list's scroll box. Clicking a checkbox far down
the list (NES in the expanded Nintendo group) focused an input laid out
thousands of pixels below the card, and the browser scrolled the card's
overflow:hidden body to reveal it, blanking the whole step.

Positioning the label contains the input, so focus never scrolls anything
beyond the list itself.

Fixes #4223

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 14:55:31 -04:00
Georges-Antoine Assi
1c491e0aee refactor(devices): pr-ready simplify pass for device installs
- Share one watched-transaction retry loop and live/gone split in the install handler
- Emit independent socket events concurrently
- Drop the dialog's redundant close watcher and repeated current-rom checks
- Reuse the add_device_token fixture and shared header fixtures in tests
- Fix mypy errors in the socket and handler tests

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 14:49:13 -04:00
Georges-Antoine Assi
3fddda0f21 fix(v2): mount one PDF viewer at a time in the Media tab
vue3-pdf-app wraps a single global pdf.js application and looks up its
containers by fixed element ids. The Manual and Walkthrough subtabs stay
mounted via v-show, so with a PDF in each, both PdfViewers ran against the
same app: the walkthrough rendered into the manual's container (or not at
all), and pages laid out while hidden came up blank.

Only the last shown PDF subtab now mounts a PdfViewer, and only once it has
been shown.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 14:47:40 -04:00
Georges-Antoine Assi
d4e60af445 fix(player): boot cue/gdi/ccd/mds disc sets whole by default
The EmulatorJS player defaulted to the first file of a multi-file rom, so a
BIN/CUE (or GDI, CloneCD, Alcohol) set booted either the sheet or a single
track alone and never reached the game. Default such sets to the whole-rom
download, which already ships every track with a generated playlist of the
sheets. A remembered per-rom choice still wins. The v1 player reuses the
same helper.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 14:44:20 -04:00
nendo
f0c49b6a38 feat(devices): push downloads from the web UI to a device's download queue 2026-09-28 02:08:03 +09:00
Zach Clendenen
007fb90e53 feat(streaming): warn the player when the RetroArch core is untested or known broken 2026-09-27 09:49:08 -05:00
Georges-Antoine Assi
fbff4347ac Merge pull request #4815 from rommapp/fix/local-time-asset-names
fix(saves): stamp save and state file names with local time
2026-09-26 17:22:51 -04:00
Sam Dornan
cbfc904a48 fix(ra): count RomM's own RA hash match as RetroAchievements verification (#4816)
* fix(ra): count RomM's own RA hash match as RetroAchievements verification

The RetroAchievements verification chip, the header Verified badge and the
library verified filter only read Hasheous' `ra_match` flag. RetroAchievements
hashes only part of some ROMs (NDS, PSP), so Hasheous never flags those from
their file hashes, and a ROM RomM matched to its RA game by RA hash still
showed a grey chip.

The RA handler now records `hash_match` in `ra_metadata` whenever the ROM's
RA hash is one RetroAchievements lists for the matched game, whichever route
found the game (hash lookup, Hasheous-supplied id, filename tag, update scan
or a manual edit). The frontend verification helper and the backend verified
filter count it alongside Hasheous' flag. Existing ROMs pick it up on their
next scan.

Fixes #4801

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* style: satisfy trunk isort and no-emdash-in-comment

Sort imports with the repo's .isort.cfg and replace the comment em-dashes
in MetadataTab.vue that trunk flags once the file is modified.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* fix(ra): address code-review findings on the RA hash match

- A HASHES rescan whose RA lookup ran and found nothing clears
  `hash_match`, mirroring the Hasheous guard; a lookup that errored keeps it.
- A manual RA id change that can't be resolved no longer keeps the previous
  game's `hash_match`.
- `_search_rom` no longer caches a failed hash-list download ({}) as an
  empty index for the whole refresh window.
- Update the `verified` filter description and trim the romVerification
  header comment.

Step: pr-ready code-review (xhigh --fix)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* fix(ra): don't let a failed hash check block an RA ID lookup

`get_rom_by_id` now treats the hash-list check as secondary: on failure it
logs, keeps a match already recorded for the same game, and still returns
the game. A failed hash-list download raises "RetroAchievements
unavailable" instead of reading as "no match", so scans treat RA as
inconclusive and keep the stored flag.

Addresses the Copilot and Greptile review findings on ra_handler.py.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* refactor(ra): simplify the RA hash-match verification

- Cache the parsed RA hash index per platform, keyed by the cache file's
  mtime, so a scan parses it once instead of once per ROM.
- Check the hash only after `get_rom_by_id` has resolved the game.
- Give each frontend verification database its own `matches(rom)`, which
  drops the `ra_match` special case in the shared helper along with
  `matchesDatabase` and `VERIFICATION_KEYS`.

Step: pr-ready simplify

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* style(v2): polish romVerification naming and comment

Rename the Hasheous matcher factory to `anyHasheousFlag` and trim the
VERIFICATION_DATABASES comment to two lines.

Step: pr-ready review-polish

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

* fix(ra): keep a recorded hash match only for the same RA hash

When the hash-list check fails, `get_rom_by_id` now keeps a stored
`hash_match` only if both the game and the ROM's RA hash are unchanged, so
a rehashed ROM isn't left verified by a hash nobody checked. The
romVerification tests build on the shared typed `SimpleRom` fixture
instead of casting a bare object.

Addresses the Greptile review findings on ra_handler.py and
romVerification.test.ts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LfQbq2ZUFK53NMXPNktdaM

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:33:55 -05:00
Georges-Antoine Assi
8c3874a5b0 Merge remote-tracking branch 'origin/master' into HEAD
# Conflicts:
#	backend/tests/endpoints/test_saves.py
2026-09-26 16:08:30 -04:00
Sam Dornan
5b3d0bf544 feat(sync): record a per-device save baseline to prove what did not change (#4768)
compare_save_state decides a side changed from its timestamp, and
emulators rewrite a save on exit, so an untouched save looks new and a
server change elsewhere turns into a false conflict.

device_save_sync now records what each side held at the last sync
(last_sync_hash from the device, last_sync_server_hash from the server,
migration 0140). A baseline match proves that side unchanged; a mismatch
or NULL falls back to the timestamp logic, so this only removes
conflicts. It runs after the removed_at check in compare_save_state.

- Baselines are recorded only for versions the device provably holds:
  confirm_download pins to the served version, update_save records the
  client hash only when the file was uploaded, deduplicated uploads and
  pushed saves record against the surviving save, and push-pull no-ops
  record hashes only for identical content.
- Identical-content no-ops in negotiate and the watcher record a
  boundary without re-tracking untracked saves.
- The SSH push-pull and file-transfer watcher paths hash device saves
  through hash_save_file, matching compute_content_hash for zipped
  saves, and treat unreadable saves as unknown.

Squashes rommapp/romm#4768 onto master.



Claude-Session: https://claude.ai/code/session_01WAKUdfLb6fyduEqaFbf5A8

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 15:05:57 -05:00
Georges-Antoine Assi
c19dca87e7 Merge pull request #4811 from rommapp/fix/wrap-grid-nav-scroll-up
fix(v2): keep the focused platform tile in view when moving up the grid
2026-09-26 16:00:40 -04:00
Georges-Antoine Assi
e877ec71ee fix(v2): clear the fixed bars when centring index tiles
Addresses Greptile review on #4811:
- IndexShell gives focus-keyed tiles a scroll-margin matching the top bar,
  pinned toolbar and bottom tab bar, so a centred tile taller than the
  uncovered band no longer lands under the chrome on short viewports.
- Cover the saved-focus restore path with a test.
- Drop the comparison with "nearest" from the scroll comment.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 15:55:42 -04:00
Georges-Antoine Assi
8f505f129e Merge pull request #4810 from rommapp/fix/upload-scan-while-scanning
fix(v2): skip the post-upload scan while a scan is already running
2026-09-26 15:41:51 -04:00
Georges-Antoine Assi
26c6c181d5 Merge pull request #4796 from LoneAngelFayt/streaming-patches-8
feat(streaming): name containers by their label, and harden import archives
2026-09-26 15:39:39 -04:00
Sam Dornan
3750d6ff70 chore(mypy): require full annotations outside tests, type the setup responses (#4795) 2026-09-26 15:31:00 -04:00
Georges-Antoine Assi
71776206a1 Merge pull request #4809 from rommapp/fix/crt-mode-mobile-images
fix(v2): drop the CRT overlay's backdrop grade on phones
2026-09-26 14:27:33 -04:00
Georges-Antoine Assi
4ec4247e20 fix(player): address Greptile review on gamepad replay
Shorten the replay comment to two lines, and make the replay test assert
the pad lands in a player slot through a listener shaped like EmulatorJS's,
not just that dispatchEvent was called.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 14:10:43 -04:00
Georges-Antoine Assi
b6c03e79eb fix(saves): stamp save and state file names with local time
State names were built with toISOString() in the browser, and save,
streaming save and memory card names with datetime.now(timezone.utc) on
the server, so every timestamp in an asset's file name was UTC. States
now use the browser's local time and server-named assets use the
server's local time (the container's TZ). Matching and ordering read the
stored file_name and the DB timestamps, so existing files are unaffected.

Fixes #4726

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:58:54 -04:00
Georges-Antoine Assi
bca922d608 fix(v2): skip the post-upload scan while a scan is already running
The upload view and the patcher's "upload to RomM" emitted a scan
unconditionally. With a library scan in flight the backend refuses it with
scan:done_ko, which flipped the UI out of the scanning state and showed a
failure until the running scan's next progress event flipped it back.
Both now go through useScanTrigger, which warns instead of emitting.

Fixes #4690

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:55:04 -04:00
Georges-Antoine Assi
11b34ae18c fix(v2): center the row the wrap-grid nav moves to
Moving up the platforms/collections grid scrolled with block "nearest",
which parks the row at the viewport top edge, under the fixed top bar and
pinned toolbar, so focus ended up hidden. Vertical moves and focus
restoration now center the target row, matching useGridNav.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:55:01 -04:00
Georges-Antoine Assi
e7ee22f51c fix(v2): drop the CRT overlay's backdrop grade on phones
On Chromium for Android, the full-viewport backdrop-filter on the CRT
overlay left platform and collection images unpainted until touched.
The xs breakpoint keeps scanlines, vignette and flicker but skips the
saturation/contrast grade. Also swaps the file's em-dashes for
punctuation so it passes the no-emdash lint.

Fixes #4770

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:54:12 -04:00
Georges-Antoine Assi
16005c9474 fix(player): assign a gamepad already connected when EmulatorJS boots
EmulatorJS's GamepadHandler polls navigator.getGamepads() once inside its
constructor, before the emulator registers its "connected" listener. A pad
the page already knows about (such as the one that pressed Play) lands in
the handler's list without ever being assigned to a player slot, so its
input is dropped until it disconnects and reconnects.

Replay the "connected" event for those pads from the EJS_emulator
assignment trap, right after the constructor returns.

Fixes #4797

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:53:52 -04:00
Georges-Antoine Assi
81ff4599a7 fix(v2): show media pin button only on hover, even when pinned
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 13:21:37 -04:00
Georges-Antoine Assi
9815723844 style(v2): drop em-dashes from pinned media comments
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 12:54:40 -04:00
Georges-Antoine Assi
c6ffa3ca57 Merge remote-tracking branch 'origin/master' into feat/pinned-media
# Conflicts:
#	backend/tests/test_migrations.py
2026-09-26 12:45:12 -04:00
Sam Dornan
d1ce4e3db2 fix(sync): make deleted-save tracking exact, complete, and effective on filled slots (#4789) 2026-09-26 12:33:54 -04:00
Georges-Antoine Assi
14e03181a6 fix: stop whole rom_user writes from reverting pinned media
The player last-played updates now send an empty payload, the v1 main
sibling toggle sends only its field, and the v1 personal tab leaves
pinned_media out of its debounced save.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 11:24:03 -04:00
Georges-Antoine Assi
aa01f05e23 Merge pull request #4767 from rommapp/claude/github-issue-4678-w41e12
fix(auth): rename seeded permission groups to Viewer and Editor
2026-09-26 11:05:59 -04:00
Georges-Antoine Assi
9f80d800ef fix(v2): review-polish pass on pinned media
Put the unpinned pin on the overlay scrim so it reads over artwork, and
trim the header comments this PR touches to two lines.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 11:02:44 -04:00
Georges-Antoine Assi
d946af0539 refactor(auth): replace is_system with system_key
is_system was true exactly when system_key is set, so 0137 now drops it
after backfilling the key, and downgrade rebuilds it from the key. The
group API returns system_key instead, and the admin UI reads it for the
system tag and edit warning.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:58:21 -04:00
Georges-Antoine Assi
c79db61cb2 refactor(v2): simplify pinned media
Build each media source once per resolve, gate isPinned on scope inside
the composable, sync cached ROM copies on pin writes, require pinKey on
screenshot items, and share the order-preserving dedupe validator.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:52:32 -04:00
Georges-Antoine Assi
4f31df90f0 fix(v2): apply code-review fixes to pinned media
Cap the default selection at the pin limit, settle writes on the live
rom_user, gate pin controls on roms.user.write, dedupe keys server-side,
store resets as SQL NULL, and reuse MediaShelfItem for artwork entries.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:45:41 -04:00
Georges-Antoine Assi
5600324f21 Merge remote-tracking branch 'origin/master' into feat/frontend-eslint-guideline-rules
# Conflicts:
#	.claude/skills/review-polish/SKILL.md
2026-09-26 10:39:09 -04:00
Georges-Antoine Assi
1c2a60a776 refactor(frontend): parse SFC styles with PostCSS, resolve the lib boundary (simplify)
- Style rules walk a PostCSS AST parsed once per file instead of
  hand-rolled declaration, @media and comment regexes. postcss becomes a
  direct devDependency at the version already in the lockfile.
- The src/v2/lib boundary uses import-x/no-restricted-paths, so aliases
  and relative imports resolve to the same zones. The resolver now knows
  .d.ts so the emitter types match.
- typescript-eslint's eslintRecommended applies to .vue in place of a
  single no-undef override.
- A reportAt helper replaces the per-rule loc boilerplate, and sfc()
  carries the test filename.
- The Trunk no-emdash linter runs batched.
- CLAUDE.md and address-bot-reviews point to review-polish instead of
  repeating the encode-a-check guidance.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:31:43 -04:00
Georges-Antoine Assi
a852d774c2 fix(v2): address Greptile review on pinned media
- Share one write queue per ROM across the Overview, Screenshots and
  Artwork tabs, so pins from different tabs reach the server in order.
- On a failed write, restore the last server-confirmed pins only when no
  newer write is queued, instead of a stale pre-toggle snapshot.
- Refuse a pin past PINNED_MEDIA_MAX_ITEMS client-side with a snackbar,
  rather than sending a list the API rejects with 422.
- Trim MediaShelf comments to the repo's comment rules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:23:55 -04:00
Georges-Antoine Assi
48f2d4574e fix(frontend): tighten lint rule edge cases (code-review)
- no-color-literal: scan declarations after nested blocks, skip nested
  selectors and quoted strings.
- no-layout-media-query: allow the Media Queries 4 `or` keyword.
- no-emdash-in-comment: bound each search to its comment.
- Primitive import limits also cover the `@v2/` alias, `@/locales`, and
  `@/plugins/router`, and skip `*.spec.ts`.
- block-order puts scoped styles before unscoped ones.
- no-emdash (Trunk) points Python columns at the comment and treats .mdx
  as Markdown.
- Drop stale ESLint ignores and the unused sfc() lang parameter; update the
  scripts table in FRONTEND_ARCHITECTURE.md.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-26 10:22:12 -04:00
Georges-Antoine Assi
7840dd3a29 Merge remote-tracking branch 'origin/master' into feat/pinned-media
# Conflicts:
#	backend/endpoints/roms/__init__.py
#	backend/tests/test_migrations.py
2026-09-26 10:18:34 -04:00