Resolve 7 of the 8 ratcheted `todo` stories with real fixes and flip them
back to the `error` gate:
- RProgressCircular: add optional `label`; render aria-hidden when the ring
is decorative (indeterminate + no label/slot), else name it via label or
slot content. Cascades to RSpinner, RSelect (Loading), RTextField (Loading).
- RTextField: label the interactive prepend/append-inner adornment button
from a new `*InnerLabel` prop (falls back to the tooltip).
- RDateField: move role="combobox" off the RTextField `<label>` wrapper onto
the field container, restoring the input's label and using an allowed role.
- RTable: mark the layout-only scroll/body containers presentational so
rows/cells resolve their required table parent in all states.
- RMenuItem, RDropzone, RSlider: supply the menu parent / input label /
slider aria-label the components already support.
RSelect (Clearable) stays `todo`: the clear button is nested inside the
activator button and the correct fix is a visual-layout refactor that needs
in-browser verification.
Refs #1848
Generated-By: PostHog Code
Task-Id: b44aba2c-90c9-407d-8c80-5bbe77ecd6c1
Wire axe-core into the vitest Storybook runner so every v2 lib story is
scanned for accessibility violations, gated per story by the
@storybook/addon-a11y `a11y.test` parameter (error / todo / off) with a
global default of "error".
Fix the unlabeled-control violations this surfaces (icon-only buttons,
decorative images) and mark the remaining component-level gaps as `todo`
so CI stays green while the backlog stays visible. Add keyboard-operability
play() tests to RSwitch, RTabNav, and RRating.
Refs #1848
Generated-By: PostHog Code
Task-Id: b44aba2c-90c9-407d-8c80-5bbe77ecd6c1
The tooltip counted only sibling_roms (other versions), producing
"1 version(s)" for a group that actually holds 2. Use the localized
rom.versions-count key with sibling_roms.length + 1, matching the v2
SiblingBadge, so it reads the true total with no "(s)" suffix.
Generated-By: PostHog Code
Task-Id: e4d9f2f2-2a59-42fa-ad8b-0cbb4235b6a6
Replace the hard-coded "Versions" token in the smart-collection filter
summary with the localized platform.show-duplicates key so non-English
locales don't show an English-only label.
Generated-By: PostHog Code
Task-Id: e4d9f2f2-2a59-42fa-ad8b-0cbb4235b6a6
Update the "duplicates"/"siblings" filter and settings strings in the
remaining 16 locales to use each language's existing term for ROM
versions, matching the en_US/en_GB relabel.
Generated-By: PostHog Code
Task-Id: e4d9f2f2-2a59-42fa-ad8b-0cbb4235b6a6
The "Show duplicates" filter and related sibling-ROM labels were
confusing (see issue). Rename the user-visible text to "versions",
matching the term already used for sibling ROMs elsewhere in the UI
(switch version, "{n} versions", "Group versions of the same ROM").
The API contract and internal identifiers are left untouched.
Generated-By: PostHog Code
Task-Id: e4d9f2f2-2a59-42fa-ad8b-0cbb4235b6a6
Manually (re)matching a LaunchBox ID through the ROM edit dialog never
imported any LaunchBox media. The update_rom endpoint fetched metadata
without fs_name/platform_slug (so local media never resolved), never
generated media paths, and had no store loop, unlike the ScreenScraper
block in the same handler.
Pass fs_name/platform_slug to get_rom_by_id, call
populate_rom_specific_paths on the fetched metadata, and add a
store_media_file loop that also clears stale media when the ID changes.
Fixes#3521
Generated-By: PostHog Code
Task-Id: 45791732-58e8-41c9-b616-4a91018e388d
Move the quota-skip decision out of scan_handler and into the SS handler:
lookup_rom, get_rom, and get_rom_by_id now catch the daily-quota 429 and
return an empty SSRom, so the scan degrades to the other providers with no
quota-specific code at the call site. Non-429 errors still propagate.
scan_handler keeps only the fault-tolerant provider gather. The service
breaker still short-circuits repeat calls and manual search still surfaces
the 429 (it does not go through these swallow paths for name search).
Generated-By: PostHog Code
Task-Id: 77dff3d9-6120-4156-bb25-1556a50a75e4
Track the ScreenScraper daily quota where the knowledge lives: a breaker
in the service, tripped on the first HTTP 430/431 and reset at the start
of each scan. When tripped, _request() short-circuits the API call but
still raises the 429, so manual search keeps its clear "quota exhausted"
message while the scan catches it and falls back to the other providers.
Replaces the handler-level skip flag with this service-scoped breaker.
Generated-By: PostHog Code
Task-Id: 77dff3d9-6120-4156-bb25-1556a50a75e4
Move the "skip this provider for the rest of the scan" state off a set
threaded through scan_rom and onto the MetadataHandler base class, so each
provider tracks it internally. The state is cleared for every provider at
the start of each scan via reset_metadata_handlers_scan_state().
Generated-By: PostHog Code
Task-Id: 77dff3d9-6120-4156-bb25-1556a50a75e4
Background scans usually run with RomM closed, so the scan:warning toast
would rarely be seen. Keep the backend skip/fallback behavior and the log
line, and remove the socket event, its frontend handler, and the i18n key.
Generated-By: PostHog Code
Task-Id: 77dff3d9-6120-4156-bb25-1556a50a75e4
RBox3D previously mapped the "BOX (2D, SIDE)" scan only onto the two
edge faces matching its orientation, leaving the other pair as blank
cardboard. Landscape scans (N64) also inflated the box depth because it
derived from the raw spine w/h.
Now the side scan wraps all four edges: it reads the right way on the
pair matching its orientation and is spun 90 degrees in-plane (with a
width/height swap) so object-fit crops it identically on the
perpendicular pair. Box depth now derives from the scan's short/long
ratio against whichever box dimension its long edge maps to, so a
landscape N64 strip yields a correctly thin depth without leaning on the
clamp.
Generated-By: PostHog Code
Task-Id: b3a8fc9d-e320-4c37-ac6d-3e9e95e0b48a
When a user hit ScreenScraper's daily API quota mid-scan, the whole scan
stopped matching ROMs against every provider instead of just skipping SS.
The 429 raised for SS quota (HTTP 430/431) propagated out of the per-ROM
provider gather (which lacked return_exceptions), discarding the other
providers' results, and every subsequent ROM re-hit the exhausted API.
- Skip ScreenScraper for the rest of the scan on the first quota hit,
tracked in a shared per-scan set, so remaining ROMs stop hammering it.
- Keep the current ROM's other-provider data when SS quota is hit.
- Make the provider gather fault-tolerant (return_exceptions) so one
provider raising never discards the others' results.
- Notify the user once via a non-fatal scan:warning socket toast.
The manual-search path still surfaces the 429 quota message unchanged.
Fixes#3620
Generated-By: PostHog Code
Task-Id: 77dff3d9-6120-4156-bb25-1556a50a75e4
Check `typeof window !== "undefined"` before reading window.isSecureContext
so the support check evaluates to false instead of throwing in non-DOM
environments where navigator exists but window does not.
Generated-By: PostHog Code
Task-Id: 8b05c0fe-95b7-46bd-9ecb-7b17afe7569b
Split the native Web Share attempt from the clipboard fallback so a
cancelled share sheet stays silent while a failed clipboard write (e.g.
over HTTP) now shows an error toast via useClipboard, matching the rest
of this change.
Generated-By: PostHog Code
Task-Id: 8b05c0fe-95b7-46bd-9ecb-7b17afe7569b
Replace the English placeholders for common.clipboard-copied and
common.clipboard-copy-failed with proper translations in every non-English
locale, matching each locale's existing clipboard terminology.
Generated-By: PostHog Code
Task-Id: 8b05c0fe-95b7-46bd-9ecb-7b17afe7569b
The browser Clipboard API only exists in a secure context, so over plain
HTTP navigator.clipboard is undefined and copy buttons failed silently.
Several v2 copy handlers swallowed the throw, so users saw no feedback and
believed the copy succeeded (e.g. the client API token dialog in #3614).
Add a shared useClipboard composable that guards on isSecureContext and
shows an error toast when a copy cannot happen, then route the silent-catch
call sites (token dialog, invite link, hash chip, pairing code) through it.
Fixes#3614
Generated-By: PostHog Code
Task-Id: 8b05c0fe-95b7-46bd-9ecb-7b17afe7569b
macOS shows the raw "text/markdown" MIME in the file picker because it has
no registered display name for it. The .md extension resolves to the system
Markdown type, so the picker shows a friendly "Markdown" label.
Generated-By: PostHog Code
Task-Id: 1d785bcc-ea5c-4b99-b619-73625a9e218c
Discover manuals only for the allowed extensions (.pdf, .md) instead of
globbing {rom.id}.*, so stray files (e.g. {rom.id}.part) are never treated
as a manual. Select deterministically by newest mtime when multiple allowed
manuals coexist. Drop the redundant .md token from the frontend accept lists.
Generated-By: PostHog Code
Task-Id: 1d785bcc-ea5c-4b99-b619-73625a9e218c
name is NotRequired[str] on HasheousRom, so passing name=None fails mypy's
typeddict-item check. Omit it to represent a no-match result.
Generated-By: PostHog Code
Task-Id: 987bb9c1-1bfb-43f2-adc7-c26e69f06a39
rom_attrs["name"] is seeded from rom.name earlier, so on the no-provider-match
path it still holds the raw filename placeholder. That made the
`or rom_attrs.get("name")` branch win over the fs_name_no_tags fallback,
retaining the raw filename as the title. Treat the seeded name as a placeholder
too, so the parsed filename fallback applies when no provider matched.
Generated-By: PostHog Code
Task-Id: 987bb9c1-1bfb-43f2-adc7-c26e69f06a39
DNS64/NAT64 networks synthesize IPv6 answers that embed a public IPv4
in the RFC 6052 well-known prefix 64:ff9b::/96. The SSRF classifier
rejected these because the prefix is is_reserved, breaking all outbound
metadata and cover fetching on NAT64-only deployments.
is_forbidden_ip now unwraps a NAT64-wrapped address and evaluates the
embedded IPv4 instead, so a wrapped public IPv4 is allowed while a
wrapped private/internal IPv4 (e.g. 127.0.0.1, 10.0.0.1) stays blocked.
Fixes#3668
Generated-By: PostHog Code
Task-Id: 73b38615-966e-4955-9228-2cb6bbcda277