Commit Graph

13476 Commits

Author SHA1 Message Date
Sam Dornan
0a25b384fd fix(auth): hash passwords with bcrypt directly and upgrade to bcrypt 5 (#4916) 2026-09-30 10:51:32 -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
6f55353a84 Merge pull request #4921 from rommapp/renovate/pinia-4.x
chore(deps): update dependency pinia to v4
2026-09-30 10:21:53 -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
Sam Dornan
6226e50dbe fix: serialize single-file ROM promotion across gunicorn workers (#4898) 2026-09-29 22:39:47 -04:00
Georges-Antoine Assi
4262789014 Merge pull request #4887 from rommapp/ccr-6d26a349-frontend-emdash
Remove the no-emdash-in-comment ESLint rule after a one-time sweep
2026-09-29 21:38:55 -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
62f7845a9b Merge pull request #4897 from andest01/feat/v2-scan-promote-filled
feat(v2): promote platforms with games in the scan picker
2026-09-29 21:07:15 -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
Sam Dornan
54bec6ed48 fix(scan): reuse unchanged empty files on quick scan (#4949)
* fix(scan): reuse unchanged empty files on quick scan

An empty file hashes to the default digest, which _make_file_hash stores
as a blank md5. rom_file_unchanged required a non-blank md5 on hashable
platforms, so an empty top-level file in a folder ROM (for example an
MSU-1 .msu) never counted as unchanged. The whole folder was re-hashed
and the ROM re-emitted on every quick scan, pushing it to the front of
Recently added.

Treat a zero-byte file as already hashed. Stored hashes stay blank so the
empty-input digest never feeds hash-based metadata matching.

Fixes #4933

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

* docs(scan): name _make_file_hash as the source of blank empty-file hashes

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 12:56:01 -05: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
4cbf43acab perf(gamelist): validate media tag paths once per directory (#4943)
* perf(gamelist): validate media tag paths once per directory

A full-platform gamelist parse ran validate_path on every media tag,
about a dozen lstat calls each, which added up to tens of seconds per
platform on NFS/SMB mounts.

FSHandler.cached_path_validator returns a validate_path equivalent that
runs the lexical checks per call but hits the disk once per distinct
parent directory. The leaf needs no syscall: validate_path accepts a
symlinked leaf, and a plain one resolves inside its checked directory.
The gamelist parse builds one per pass and threads it to the media tag
and directory-entry checks.

On a 1,500-entry gamelist with six media tags per entry, lstat calls
drop from 108,140 to 200.

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

* test(gamelist): pin one validate_path call per media folder

Condense cached_path_validator's docstring to one sentence, and assert
the exact per-folder call counts in the gamelist parse test, with the
media index stubbed so only the parse's own validation is counted.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 10:15:14 -05:00
Sam Dornan
41cd1be4a9 fix(v2): match RSelect stacked label spacing to text fields (#4942) 2026-09-29 11:07:45 -04:00
Sam Dornan
7c8778cc77 perf(scan): read only the selected ROMs' gamelist entries (#4940)
* perf(scan): read only the selected ROMs' gamelist entries

A scan of hand-picked ROMs warmed the gamelist cache by parsing the
platform's whole gamelist.xml. Every media tag of every entry goes
through validate_path, which stats each path component, so a 1,500
entry gamelist costs ~160k lstat calls. On a network mount that stalled
a one-ROM rescan for ~45 seconds before hashing started.

populate_cache now takes the file names to limit the parse to, and the
cache records that scope so a lookup outside it (a ROM renamed mid-scan,
or an overlapping library scan) still parses the full file.

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

* perf(scan): widen a limited gamelist cache instead of reparsing it all

A selected ROM renamed mid-scan (Switch title-ID embedding) is looked up
under a name outside the cache's scope, which fell back to a full parse
and brought the stall back.

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

* perf(scan): widen a limited gamelist cache by the missing names only

Each widening re-resolved every name already cached, so a batch of
Switch ROMs renamed mid-scan cost quadratic media resolution. Only the
names the cache lacks are read now, merged into the cached entries.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 09:22:55 -05: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
renovate[bot]
9b57d834fd chore(deps): update github actions (#4910) 2026-09-29 02:06:34 -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]
e60deadd27 chore(deps): update dependency vite-plugin-mkcert to v2 (#4925) 2026-09-28 22:31:52 -04:00
renovate[bot]
6d1bbab087 chore(deps): update dependency streaming-form-data to v2 (#4924) 2026-09-28 22:30:40 -04:00
renovate[bot]
b8022f45b9 chore(deps): update dependency globals to v17 (#4913) 2026-09-28 22:09:19 -04:00
renovate[bot]
b6181f05b3 chore(deps): update dependency ipykernel to v7 (#4919) 2026-09-28 22:01:53 -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
renovate[bot]
5a891ed448 chore(deps): update dependency certifi to v2026 (#4915) 2026-09-28 20:49:33 -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
Zach Clendenen
10b07e79f0 fix(streaming): delegate clipboard-write and tighten frame tests (code-review)
The room's invite button copies with navigator.clipboard, which a
cross-origin frame is refused for the same reason as camera and mic.
Tests now compare whole directives and unmount between cases.
2026-09-28 19:25:52 -05:00
Zach Clendenen
914c106e20 fix(streaming): let the webstation frame use camera and microphone
The room asks for the webcam and mic with getUserMedia, but the player
frame never delegated either, so multiplayer voice and webcam were
refused even with browser permission granted.

Fixes #4906
2026-09-28 19:18:29 -05:00
Georges-Antoine Assi
54447a6844 chore(frontend-v2): drop em-dashes from AppNav and GalleryShell comments
Trunk's no-emdash-in-comment rule flags every comment in a touched file.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Georges-Antoine Assi
66d63b1576 fix(frontend-v2): address Greptile review on the back-to-top button
Move keyboard and pad focus once the scroll reaches the top, since rows
mid-scroll can be virtualised away, and track the scroller's height so
the visibility threshold follows a resize.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Georges-Antoine Assi
ad5e4b8097 fix(frontend-v2): show the gallery scrollbar and add a back-to-top button
The gallery scroller hid its scrollbar with r-v2-scroll-hidden, leaving no
scroll position cue on long libraries. It now shows the themed scrollbar with
a stable gutter; the row packer, AlphaStrip, floating dock and top bar all
clear its width. A floating back-to-top button appears once the viewer is a
viewport down, honors reduced motion, and hands keyboard/pad focus to the
first control at the top.

Fixes #4365

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 20:09:39 -04:00
Sam Dornan
9798afdc7a feat(soundtrack): control playback through the Media Session API (#4904) 2026-09-28 19:46:55 -04:00
renovate[bot]
99675a4db5 chore(deps): update dependency pytest-cov to v7 (#4911) 2026-09-28 19:45:10 -04:00
renovate[bot]
615b196f87 chore(deps): update dependency @floating-ui/vue to v2 (#4907) 2026-09-28 19:27:27 -04:00
renovate[bot]
5f7e82a519 chore(deps): update dependency @types/node to v24 (#4908) 2026-09-28 19:27:01 -04:00
Georges-Antoine Assi
bec7133715 Merge pull request #4892 from rommapp/fix/oidc-stable-sub-1690
fix(auth): match OIDC users by their sub claim so an email change still logs in
2026-09-28 17:47:10 -04:00
Georges-Antoine Assi
7a5c67e4b8 Merge pull request #4893 from rommapp/fix/oidc-userinfo-fallback-1927
fix(oidc): fetch claims missing from the ID token from the UserInfo endpoint
2026-09-28 17:36:07 -04:00
Georges-Antoine Assi
8b7a6464fb fix(auth): address Greptile review on OIDC identity matching
- Match on (issuer, sub) with exact collation, so subjects from another
  provider or differing only in case never match.
- Refuse a login whose email is linked to another subject at the same
  issuer instead of rebinding the account; relink only across issuers.
- Check the account is enabled before saving identity changes.
- Keep the old email when it is claimed between the check and the write.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:34:14 -04:00