The decoded-group cache is now capped by a byte budget instead of an
entry count, so a crafted chunk_size can't pin gigabytes of decoded
groups in memory. The budget still fits the chunks covering one Wii
hash group, keeping the data and exception passes cached.
Also use the existing _MAX_EXCEPTIONS_PER_LIST and
_WII_SECTORS_PER_HASH_GROUP constants in the exception-list parser and
drop a redundant slice in the bad-magic error message.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The review suggestion collapsing the dispatch into a conditional
expression landed with a mis-indented line, which broke module parsing.
Keep the conditional-expression form, formatted.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The list columns are far wider than a phone, so they were clipped with no
way to reach them. Make the list scroll sideways when it's wider than the
viewport:
- RVirtualScroller: add `minContentWidth` — sets the inner's `min-width`
and switches the container to `overflow-x: auto`.
- listColumns: give the title a `minmax(200px, 1.6fr)` floor and derive the
row's natural width (tracks + gaps + padding) via `getListMinWidth`, fed
to the scroller as `minContentWidth` in list mode.
- GalleryShell: only the table scrolls sideways — the view header, divider
and toolbar are pinned (`position: sticky; left: 0`) so they stay in
place; the in-flow sticky column header keeps its width and tracks the
horizontal scroll in step with the rows.
Note: the list column header now shows the rows through it when stuck (the
old section-level overlay twin can't track horizontal scroll, so it was
dropped). Frosting it cleanly is a known follow-up — cover thumbnails ride
their own GPU layer, so `backdrop-filter` can't blur them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Revert the previous RMenu approach: the info affordance stays a tooltip,
but RTooltip gains an opt-in `openOnTap` so it reveals on hover (mouse)
AND on tap (touch). A finger tap toggles it; a mouse click OPENS it (so
clicking a pill you're hovering doesn't close it and strand you unable to
re-reveal it); an outside tap / pointer-leave / blur closes it. Default
behaviour is unchanged (regular tooltips still never appear on touch).
Covered by a new `open-on-tap` play() story.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- The "supported formats" affordance was a hover tooltip, so it never
opened on touch. Swap it for a click/tap popover (RMenu, sheet on
mobile) that works with mouse, keyboard and touch alike.
- Wrap the ROM + patch panels in a muted, translucent frame so they
read as one combined operation, and reduce the "+" connector to a
plain muted glyph (no surface/border) so it no longer looks like an
action button between them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The mobile-only sort / layout / filter menu opened as a floating dropdown
while every other mobile menu is a bottom sheet. Add `sheet-on-mobile`.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Logs: wrap the overflowing control row into two on phones (level +
module selectors on one row; search + action buttons on the next).
- SettingsLayout `fill`: the base `min-height: calc(100vh - nav)` was
inflating the section past the viewport (forcing a document scroll);
pin it to `min-height: 0` + a `dvh` height that reserves the bottom
tab bar, and trim the fill content's bottom gutter so the panel stops
just above the bar (no double scroll, no content behind the bar).
- Platform/Collection settings tabs: same `dvh` + negative-margin +
bottom spacer pattern so the danger zone clears the bottom nav.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- RTabNav: the horizontal tab strip no longer swallows vertical swipes
(`overflow-y: hidden` so it's not a vertical scroll container; drop
`touch-action: pan-x`, which froze the page) — the view scrolls even
when the swipe starts on the tabs.
- AppNav: remove the "back to v1" escape-hatch button (and its now-dead
code / imports / styles); the v1 UI keeps its own switch.
- GalleryShell/AlphaStrip: the stuck toolbar overlay now insets by the
strip's real footprint via shared tokens, so it lines up exactly with
the in-flow toolbar; wider, more tappable strip on phones, raised to
centre in the visible band (above the bottom bar).
- CollectionHead / PlatformHead: bigger collection cover on phones
(matches the index); the platform icon is a per-breakpoint square in a
box that grows to it, so it reflows instead of overflowing/clipping.
- Add `--r-coll-cover-*` and `--r-alpha-strip-w*` dimension tokens.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- RDialog: add `fullHeightOnMobile` so a tall sheet fills below the top
navbar and scrolls internally; use it for Match/Edit ROM.
- Match ROM: put the search field (2/3) and name/id selector (1/3) on
one row on phones; move the results count to the footer so the
toolbar no longer reflows on search; pin the selector width
(min-width:0 on the grid children); let the list-mode artwork panel
flow with the dialog scroll instead of a tiny fixed window; cap wide
covers in grid mode so they don't overflow.
- Create API token: add `scroll-content` (body scrolled, no footer
overlap) and stack the scope grid into one column on xs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Setup: restore an inline error state (with retry) when the library
probe fails, instead of silently showing an empty platform step.
- Remove the unused `.r-v2-two-pane` utility (never adopted by a view).
- useBreakpoint / useInputModality: own the singleton scope/listeners
and drop them on HMR (import.meta.hot.dispose) instead of leaking.
- RSelect: extract the search-autofocus decision to a pure helper and
cover it with a Vitest spec (the Android-keyboard-skip logic).
- RTooltip: add a play() story exercising the touch-gating (touch =
no reveal, mouse = reveal, click = dismiss).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- GameDetails: on mobile the whole view scrolls as one document instead
of the desktop "fixed cover + inner panel scroll" (Files tab now
scrolls too). Title/meta centred, cover a touch larger.
- Action ribbon: shrink to the default (40px) size on phones and split
the completion/rating/difficulty metrics onto their own row with a
hairline; the metric pills match the button height.
- More & Status pickers dock as mobile bottom sheets.
- AppNav: pin the logo link to its content (`justify-self: start`) so
the empty bar space next to it stops acting as a hidden "go home"
target.
- ScanningIndicator: swap the "Scanning" label for the radar glyph on xs.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Sections use `dvh` and, on sm-and-down, cancel the layout's bottom-nav
padding with a matching negative margin so content scrolls behind the
tab bar with one scroll (no document-level scroll on top of it), and
the last row clears the bar.
- Fix the sticky gallery toolbar flip-flopping while scrolling: the
stuck threshold read a `position: sticky` element's `offsetTop`, which
reports the stuck position once pinned. Measure a non-sticky sentinel
instead, and bind the toolbar ref with a stable function (not an inline
arrow that Vue re-invokes every render).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- RSelect: cap the dropdown panel at the viewport (no horizontal
overflow on phones); autofocus the search only on precise-pointer
devices so a tap doesn't pop the Android keyboard.
- RTooltip: reveal on mouse/pen hover and keyboard focus only (skip
touch), and dismiss on click — so tapping a button that opens a
menu/dialog doesn't leave the tooltip stuck open.
- RCarousel: constrain the fullscreen grid column so the image,
thumbnails and counter clamp to the viewport; the thumb strip scrolls
sideways when it overflows.
- RDialog: cap the mobile bottom-sheet below the top navbar so a tall
sheet (Match / Edit ROM) never rides up over it.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- RTable: a fixed `rowHeight` no longer crushes the xs card-stack.
- Users / Permission Groups: card-stack Name caption aligns with the
other rows; group description wraps multi-line at a smaller size.
- Folder Mappings: card-stack alignment + selectors group with their
chevron and truncate long platform names instead of overflowing.
- Excluded: the Add dialog scrolls (footer no longer overlaps the cards).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- router: a `?tab=` change (same path) no longer runs a view transition,
which was snapshotting the GameDetails cover's `view-transition-name`
into the top layer over the fixed navbar.
- useServerConnection: raise the online `/heartbeat` poll from 10s to
5min so a network blip stops aggressively flagging the backend offline;
passive interceptor events still flip offline instantly, and the offline
poll stays fast for quick recovery.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The `with_details` loader fetched sibling roms with a `load_only` that
omitted `platform_id`, so `_visible_siblings`' per-sibling visibility
check read a deferred attribute on a session-detached instance and 500'd
on `/roms/{id}/simple` (intermittently, per identity-map state). Add
`platform_id` to the sibling `load_only` so it's present when the schema
serializes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Extend GET /api/roms/download to accept collection_id,
virtual_collection_id or smart_collection_id as an alternative to
rom_ids, with owner/public access checks and the zip named after
the collection
- v2 SelectionBar: bundle multi-selections into a single server-side
zip instead of one anchor download per ROM (#3641)
- v2 collection head: add a download-collection action that downloads
by collection id, independent of gallery pagination (#3659)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Condense the rvz_hasher module docstring and hardening comments, and
drop three tests whose coverage was already provided elsewhere (the
container-compression transitivity check and the Wii duplicates of the
container-level magic/missing-file failure tests).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The EJS core mapping in frontend/src/utils/index.ts keyed the ZX
Spectrum entry as zsx instead of the canonical platform slug zxs (as defined by UniversalPlatformSlug.ZXS in backend/handler/metadata/base_handler.py).
Renaming the key to zxs restores in-browser play for ZX Spectrum.
- Catch zstandard.ZstdError so a corrupt zstd group returns no hash and
falls back to RAHasher instead of aborting the scan.
- Cap chunk_size at 64 MiB and tighten the group-count bound so crafted
headers can't force multi-GB allocations.
- Bound decompression output per group (bz2/lzma max_length, chunked
zstd stream reads) to defuse decompression bombs.
- Reject main.dol segments extending past the disc end; a corrupt size
field would otherwise stall the scan hashing zero-fill.
- Key the group cache on all decode parameters and size it to keep one
Wii hash group's chunks cached across the data and exception passes
(avoids double decompression with sub-128 KiB chunks).
Real-ROM hashes are unchanged (both still match RA's database).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Cast year to text in the /api/music years facet search so Postgres does
not error on lower(integer) (MariaDB/SQLite auto-cast, hiding it in CI)
- Escape LIKE wildcards in music search via new utils.database.escape_like
- Drop lazy="selectin" on RomFile.track_meta; eager-load only where the
metadata is serialized (get_rom already did; add the three soundtrack reads)
- Migration backfill uses a single query + fetchmany (repo idiom, see 0084)
instead of manual keyset paging, in both directions
- Guard the extensionless folder-conversion collision (stale row over a
directory the user already created on disk)
- Renumber migration 0093 -> 0094 after 0093_states_rom_user_index landed
- Wrap the filesystem moves (not just the DB write) in the conversion's
rollback so any failure restores the original layout instead of stranding
the file under .romm_tmp_; covered by a new test.
- Use "ROM" rather than "rom" in the convert-to-folder confirm copy.
RomM stores soundtracks but exposes no way to consume them as a music library: a
client has to enumerate ROMs and pull each one's tracks individually, and the
per-track metadata lives in the `rom_files.audio_meta` JSON blob, which is
unindexable on MariaDB, so any library-wide filter or sort degrades to a full
scan.
This adds a queryable, music-first API for soundtracks, backed by a typed and
indexed `track_meta` table migrated from that JSON.
It also lets users upload soundtracks, manuals, and screenshots to any ROM, not
only folder-based ones. When the target is a single-file ROM, the client warns
that the upload will migrate it to a multi-file (folder) structure, then performs
that migration in place automatically.