The Playmatch switch shipped its choice as a standalone `playmatch_enabled`
flag, but the backend gates the lookup on `MetadataSource.PLAYMATCH in apis`
and nothing ever read the flag, so UI-initiated scans never queried
Playmatch. Push `playmatch` into `apis` like `hasheous`, and drop the dead
flag from the payload and the scan plumbing.
Fixes#4505
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The test shrinks the claim refresh and staleness windows to 0.05s and 0.2s and
races them against a 0.5s activate, so whether the refresh lands before the
read depends on scheduling. It passed and failed in alternating runs on an
unchanged tree.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
PlayerShell renders the stage in a v-else on `running`, so releaseGame
unmounts it while the view stays mounted. The fallback held that element
in a closure and only cleared it on exit, leaving document.fullscreenElement
and the legacy alias pointing at a detached node, with no fullscreenchange
to correct vueuse's state.
The real API exits when its element is removed, so the fallback now does
too, watching only while it holds an element. That keeps the fix in the
polyfill rather than asking every caller to clear fullscreen before it
tears its stage down.
Moves useFullscreenFallback to its own module: v2 composables are one
named export per composables/useFoo/index.ts.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
review-polish pass over the save-picker change.
Two comments carried more prose than the rule allows. The emulator comparison
re-normalized a value ResolvedContainer already lowercases at resolve time,
which the sibling state resolver relies on, so it now reads the same way.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Entry and exit failures are not the same. A rejected request is a denial
and the stage just stays windowed, but callers exit before opening a
body-teleported dialog, so a failed exit leaves that dialog painted over
by the stage with nothing said. The shared wrapper discarded both.
Uses console.error rather than the console.warn this replaced, which v2
does not allow to ship.
Also drops indexdb-monitor.ts from the frontend architecture doc's source
tree, which still listed the deleted file.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
simplify pass over the save-picker change.
The claim validated the pick, dropped the resolved row and passed the bare id
down two layers, where hydration fetched and re-checked the same save. It now
carries the row the way the resume state and the memory card already are, so
the restorability rule has one home and the claim one lookup.
The picker holds the picked id rather than the row, so an id that is no longer
on offer falls back to the newest by construction instead of through a watch,
and the list of archives uses AssetList, the variant meant for saves, rather
than the tile strip whose thumbnail area a save never fills.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Comments cut to the repo's two-line limit, and the fallback's background
keeps a `black` fallback value so it does not depend on the `.r-v2` token
scope being present, as the v1 shim's literal did not.
The attribute name was written three times across the stylesheet and the
enter/exit pair, where a rename in one would silently stop the CSS
matching.
Verified the fallback in Chromium: it stands aside where the native API
exists, and where it does not the stage computes to position fixed,
z-index 99999, filling the viewport, opaque in both themes and with no
token scope, reverting to static on exit and leaving the prototype clean
on dispose.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
Follow-up to #4515, merged before its review landed:
- Mark the card logo decorative (empty alt); the provider name sits
next to it and screen readers announced each provider twice.
- Add a name-tag prop so the scan reference dialog renders provider
names as h4 again, keeping heading navigation.
- Restore the ul/li provider collection in the setup wizard so screen
readers keep list semantics.
- Finish the Flashpoint label normalization in the GameDetails
provider registry and the heartbeat store scan options; the
remaining copies live in frozen v1 files.
- Replace raw hex colors in the story's placeholder logo URLs with
CSS color names.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
usePlayerFullscreen took an optional target so three library-driven
players could call it bare, purely to install the prototype patch, and
throw the controller away. That discarded controller was not free:
vueuse defaults the target to documentElement and still registers its
fullscreenchange listeners on both it and document.
Split the side effect into useFullscreenFallback and make the target
required. The three call sites now say what they mean without a comment
apologising for an unused return value.
Refcount the install. The patch is process-global while its callers are
scoped, so overlapping consumers would otherwise stack private patch
layers and restore them in teardown order. Probing HTMLElement.prototype
rather than Element.prototype lets an installed fallback see itself.
Drops v2's writes to playing.fullScreen, which no longer had a reader in
either tree. The field stays because v1 still destructures it.
Also: hoist swallow to module scope, annotate the return inline rather
than exporting an unused interface mirroring vueuse's shape, cover the
document.fullScreen alias at the layer that defines it, dispose test
fallbacks in afterEach so a failed assertion cannot leak a patched
document into the next test, and drop test cases that re-covered the
util through the composable.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
code-review pass over the save-picker change.
The launch screen listed every save this emulator wrote, but the broker only
restores .zip archives, so a bare save file could be named as the one about to
be restored while a much older archive actually went up. One restorable list
now feeds the panel, the tab and the picker alike.
A claim that carries a pick looks the save up by id instead of loading every
save on the ROM to scan for it, and the emulator comparison normalizes both
sides so a config value that is not already lowercase cannot silently match
nothing.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The fallback that emulates the Fullscreen API gated on a user-agent
sniff for iOS. Both branches of that check also match iPad, where the
API genuinely works behind the webkit prefix, so the fallback was
replacing a working native implementation with a fixed-position div:
iPad players lost real fullscreen and kept the browser chrome.
Gate on capability instead. iPhone has no element fullscreen at all
(caniuse note 5, still current for iOS 27), iPad has the prefixed API,
everything else has the standard one, so probing Element.prototype puts
each platform on the best implementation it has and retires the fallback
by itself if iPhone ever ships the real thing.
Centralise the rest behind usePlayerFullscreen. Fullscreen was reaching
the five players five different ways, and the fallback was installed by
only one of them, so the shared "start in fullscreen" toggle did nothing
on iPhone in the other four. The composable installs the fallback for
the scope and wraps vueuse's useFullscreen, which brings the webkit
prefix handling that Stream's hand-rolled version lacked. Players whose
library drives fullscreen itself call it without a target: the fallback
patches the same prototype the library reaches for.
The fallback also has to expose document.fullScreen. It is the
deprecated alias support probes read to decide the API is usable, and
without it vueuse treats the polyfilled API as unsupported and enter()
silently does nothing.
Drops playing.setFullScreen, which had no callers. The fullScreen state
it wrote is still referenced by v1 and cannot go until that tree does.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
The settings tiles, setup wizard step and scan reference dialog each
hand-rolled their own provider card markup and duplicated the provider
display data (names, logos, links, locale keys) three times. The
LaunchBox and Flashpoint tiles in the settings grid also showed a gap
under the footer: the tile was not a flex column, so a card stretched
by a taller sibling in its grid row left the spare space below the
footer instead of above it.
- Add the MetadataProviderCard shared composite with tile and row
layouts, status chip, setup/caveat pills, and #description /
#actions slots, plus a Storybook story covering both layouts.
- Add the METADATA_PROVIDER_INFO registry as the single home for
provider display data; all three surfaces derive from it. This
normalizes "Flashpoint Archive" -> "Flashpoint" and
"How Long To Beat" -> "HowLongToBeat".
- Pin the tile footer to the card's bottom edge, fixing the gap.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CI's check-v1-frozen fails any diff touching
frontend/src/{views,components,console,layouts} without the
allow-v1-changes label, which is reserved for sanctioned critical bug
fixes. A deprecation comment is not one, so the annotation comes out
rather than bypassing the guard. The divergence is documented on the v2
fork instead.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
v2's EmulatorJS player reached into the frozen v1 tree for
installIOSFullscreenShim. The v1 implementation hides app chrome via
Vuetify selectors (.v-app-bar, .v-bottom-navigation, .v-navigation-drawer),
which match nothing in v2: that UI uses no Vuetify, and the player already
unmounts AppNav/BottomNav through useStageActive. The nav-hiding half was
silently inert on iOS in v2.
Fork the shim to src/v2/utils/playerFullscreen.ts with the nav handling
dropped and the hardcoded black swapped for --r-color-canvas-bg, per the
v2 zero-hex-literal policy. The v1 export is marked @deprecated rather
than changed, as the v2 constitution prescribes for coexistence forks.
Adds the test coverage the shim never had.
Also removes src/utils/indexdb-monitor.ts, which has had no importer in
either UI.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019Uo885XxwhN8wfC4oCtR48
Trigger names are schema-wide, so the fixed probe name could name an
operator's own trigger, and DROP TRIGGER IF EXISTS would really remove it.
A fresh uuid per call makes the statement a guaranteed no-op, so the only
error it can raise is the refusal it is looking for.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The magic-byte test moves behind `_is_png`, so the two places that need it (the
broker body, where the answer decides whether the embedded frame is tried, and
the filesystem sink) read as one rule instead of two. Narrowing the extract
catch back to the failures a savestate archive can raise keeps a programming
error loud rather than logging it as a missing thumbnail.
The frame fetch gets its own 10s deadline: it runs while the claim is still
held and the player waits on the exit screen, and a thumbnail does not need the
archive-transfer budget.
From the pr-ready simplify pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The broker's screenshot now shadows the frame PCSX2 embeds in its own state,
so a 200 that is not a PNG has to read as no frame rather than as an unusable
one, or the state lands with no thumbnail at all. Extraction moves onto a
thread alongside the fetch it falls back from, since the body it inflates runs
to hundreds of megabytes.
From the pr-ready code-review pass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The component resolves the icon, text and tooltip that Home used to build
at the call site, and the facet branch had no test of its own:
SimilarGamesGrid, its other caller, has no test file.
Also inlines the single-use seed icon and trims three comments to the
repo's limits.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
Capping the caption at `--r-card-art-w` read the global 158px, but
GameCard sets that token on itself, so the mobile override to 130px never
reached the sibling caption: a long one widened the wrapper past the
cover and threw the centring off. Pinning it the way GameCard pins its
own label tracks whatever width the card resolves to, size variants
included, and keeps the caption out of the row's scroll track.
Also strengthens the Home caption test, which passed on the key alone and
so missed a dropped interpolation value.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
`reasonLabel` suffixed the starting year with a hard-coded "s", so every
locale rendered "1990s" - Japanese included, where it reads 1990年代.
Decades join the other translated facets, which collapses the function to
a single branch now that the phrasing carries its own value.
The Czech and Polish forms are the ones worth a native-speaker look.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
Icon, text and tooltip were each deciding separately whether the feed
knew the seed game, so the same condition was tested four times over. A
single computed returns the whole caption or nothing, which also drops
the icon's v-if: every branch now has one.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
Satisfies vue/attributes-order, which wants GLOBAL attributes ahead of
UNIQUE ones. The ordering predates this branch, but trunk's pull-request
mode compares against the upstream baseline by position, so shifting the
block up six lines resurfaced it as a new issue and failed trunk_check.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
The caption under a recommended game card was left-aligned while the card
title above it was centred. Centre the caption instead of left-aligning
the title, so the change stays inside the recommendation feed rather than
shifting every GameCard in the gallery, the similar-games grids and the
match-ROM picker.
Two things stood in the way of centring:
- "Because you played X" never fit the cover width, so it filled the
caption and could not centre. It now captions the seed game on its own,
with a play icon, the way every facet reason is captioned; the full
sentence moves to the title tooltip, so no locale keys change.
- The ellipsis sat on the flex container, where it does nothing: an
anonymous text run has no box to truncate, so an over-long caption was
cut mid-word. It now lives on a real child span.
Also nudge the reason icon onto the caption's optical centre. MDI glyphs
centre on the em box, leaving them ~2px low against the text's cap height.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01427KQPf6WHJQ8feMKYp24Z
The live ticker rescheduled itself through requestAnimationFrame with no
stop condition, so the loop kept running after the story unmounted. Once
the suite tore the environment down, a pending callback fired against a
gone requestAnimationFrame and failed the run with an unhandled
ReferenceError, even with every test passing.
Drive it from an interval started on mount and cleared on unmount, the
way the RProgressCircular and RImg animated stories already do.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The member picker reused patcher.select-file, so a ROM with several base
files rendered two dropdowns both labelled "Select file". Add
patcher.select-archive-member across all 18 locales and use it.
Treat an empty archive_member_name form field as "not specified" rather
than as a member name that matches nothing.
Fold getZipMembers into the archiveMembers computed and watch that, so
the selection also resets when the member list itself changes.
Add PatcherTab coverage for sending the selected member, typed against
RomArchiveMember so the fixture cannot drift from the schema.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A module-level exception tuple freezes zipfile.BadZipFile, but seven test
modules reload the zipfile module, which rebinds the class. After any of
them runs, a corrupt archive escaped the handler and surfaced as a raw
BadZipFile instead of a 400. Look the class up at raise time instead.
NotImplementedError goes with it, being a RuntimeError subclass.
Declare each rebuilt entry's final size instead of passing force_zip64,
so zipfile marks an entry ZIP64 only when it needs to; a patched ROM
handed to a basic unzip implementation was otherwise rejected even though
the unpatched archive loaded fine.
Drop the extracted and patched intermediates once they are consumed,
rather than holding three full-size copies for the life of the download.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The workflow triggers on `pull_request: types: [labeled]`, so adding any
label starts a run. `prepare`, `build` and `merge` are each gated on the
`build-preview` label and are skipped without it, but `report` was gated
only on the event type, so it ran and read `needs.merge.result` of
`skipped` as a failure. Every PR that received any other label got a
false "Preview build failed" sticky comment.
Claude-Session: https://claude.ai/code/session_01YBBbdsDv9BiYJnKwcCGE6A
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>