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>
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>
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>
* 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>
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>
* 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>
* 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>
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>
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>
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.
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
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>
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>
- 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>