The IGDB provider link built a text-search URL from the numeric ID,
which returns no results. Point it at the canonical /games/<slug> page
when the slug is present, falling back to the ID search otherwise. The
URL builder now receives the DetailedRom so it can reach fields beyond
the provider ID.
Generated-By: PostHog Code
Task-Id: 6843b623-ed80-454f-8373-8192f3c629b4
Reduced-motion drops the 28px backdrop blur, which exposed two rough
edges the blur had been hiding:
- The fallback backdrop art (auth_background.svg) is authored to be seen
only through the blur; unblurred it shows a hard seam ("weird bar") and
a bright diagonal wedge. Drop the whole fixed art + overlay stack in
this mode and let the solid page background show through — cheaper on
weak GPUs and no seam.
- The top nav bar's only surface is a backdrop-filter glass. Against the
now-solid background that reads as murky, and the blur is expensive on
weak GPUs. Swap it for a flat opaque surface so the fixed bar stays a
clean solid strip as content scrolls under it.
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
Two hooks modelled overlapping concerns and useReducedEffects imported
useReducedMotion for its default, coupling them. Collapse to a single
useReducedMotion that owns the whole "reduce motion / effects" axis:
enabled = override ?? OS prefers-reduced-motion (+ toggle())
It drives the one r-v2-reduced-motion root class (background blur, cover
blur-up, the global animation/transition neutralize) and the JS motion
gates (cover CD-spin, view-transition morphs, RExpandTransition, RBox3D).
One hook, one Settings toggle, one source of truth.
- Delete useReducedEffects; move its override tests onto useReducedMotion.
- Rename the class r-v2-reduced-effects -> r-v2-reduced-motion and the
localStorage key to settings.v2.reducedMotion.
- Rename the i18n keys reduced-effects(-desc) -> reduced-motion(-desc)
across all locales; title is now "Reduced motion" (the description
already covered both blur and animation).
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
Four files hand-rolled their own window.matchMedia("(prefers-reduced-
motion: reduce)") check (useCoverAnimation, useViewTransition,
RExpandTransition, RBox3D) and useReducedEffects held a fifth via
useMediaQuery. Consolidate into one useReducedMotion composable, a
module-level singleton returning a reactive Ref<boolean> (same pattern as
useBreakpoint; wraps what vueuse's usePreferredReducedMotion exposes but
as the plain boolean every call site wants).
Side benefit: the two composable call sites that read the old function
inside a computed are now reactive, so cover motion and the 3D-box idle
drift stop/resume live when the OS setting changes, no remount. It stays
generic (no store/service/domain), so the two primitives may use it
within the tier boundary.
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
The guard was both unreachable and unsafe. For platforms.id to exist on
a rerun, the first attempt must have already run the atomic ADD COLUMN
id ... PRIMARY KEY, which means it passed the unguarded
drop_constraint("fk_platform_roms") at the top of upgrade(). That FK
drop has no IF EXISTS, so any rerun fails there before reaching the
guard. And if it were reachable, the preceding primary-key drop would
leave id unkeyed once the ADD COLUMN was skipped.
Keep the genuinely correct fixes (0084, 0033); leave 0014 as-is.
Generated-By: PostHog Code
Task-Id: 87d70ab6-f915-48c0-afa7-55064c97d1a5
reduced-effects only dropped blur, leaving every animation running. The
OS prefers-reduced-motion query is honored per-component, but a CSS class
can't trigger those media blocks and the toggle must work even when the
OS setting is off, so a user enabling low-power mode on a TV box kept the
CRT flicker, disc spins, skeleton shimmer, spinners and scan pulses that
tax a weak GPU.
Make reduced-effects a superset of reduced motion:
- global.css neutralizes animation/transition under html.r-v2-reduced-effects
(near-zero durations so transitionend/animationend still fire; !important
overrides inline JS-set transitions such as RExpandTransition).
- Wire the JS-driven motion gates that CSS can't reach to the mode:
useCoverAnimation (the per-card CD-spin rAF loop) and useViewTransition
(shared-element morphs). Both keep the independent OS prefers-reduced-
motion check so an explicit "off" never re-enables motion for a user
whose system asks to reduce it.
Lib primitives (RExpandTransition, RBox3D) are covered by the global CSS
rule rather than importing app state, per the primitive tier boundary;
RBox3D's JS auto-spin stays OS-gated. Description updated across locales.
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
Migration 0084 could fail on startup with "Duplicate key name
'idx_roms_name_fs_name_fulltext'" when a prior run created the FULLTEXT
index but failed at a later step before Alembic recorded the revision.
On rerun, CREATE FULLTEXT INDEX (which has no portable IF NOT EXISTS on
MySQL/MariaDB) crashed re-creating the existing index.
Guard the raw DDL so re-running a partially-applied migration is safe:
- 0084: check existing indexes before creating/dropping the FULLTEXT index
- 0014: check existing columns before the raw ALTER TABLE ADD COLUMN id
- 0033: use checkfirst=True on the Postgres enum create/drop
Generated-By: PostHog Code
Task-Id: 87d70ab6-f915-48c0-afa7-55064c97d1a5
Reduced-effects mode now defaults to the OS `prefers-reduced-motion`
setting instead of always starting off: someone who asks their system to
reduce motion generally wants fewer heavy effects too, so the mode turns
on for them with no per-app opt-in. The Settings toggle still records an
explicit choice that overrides the system default from then on.
The stored value becomes tri-state: null (no explicit choice, follow the
system) or true/false (user override), with an explicit serializer since
vueuse's null-default path would otherwise read booleans back as strings.
Add unit tests covering the system default, override precedence, and
persistence.
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
The v2 UI leans on two GPU-heavy decorative effects that are cheap on a
desktop GPU but punishing on weak hardware (TV boxes, older phones):
- a full-viewport filter: blur(28px) background-art layer (always on),
which the code's own Firefox note already flags as pegging weak
rendering backends; and
- a per-cover filter: blur(16px) blur-up reveal, run on ~100 covers at
once when a full grid paints.
Add a per-device "Reduced effects" toggle (Settings > User interface,
under Theme) backed by a localStorage flag, mirroring useCrtMode. When
on, AppLayout sets `r-v2-reduced-effects` on <html> and the global /
GameCover CSS drops the blur filters (keeping tone and the opacity
fade), so low-power devices composite sharp, unblurred visuals.
Per-device rather than backend-synced on purpose: whether effects are
too heavy depends on the machine RomM is viewed on, not the account.
Generated-By: PostHog Code
Task-Id: 6690877a-9c32-4c91-a78b-3d6fd3851fb7
The manual "Match ROM" dialog wrapped each GameCard in a block-level
cell, so the card's aspect-ratio-derived width resolved against a
shrink-to-fit containing block. WebKit collapses that circular case to a
near-zero width, rendering covers as thin slivers (Chromium is fine).
Lay the cell out as a flex container so the card sizes via flex intrinsic
sizing, the same path the gallery row already uses.
Fixes#3761
Generated-By: PostHog Code
Task-Id: 85199a96-11de-4403-a30e-e533cf9a8e48
On MariaDB 11.6+ the default character_set_collations maps utf8mb4
expressions to uca1400_ai_ci, which clashes with the view's general_ci
string literals and JSON_TABLE columns: every /api/collections/virtual
request fails with 'Illegal mix of collations ... for operation ='.
Recreate the view (new migration, 0095 pattern) with an explicit
COLLATE utf8mb4_general_ci on each string output column so comparisons
resolve deterministically regardless of server collation defaults.
PostgreSQL is unaffected (no-op).
Fixes#3758
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Add check_i18n_sorted.py, which fails when any locale JSON file's keys
are not sorted alphabetically (recursively, so nested objects are
covered). Supports --fix to sort in place. Wire it into the i18n CI
workflow alongside the existing parity check, and sort all existing
locale files.
Generated-By: PostHog Code
Task-Id: 7cbf74de-6bf1-45c0-9c8e-c45f94119edc
The registry-cleanup log noise is already suppressed by the RomMWorker log
filter, so the hourly maintenance interval was unnecessary and delayed pruning
of orphaned STARTED jobs and stale workers. The watcher's Worker.all() scan
dedupe relies on that pruning, so restore the default (~10 min) cadence.
Generated-By: PostHog Code
Task-Id: 78c8b2f8-2b03-443f-aa4c-8867c1259f2a
PR #3035 made region/language shortcode lookups case-sensitive by keying
REGIONS_BY_SHORTCODE on the uppercase codes, and updated the plain tag
lookups to match against the raw (unlowered) tag. The "Reg-" prefix branch
was missed: it still lowercased the captured shortcode before looking it up,
so it could never hit the now-uppercase-keyed dict. As a result a tag like
"[Reg-J]" was stored as the raw "J" instead of resolving to "Japan".
Match the shortcode with its original case, like the other lookups, so
"[Reg-J]" resolves to "Japan" and "[Reg-U]" to "USA". Non-shortcode values
(e.g. "[Reg-PAL]") are still kept verbatim via the fallback.
Co-Authored-By: Claude <noreply@anthropic.com>
- Add DELETE /roms/{rom_id}/files/{file_id} endpoint to files.py
- Add deleteRomFile API function to frontend ROM service
- Add delete button (guarded by rom.delete permission) to FilesTab selection toolbar
- Show confirmation dialog before deleting; redirect to gallery when all files are removed
- Add i18n keys for delete confirmation and feedback to all 18 locale files
- Add backend tests for the new delete endpoint (success, wrong-rom 404, unknown-file 404, missing-disk-file tolerance, viewer 403)
Closes#3752
Co-authored-by: zurdi15 <34356590+zurdi15@users.noreply.github.com>
VERSION_TAG_REGEX only treated whitespace, underscore, and hyphen as
separators after the version prefix, so a dot-separated tag like
"(v.1.0)" or "(Ver. 1.00)" fell through to the no-separator branch and
captured the dot into the version (".1.0", ". 1.00"). This wrong value
was then persisted to Rom.version on scan and on rename.
Add "." to the separator character class so the dot is consumed like the
other separators. Digit-prefixed tags such as "(v1.0)" are unaffected
(they still match the no-separator branch), and non-version "v*" tags are
still ignored.
Co-Authored-By: Claude <noreply@anthropic.com>