Commit Graph

6384 Commits

Author SHA1 Message Date
Sam Dornan
6941de13db Remove unused code and deduplicate copied helpers (#4975) 2026-09-30 18:51:36 -04:00
Georges-Antoine Assi
1bcc1401ad Merge pull request #4963 from rommapp/chore/renovate-hold-typescript-7
chore(deps): update typescript to 6.0.3 and hold below 7
2026-09-30 17:18:00 -04:00
Georges-Antoine Assi
ec097ea7e9 Merge pull request #4955 from andest01/fix/dark-mode-wcag-aa
fix(a11y): dark mode typography is WCAG AA safe
2026-09-30 15:23:25 -04:00
Georges-Antoine Assi
5a41e34363 Merge pull request #4953 from rommapp/fix/emulatorjs-player-fixes
fix(player): EmulatorJS multi-disk boot, Safari fullscreen quit, sparse gamepads, netplay audio, mame2003_plus default
2026-09-30 15:16:02 -04:00
dependabot[bot]
1a5a944f56 chore(deps-dev): bump brace-expansion from 2.1.4 to 2.1.7 in /frontend (#4961)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 2.1.4 to 2.1.7.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v2.1.4...v2.1.7)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 2.1.7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 11:33:15 -05:00
Sam Dornan
45baff1544 Hide the game Achievements tab when the ROM has no achievements (#4968)
* Hide the game Achievements tab when the ROM has no achievements

The v2 game page listed an Achievements tab with a 0/0 badge on every
ROM, including ones with no RetroAchievements match and RA games without
an achievement set. Offer the tab only when the ROM has achievements.

A ?tab=achievements the ROM has no tab for now opens the overview. The
query stays in the URL, so stepping on with prev/next to a ROM that has
achievements opens its tab again.

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

* Type the achievement fixture, cover stepping between ROMs

Build the test achievement as a complete RAGameRomAchievement instead
of casting a partial object, add a test that ?tab=achievements reopens
the Achievements panel once the route moves on to a ROM with a set, and
drop a comment that restated the length check.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 11:28:56 -05:00
Sam Dornan
7a8e9f32f0 Match RetroAchievements by RA hash only, never by Hasheous' game ID (#4962)
* Match RetroAchievements by RA hash only, never by Hasheous' game ID

Hasheous links an RA game to a whole Hasheous game record, so every dump
grouped under it (other revisions, regions, bad dumps) got that RA ID and
its achievements, even when RA doesn't list the dump's hash as compatible.
It also bypassed RomM's own RA hash lookup and reached the priority merge
when RA was deselected or ranked below Hasheous.

Stop reading the RetroAchievements ID from the Hasheous lookup, drop the
unused RA proxy fetch (its response was discarded), and have fetch_ra_rom
always go through RA's hash list. Existing wrong matches clear on a
Complete rescan.

Fixes #4959

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

* pr-ready step 2 (code-review): cover stale and deselected-RA matches, fix stale copy

Parametrize the Banjo-Kazooie regression test over RA selected and
deselected, starting from a stale Hasheous ra_id, so it pins both the
Complete-rescan clear and the priority-merge leak. Move the RA comment
onto the hash-lookup branch, drop a merge get_igdb_game already does,
and stop the Hasheous provider description claiming it supplies
RetroAchievements IDs.

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

* pr-ready step 3 (simplify): reuse scan stubs in the Hasheous RA test

Build the Banjo-Kazooie platform, ROM and top-level file with the shared
add_n64_platform/add_rom/_top_level_rom_file helpers, state the expected
RA lookup as a parameter instead of branching on it, and drop a comment
that described the removed Hasheous path.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-30 11:28:46 -05:00
renovate[bot]
7214323348 chore(deps): update dependency axios to v1.20.0 [security] (#4966)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-30 11:18:27 -05:00
dependabot[bot]
fe4447dda2 chore(deps): bump markdown-it from 14.2.0 to 14.3.2 in /frontend (#4960)
Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 14.2.0 to 14.3.2.
- [Changelog](https://github.com/markdown-it/markdown-it/blob/14.3.2/CHANGELOG.md)
- [Commits](https://github.com/markdown-it/markdown-it/compare/14.2.0...14.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-version: 14.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-30 11:08:39 -05:00
Sam Dornan
94a01965b8 refactor(db): drop stored columns that duplicate derivable data (#4930) 2026-09-30 11:45:18 -04:00
Georges-Antoine Assi
1b536b714a Merge pull request #4927 from rommapp/renovate/vuetify-4.x
chore(deps): update dependency vuetify to v4
2026-09-30 11:22:23 -04:00
Georges-Antoine Assi
6d633b3413 chore(deps): update typescript to 6.0.3
typescript-eslint moves to 8.70.1, the first release in the npm age
window whose peer range (<6.1.0) admits TypeScript 6. TypeScript 6
enables noUncheckedSideEffectImports by default, so the vuetify/styles
CSS import gets an ambient module declaration.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 10:55:15 -04:00
Sam Dornan
066715efb8 chore(deps): update md-editor-v3 to v7 and fix its breaking changes (#4922) 2026-09-30 10:52:17 -04:00
Georges-Antoine Assi
4bfec16cb5 fix: adapt v1 frontend to Vuetify 4
Select/autocomplete/combobox item, selection and chip slots now pass the
raw item as `item`, so drop the `.raw`/`.title` unwrapping. VDateInput
graduated out of labs, and theme colors are typed as Color.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-30 10:51:11 -04:00
Georges-Antoine Assi
ed4fb4dd33 Merge remote-tracking branch 'origin/master' into renovate/vuetify-4.x 2026-09-30 10:46:55 -04:00
Georges-Antoine Assi
55467eaa32 Merge pull request #4923 from LoneAngelFayt/fix/4906-webstation-camera-mic
fix(streaming): let the Webstation frame use camera, microphone and clipboard
2026-09-30 10:41:41 -04:00
Georges-Antoine Assi
d6650bdb1b Merge remote-tracking branch 'origin/master' into renovate/pinia-4.x
# Conflicts:
#	frontend/package-lock.json
2026-09-30 10:10:25 -04:00
Stuart Anderson
96546f304a fix(a11y): index token file updated 2026-09-30 01:57:46 -05:00
Stuart Anderson
4add78bf3b fix(a11y): dark mode typography is WCAG AA safe 2026-09-30 01:15:17 -05:00
Sam Dornan
6226e50dbe fix: serialize single-file ROM promotion across gunicorn workers (#4898) 2026-09-29 22:39:47 -04:00
Georges-Antoine Assi
d0098c17d7 pr-ready simplify: stop exporting sfcFragment
Its only outside caller was the removed no-emdash-in-comment rule.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 21:32:40 -04:00
Georges-Antoine Assi
f1a98234c2 pr-ready code-review: fix sweep prose and Pair error handling
Repair comments where the em-dash sweep left broken pairs, colon plus
conjunction joins, and misaligned column lists. Block filesystem: in the
pairing callback check, route both Pair views through the shared
errorMessage() helper, and drop the SfcNode comments field the removed
rule used.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 21:29:21 -04:00
Georges-Antoine Assi
978516b5f6 Reject script-capable schemes in the pairing callback
isCustomScheme only rejected http and https, so a javascript: or data:
callback passed the check and ran in the RomM origin with the freshly
exchanged token. Share one check between the v1 and v2 Pair views and
block javascript:, data:, vbscript:, blob: and file: too (CodeQL
js/xss and js/client-side-unvalidated-url-redirection).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 21:12:12 -04:00
Georges-Antoine Assi
61f43c3971 Fix lint issues in files touched by the comment sweep
Replace the color literals in AuthLayout and BarcodeScannerDialog with
equivalent color-mix() over named colors, and apply the vue attribute
order and v-slot shorthand fixes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 21:12:05 -04:00
Georges-Antoine Assi
555b0c0123 Merge remote-tracking branch 'origin/master' into ccr-6d26a349-frontend-emdash
# Conflicts:
#	frontend/src/v2/components/AppShell/AppNav.vue
#	frontend/src/v2/components/Gallery/GalleryShell.vue
#	frontend/src/v2/components/Gallery/SelectionBar.vue
#	frontend/src/v2/components/GameDetails/GameHeader.vue
#	frontend/src/v2/components/GameDetails/SaveDataTab.vue
#	frontend/src/v2/components/Player/AssetPreview.stories.ts
#	frontend/src/v2/components/Player/ResumePanel.stories.ts
#	frontend/src/v2/components/Settings/CreateClientTokenDialog.vue
#	frontend/src/v2/components/Soundtrack/MiniPlayer.vue
#	frontend/src/v2/components/shared/AssetList.stories.ts
#	frontend/src/v2/components/shared/AssetStrip.stories.ts
#	frontend/src/v2/components/shared/AssetStrip.vue
#	frontend/src/v2/components/shared/GameCover.vue
#	frontend/src/v2/lib/forms/RComboboxField/RComboboxField.vue
#	frontend/src/v2/lib/forms/RSelect/RSelect.vue
#	frontend/src/v2/lib/forms/RTextField/RTextField.vue
#	frontend/src/v2/lib/structural/RCollapsible/RCollapsible.vue
#	frontend/src/v2/views/Player/EmulatorJS.vue
#	frontend/src/v2/views/Scan.vue
#	frontend/src/v2/views/Settings/UserInterface.vue
2026-09-29 21:08:40 -04:00
Georges-Antoine Assi
49a079a3e7 chore(v2): replace em-dashes in Scan.vue comments
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 21:00:24 -04:00
Georges-Antoine Assi
f3afeb79ba Merge remote-tracking branch 'origin/master' into feat/v2-scan-promote-filled 2026-09-29 20:59:21 -04:00
Georges-Antoine Assi
efc984f7cd fix(player): default arcade games to mame2003_plus
The mame2003 core bundled with EmulatorJS 4.2.x crashes with
"RuntimeError: unreachable" on many games (EmulatorJS#1030), while
mame2003_plus runs them. A core chosen on the play screen or set in
config.yml default_cores still wins.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 20:45:32 -04:00
Sam Dornan
518f270d51 test(frontend): pin the timezone for pending-asset capture names (#4948)
Two syncPendingAssets tests expected UTC in the state and archived save
names, but sessionStateName formats the capture in local time on purpose
(b6c03e79e, #4726). They passed only on UTC machines like CI. The suite
now stubs TZ to Asia/Kolkata (+05:30) and expects that local time, so a
switch to UTC formatting fails the tests on any machine.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 11:31:15 -05:00
Sam Dornan
41cd1be4a9 fix(v2): match RSelect stacked label spacing to text fields (#4942) 2026-09-29 11:07:45 -04:00
Georges-Antoine Assi
16d74c5037 fix(netplay): stream the host's game audio to guests
EmulatorJS netplay captures host audio once, from OpenAL nodes
(Module.AL) or gameManager.audioNode. Nightly cores, which RomM loads
whenever netplay is enabled, play through RetroArch's rwebaudio driver
instead, connecting each buffer straight to AudioContext.destination,
so the capture finds nothing and guests get video with no sound.

Before the core boots, tee every connection to a context's destination
into a MediaStreamDestination (through a gain carrying netplay's boost
factor), and point the netplay instance's _captureHostAudio at that
stream. It falls back to the stock capture if nothing has played yet.

Fixes #3891

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:39 -04:00
Georges-Antoine Assi
571f171151 fix(player): look up EmulatorJS gamepads by browser index on 4.2.3
EmulatorJS 4.2.3 indexes GamepadHandler's compact pad list with the
browser's gamepad index in its "connected" and input listeners. Chrome
and Brave can leave slot 0 empty and put a lone pad at index 1, so the
lookup reads undefined.id, the exception escapes the polling loop, and
no gamepad input is ever registered.

Upstream fixed this in EmulatorJS/EmulatorJS@29c79a12, which is only on
main. Until a release carries it, the EJS_emulator trap wraps those four
listeners to translate the browser index into the list position first.
Builds that have getGamepadSelectionValue (the nightly CDN build used
for netplay) are left alone.

Fixes #3710

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
b4a4209ffb fix(player): leave fullscreen before the player reloads the page
Safari crashes in its fullscreen teardown when the content process is
swapped while the page is still fullscreen. Leaving the player reloads or
replaces the document to drop cross-origin isolation, which swaps the
process, so a Quit from fullscreen took the whole browser down.

Exit fullscreen, and wait for it (capped at one second), before the v2
document replace, the EmulatorJS player's route leave, and the console
player's route leave.

Fixes #3726

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
36b1084548 fix(player): boot multi-disk games on EmulatorJS 4.2.3
startGame builds the disks menu before the settings menu, and building it
re-selects the current disk through menuOptionChanged. On 4.2.3 that writes
to allSettings before it exists, so any game whose core reports more than
one disk (PUAE m3u playlists, DOSBox Pure with several images) fails with
"Cannot set properties of undefined (setting 'disk')". Past that, PUAE
traps in setCurrentDisk that early.

The instance's menuOptionChanged now ignores "disk" until the game has
started. The skipped call only re-selects the disk the core already has,
so disk swaps from the menu once running are unaffected, and it is a no-op
on nightly builds that already initialise allSettings.

Upstream: EmulatorJS/EmulatorJS#1260

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:44:38 -04:00
Georges-Antoine Assi
56c1342300 Merge pull request #4894 from rommapp/fix/v2-scrollbar-back-to-top-4365
fix(frontend-v2): show the gallery scrollbar and add a back-to-top button
2026-09-29 08:38:49 -04:00
Georges-Antoine Assi
f17575fb28 fix(frontend-v2): cancel the back-to-top focus handoff on an interrupted scroll
Addresses Greptile review: a keyboard or pad user who interrupted the smooth
scroll kept a pending handoff, so a later return to the top pulled focus to
the first gallery control. A scrollend short of the top, or focus moving
elsewhere, now cancels it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:28:50 -04:00
Georges-Antoine Assi
d28642f4a7 fix(frontend-v2): tuck the back-to-top button against the AlphaStrip
The button sat a full row padding left of the letter strip, floating in the
middle of the gutter. It now rests just inside the strip column, and falls
back to the cards' right edge when no strip renders.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-29 08:26:00 -04:00
Sam Dornan
9bb6ff5dba refactor(frontend): derive state that was stored and synced by hand (#4929) 2026-09-29 01:18:09 -04:00
renovate[bot]
6fc1606e1e chore(deps): update dependency @vueuse/core to v15 (#4909) 2026-09-29 00:00:57 -04:00
Sam Dornan
bcc758eedf fix(v2): pin trailing: false on native reprobe throttle (#4928) 2026-09-28 22:50:59 -04:00
renovate[bot]
bb11130a4b chore(deps): update dependency md-editor-v3 to v7 (#4920) 2026-09-28 22:36:44 -04:00
renovate[bot]
e4f96663fe chore(deps): update dependency vuetify to v4 2026-09-29 02:34:31 +00:00
renovate[bot]
e60deadd27 chore(deps): update dependency vite-plugin-mkcert to v2 (#4925) 2026-09-28 22:31:52 -04:00
renovate[bot]
b8022f45b9 chore(deps): update dependency globals to v17 (#4913) 2026-09-28 22:09:19 -04:00
Sam Dornan
1d21598294 fix(frontend): drop unused ts-expect-error for pinia._s
Pinia 4 types the internal `_s` store map on `Pinia`, so the
suppression in SettingsDrawer is now flagged as unused (TS2578).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011g7nUUsVZFsR4asybGp3cy
2026-09-29 01:58:41 +00:00
renovate[bot]
2bc79dc25b chore(deps): update dependency pinia to v4 2026-09-29 01:50:50 +00:00
renovate[bot]
9c8f34a3ab chore(deps): update dependency cronstrue to v3 (#4917) 2026-09-28 21:32:45 -04:00
Sam Dornan
1f6fc1c210 test(tasks): cover scheduled cron description in TasksSection (#4918) 2026-09-28 21:32:13 -04:00
Zach Clendenen
78443fecc1 test(streaming): drop a comment restating the setup (review-polish) 2026-09-28 19:34:28 -05:00
Zach Clendenen
bb17fbaa98 test(streaming): read the frame's static attributes once (simplify) 2026-09-28 19:27:56 -05:00