Commit Graph

12474 Commits

Author SHA1 Message Date
Sam Dornan
0f99484247 fix(v2): right-align the list-view quantity columns (#4603) 2026-09-17 17:41:17 -05:00
Sam Dornan
65363f6c0a fix(v2): drop the box behind platform icons in the list row (#4601)
* fix(v2): drop the box behind platform icons in the list row

The thumb carried `background: var(--r-color-surface)` and a
`--r-list-cover-w` sizing, left over from when the row copied the game
list's cover slot. Platform art is a transparent square logo, so the
surface painted a soft box behind every icon, most visible on the
platforms whose art does not reach the edges of its own viewBox.

The token is defined nowhere: `tokens/index.ts` retired the dedicated
list-cover token in favour of `cardArtWidthXs / HeightXs` feeding
`<GameCard size="xs" />`. Both declarations were therefore already
invalid at computed-value time, so the layout is unchanged and only the
background and radius go away.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Update frontend/src/v2/components/Platforms/PlatformListRow.vue

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* docs(v2): correct the platform row docstring's stale thumb description

It claimed the thumb was an RPlatformIcon at the 48px cover-slot scale. The
icon is 40px, and the cover-slot framing is what this branch removed, so the
parenthetical goes rather than restating the prop's value.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-09-17 14:58:09 -05:00
Sam Dornan
f8c194cbf8 fix(gallery): hold the list-view columns still while the rows load (#4598)
The list view sized its cover column from the widest cover ratio measured
so far, but ratios only arrive once the covers load, so the column started
at the 48px fallback and jumped mid-load, dragging the title column with
it. Size it from the row's art cap instead, which no cover can exceed.

The two placeholder rows also disagreed on the gap between the title bars
(4px vs 2px), so the bars moved the moment the bootstrap skeleton handed
over to the pending rows. Both now build that cell from one spec, and the
parity test compares the whole cell rather than the bar sizes alone.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 13:57:00 -05:00
Zurdi
7dc9037674 Merge pull request #4595 from rommapp/claude/knowledge-base-skill
docs(claude): add a knowledge-base skill for Greptile's repo docs
2026-09-17 20:44:10 +02:00
zurdi
1ea34405cd docs(claude): page the knowledge base listing until the repo shows up
Addresses Greptile: a full page of other knowledge bases is as
inconclusive as an empty one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 20:43:17 +02:00
Zurdi
f1a0539026 Merge pull request #4594 from rommapp/claude/v2-ui-ux-fixes
fix(v2): UI/UX polish: unified empty states, smoother loading, tab query cleanup
2026-09-17 20:36:57 +02:00
Sam Dornan
3a01f6d359 test(backend): stop the suite emitting warnings (#4597)
* test(backend): stop the suite emitting warnings

The backend suite reported 4838 warnings. Three sources, all now clear:

- 18 uses of the deprecated HTTP_422_UNPROCESSABLE_ENTITY, renamed to
  HTTP_422_UNPROCESSABLE_CONTENT.
- Unawaited coroutines in the streaming and scan tests. A bare MagicMock
  drops the coroutine handed to spawn_sync_task, and a bare AsyncMock's
  return_value is itself an AsyncMock, so the to_dict() call on it leaked
  out of the scan handler.
- About 4780 from sentry-sdk 2.32 and opentelemetry 1.36 calling
  asyncio.iscoroutinefunction, which Python 3.14 deprecates and 3.16
  removes. Bumping both in the lock clears them.

The remaining starlette warning wants httpx2 in place of the httpx 0.27 the
metadata providers pin, so it is filtered rather than fixed: a second HTTP
stack for the test client is a larger change than the warning justifies.

4815 passed, 2 skipped, 0 warnings.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test(backend): address review on the warning fixes

Greptile flagged the pytest.ini rationale as over the two-line comment limit,
and the new scan fake as untyped. Both fixed: the filter comment is one
non-obvious fact, and the fake now takes `scan_stats` as a typed keyword-only
parameter, which is a real contract rather than `**kwargs`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 13:33:48 -05:00
zurdi
518e6fc8bf refactor(v2): size and reveal by breakpoint, not by input type
Nothing changes size because the input is a touchscreen rather than a
mouse: the match rom provider chips size off the breakpoint, and so do
the screenshot actions and the soundtrack heart, which used to be
revealed by modality because touch has no hover.

Hover itself is no longer split between mouse and touch, and a row the
gamepad highlights now lights up the same way hover does. Modality still
gates focus rings and pad focus competing with a parked cursor.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 20:28:51 +02:00
zurdi
e95b27bf1c fix(v2): rework the match rom dialog header for phones
The layout switcher moves up to the header, the one row that doesn't
reflow as the filters or the search state change. The filter label is
gone and the provider chips are one scrolling row, smaller on phones so
all of them fit; the search button keeps its own full-width row.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:59:24 +02:00
zurdi
9bc1d58069 fix(v2): keep a tap from flipping the input modality back to mouse
A tap is followed by compatibility mouse events, so every touch flipped
the modality and resized touch-sized controls under the finger.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:59:20 +02:00
zurdi
c5900dcaa6 fix(v2): keep select menus from outgrowing their field over long descriptions
Option subtitles no longer size the menu: they take the width set by the
field and the titles and wrap, so the scan type menu in refresh metadata
matches its field on phones.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:29:51 +02:00
zurdi
e8581315ec fix(v2): drop the empty state from the manage collections dialog
The dialog already offers creating a new collection, so an empty list
needs no placeholder. Removes the now unused hint key from every locale.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:29:49 +02:00
zurdi
cfbecf41dd docs(claude): add a knowledge-base skill for Greptile's repo docs
Adds a skill for reading Greptile's synthesized knowledge base through its
MCP server (lookup flow, search and truncation limits, verifying claims
against the checkout, fallbacks when the tools are missing) and lists it
in CLAUDE.md.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:22:41 +02:00
zurdi
97db9c01a6 style(v2): review-polish attribute order in PlatformsIndex
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:21:21 +02:00
Sam Dornan
c2ee769df7 fix(roms): load the parent rom alongside a rom file so the schema validates (#4593)
`GET /api/roms/{id}/files` 500'd on its success path: `RomFileSchema` reads
`is_top_level`, which needs `file.rom`, and `get_rom_file_by_id` only loaded
`track_meta` and `doc_meta`. Validation happens after `begin_session` closes,
so the lazy load raised `DetachedInstanceError`. The parent rom now comes
along in the same load, narrowed to the columns `Rom.full_path` needs.

`last_modified` is nullable in the column but was required in the schema, so
a row added outside a scan validated to nothing. It is now nullable to match,
and the regenerated frontend type follows.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 12:20:16 -05:00
zurdi
76ddf4f699 refactor(v2): apply simplify findings
- Route tab and subtab writes through patchQuery.
- Keep the CRT/reduced-motion rule inside useCrtMode: reduced motion hides
  CRT without erasing the saved choice, and turning CRT on turns it off.
- Reuse the global asset fade on Home's empty library.
- useLoadingPhase: refAutoReset for the skeleton hold, drop the unused delay
  parameter.
- One computed per empty state in Streaming and platform stats; drop RTable's
  unused empty slot.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:19:24 +02:00
Sam Dornan
bba15f95f4 perf(backend): resolve roms without the related load in the file and props routes (#4590)
* perf(backend): resolve roms without the related load in the file and props routes

Eleven routes opened with `get_rom(id)` to reach two scalars: `id` for the
404 and `id` plus `platform_id` for `assert_rom_visible`. `get_rom` runs the
whole `with_details` eager load, so each request paid for the platform,
files, metadata, saves, states, screenshots, rom_users, siblings,
collections and notes of the rom. The bulk delete was worse: it ran inside a
per-id loop, so an N-id delete ran the graph N times.

Three narrow projections replace it, alongside the `get_rom_visibility` that
#4587 added for the rom-note routes:

  `get_rom_visibility`        id, platform_id
  `get_rom_visibility_label`  the above plus the name pair the file-delete
                              log lines print
  `get_rom_deletion_target`   the above plus fs_path and the joined platform
                              label the bulk delete logs when a rom's file is
                              already missing from disk

`assert_rom_visible` accepts either narrow row as well as a full `Rom`, so
the check itself is unchanged for every other caller.

Statement counts per request, captured with the `executed_statements`
fixture in `tests/endpoints/roms/test_visibility_loads.py`:

  PUT  /api/roms/{id}/props                       19 ->  9
  GET  /api/roms/{id}/soundtracks/metadata        15 ->  5
  GET  /api/roms/{rom_id}/files/{file_id}/progress 20 ->  8
  DELETE manuals / walkthroughs / screenshots /
         soundtracks files                         20 ->  8 each
  DELETE /api/roms/{rom_id}/files/{file_id}        20 ->  8
  GET  /api/roms/{id}/files (hidden 404)           25 -> 13
  GET  /api/roms/{id}/files/content/{name}         25 -> 13
  POST /api/roms/delete, 1 id                      16 ->  6
  POST /api/roms/delete, 5 ids                     64 -> 14

The marginal cost of each extra id in a bulk delete falls from 12 statements
to 2.

The upload handlers on the same routers are left alone: `receive_rom_file`
hands the rom to `prepare_upload_destination`, so they need the full entity.
`Rom.fs_resources_path` moves its format string into a module-level function
so `RomDeletionTarget` can compute the same value.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs(backend): trim the change rationale out of the new docstrings

Greptile flagged the module docstring in the new test file, `_rom_lookup` and
`RomDeletionTarget` for carrying the reasoning behind the change rather than
describing what the code does. The rationale lives in the commit message and
the PR body, so the docstrings keep only the one sentence a reader needs.

The `assert_rom_visible` docstring loses the paragraph added alongside the
widened type union, which restated what the signature already shows.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test(roms): share one rom factory in the visibility-load guard

Step 3 of the pr-ready gauntlet (simplify). The bulk-delete test built its
three roms from an inline `Rom(...)` literal; `test_random.py` already keeps a
module-local `_add_rom(platform, name)` for exactly this, so the guard grows
the same helper instead of a second copy of the field list.

`_flat` had one caller, so it folds into `_rom_lookup`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 12:18:22 -05:00
zurdi
b84daec449 fix(v2): hold the jukebox disc's angle when playback pauses
Pause the spin animation instead of removing it, like the now-playing pill,
so the disc no longer snaps back to its starting angle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:11:37 +02:00
zurdi
0b1e20504e fix(v2): apply code-review xhigh findings
- Drop ?note= along with ?subtab= on tab switch; remove NotesTab's dead watcher.
- Hold Home's empty library while a shared store fetch is still in flight.
- Start RTable's entrance timer once rows actually paint.
- Keep the Jukebox error title through a retry.
- Restore the streaming loading block's own styles.
- Trim new comments, stop test effect scopes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 19:06:44 +02:00
zurdi
c9b0007ff4 feat(v2): unify empty states and smooth loading transitions
- REmptyState replaces the duplicate shared EmptyState and the hand-rolled
  empty blocks; it gains a plain variant for framed surfaces (RTable).
- Missing games/firmware render it outside their list frame, matching
  Excluded, and pair a pill count with the round kebab.
- useLoadingPhase only paints a skeleton when a load outlasts 200ms, holds
  it for 300ms, and keeps the settled view through a quick refetch. Applied
  to RTable, the Missing sections, Home, the platform/collection indexes,
  Activity, the Jukebox sidebar and the soundtrack queue.
- RBtn's loading debounce moves to the shared useDelayedFlag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 18:50:44 +02:00
zurdi
a90f67bb45 fix(v2): keep CRT mode and reduced motion mutually exclusive
Reduced motion collapses every animation to one near-instant pass, which
breaks the CRT overlay. Turning either on now turns the other off, and a
device with both saved on keeps reduced motion.

Fixes #4562

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 18:50:43 +02:00
zurdi
5d58f9177c fix(v2): match the folder mappings help button to the Scan view
Use the same info button (no native tooltip) and center the note icon in
the mapping types dialog.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 18:50:41 +02:00
zurdi
e78b972aef fix(v2): stop the page scrollbar flickering on route changes
The route crossfade snapshot showed through the transparent scrollbar
track, blurred background art included, and swallowed the thumb. Give
the v2 page scrollbar an opaque track.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 18:50:40 +02:00
zurdi
29cad3359d fix(v2): drop the stale subtab when switching game details tabs
The per-tab cleanup watchers never fired: the tab unmounted before the
route replace landed. GameDetails now drops ?subtab= in the same replace
that switches tabs, and useSubtabQuery only reads a subtab that belongs
to its own tab.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XAReUPhZXnp7LyiP1W4GGQ
2026-09-17 18:50:26 +02:00
Sam Dornan
dd6303418b fix(collections): project identifier columns instead of loading whole collections (#4589)
* fix(collections): project identifier columns instead of loading whole collections

`GET /api/collections/identifiers` reads only ids, owners and visibility, but
the accessor it called eagerly loaded every rom of every collection
(`@with_roms`) and built a full `User` per row (`Collection.user` is
`lazy="joined"`). A column projection drops both, while `load_only` cannot
cancel either one.

Measured on a seeded database of 100 collections and 200 roms (20,000
memberships): rows read 20,100 to 100, statements 2 to 1, SQL text 1,172 to
113 bytes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test(collections): keep the new identifier assertions to one-line comments

The repo caps comments at one line when the rationale is not recoverable
from the code, and test docstrings at one sentence, so the m2m reasoning
belongs in the PR body rather than repeated at the call sites.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 11:42:00 -05:00
Sam Dornan
d120602342 perf(backend): check rom-note visibility without the related load (#4587)
* perf(backend): check rom-note visibility without the related load

The five `/api/roms/{id}/notes*` routes each opened with `get_rom(id)` to
reach two scalars: `id` for the 404 and `id` plus `platform_id` for
`assert_rom_visible`. `get_rom` runs the whole `with_details` eager load, so
every note read or write paid for the platform, files, metadata, saves,
states, screenshots, rom_users, siblings, collections and notes of the rom,
about 12 statements.

`DBRomsHandler.get_rom_visibility` selects those two columns and nothing
else, and `assert_rom_visible` now takes the `RomVisibility` row it returns
as well as a full `Rom`, so no other caller of the check changes.

Measured on a 3,000-rom library with 300 notes on the target rom, one admin
request:

  GET  /api/roms/{id}/notes/identifiers  17 statements / 30,059 bytes -> 5 / 8,066
  POST /api/roms/{id}/notes              17 statements / 23,209 bytes -> 5 / 1,216

The server-side `Questions` delta per request falls from 33 to 21.

The `executed_statements` fixture moves to `tests/conftest.py` so the new
endpoint tests can use it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test(roms): match the rom lookup across dialects

The notes-load guard pinned the exact SQL text of the visibility lookup,
including MariaDB's `?` bind placeholder. psycopg renders the same query
as `%(id_1)s::INTEGER`, so the assertion could never match on the
PostgreSQL leg of the CI matrix and all three tests would have failed
there. Compare a dialect-independent prefix instead.

Step 2 of the pr-ready gauntlet: correctness fix plus the comment and
docstring trims it flagged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test: drop the second copy of the statement-capture fixture

`test_released_days.py` carried its own `captured_sql`, the same
before_cursor_execute listener the notes-load guard now shares as
`executed_statements` from tests/conftest.py. Point that file at the
shared fixture and drop the now-unused imports.

Step 3 of the pr-ready gauntlet: reuse and simplification fixes.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test: name the notes auth helper as the other endpoint tests do

Seven endpoint test modules already define `_auth` for the bearer header;
this file introduced a third name for the same one-liner.

Step 4 of the pr-ready gauntlet: review-polish consistency pass, after
trunk fmt and the affected-suite run.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 11:30:33 -05:00
Sam Dornan
768de53b14 fix(roms): read note authors off the joined user (#4588)
`UserNoteSchema.username` was validated straight off the `RomNote` row, which
has no such column, so `GET /roms/{id}/notes` raised a ValidationError on any
rom carrying at least one note. The create/update routes dodged it by filling
the author fields from the request user.

Move the mapping into `UserNoteSchema.from_rom_note`, which takes the author
off the `user` relationship the note query already joins, and reuse it for the
list route and `DetailedRomSchema` (where the same mapping was inlined).

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-17 11:13:40 -05:00
Sam Dornan
fd9a33bc35 fix(backend): return identifiers without building an ORM row per id (#4586)
* fix(backend): project the identifier endpoints onto the id column

The `/identifiers` routes for saves, states, firmware, platforms, smart
collections and rom notes each asked their handler for entities with
`only_fields=[Model.id]`. `load_only` narrows the selected columns but does
not cancel an eager relationship, so a `lazy="joined"` join still fired and a
full entity was still built for every row. The platforms route was the worst
of the six: `with_firmware` eager-loads every firmware row and its platform,
and `load_only` does not cancel that either.

Each handler grows a small query builder shared by its existing accessor and a
new `*_ids` accessor that projects onto the id column with
`with_only_columns`, which drops the entity and with it the eager joins. The
firmware accessor already applied `noload`, so its SQL is unchanged; it moves
to the projection only to stop building rows.

`/api/users/identifiers` and the two `/collections` callers that use more than
an id are left alone, because nothing eager fires for them.

The `executed_statements` fixture moves to `tests/conftest.py` so the new
endpoint tests can use it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* Update backend/tests/endpoints/test_identifier_endpoints.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* style(backend): drop the leading blank line black rejects

Removing the module docstring in the GitHub edit left an empty first line,
which is the only thing black wanted to change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* test(backend): drive the note-identifier test through the endpoint

Greptile flagged the handler-level test for bypassing the route's auth,
404, and visibility checks. It now issues the request the frontend would
and asserts the id-only projection holds among the route's own reads.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* refactor(backend): fold the duplicate SQL-capture fixtures into the shared one

Step 3 of the PR-ready gauntlet (simplify). The shared
`executed_statements` fixture gains the two roms test files that still
declared byte-identical local copies, and the id-only assertions share one
statement parser instead of two.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

* docs(backend): tighten the get_platform_ids docstring to one line

Step 4 of the PR-ready gauntlet (review-polish).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2026-09-17 11:13:07 -05:00
Zurdi
3a877dad99 Merge pull request #4580 from rommapp/claude/v2-mobile-list-rows
feat(v2): phone-friendly list rows, soundtrack header and mini player
2026-09-17 18:02:52 +02:00
zurdi
af90842e72 fix(v2): pause music when the viewport shrinks to a phone mid-game
Addresses Copilot's review note: the pause only watched the game stage, so a
desktop window narrowed to phone width while a game ran kept playing with the
top-bar controls hidden.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:59:47 +02:00
zurdi
3a4969a356 test(v2): mock the router in the SelectionBar test
Loading the real router pulled in its lazy auth views, which sometimes were
still loading at teardown and failed the run with EnvironmentTeardownError.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:58:23 +02:00
zurdi
fb52e6bd23 fix(v2): scope overrides that :global() turned into page-wide rules
Vue compiles `:global(X) .foo` to plain `X`, so the Collections light-theme
tweaks tinted the whole app and the reduced-motion rules for the nav bar and
covers styled <html> instead. Plain descendant selectors keep them scoped.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:58:21 +02:00
zurdi
e7ff85f27d refactor(v2): apply the remaining simplify findings on the player
Read the queue position from the store's currentIndex, drop the play button
radius rules RBtn's inline radius always overrode, bind the vertical slider's
pointer listeners only when vertical, hide the reduced-motion stream glow with
display: none, and trim the long component headers.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:58:19 +02:00
zurdi
3a1c846a07 fix(v2): align Library Management spacing, counters and empty states
Tighten the tabs-to-toolbar gap, show only the icon and number in the
Missing Games counter, stretch both Missing counters to the toolbar height,
and give Missing Games and Excluded the same empty card as Missing Firmware.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:47:04 +02:00
zurdi
59efacd696 fix(v2): stop tables flashing a vertical scrollbar while rows animate in
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:47:02 +02:00
zurdi
35a8a95ec1 refactor(v2): detect nested menus through the escape stack
RMenu's click-outside check no longer keeps its own registry of child
panels. Every open overlay already sits on the shared escape stack with a
panel getter, in open order, so a new `isInsideEscapableAbove` helper
answers "is this press inside something opened above me?" for nested
menus, and for dialogs or drawers opened from a menu too.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:38:18 +02:00
zurdi
3120726149 feat(v2): highlight the current page in menus
RMenuItem links to the page already on screen now take their hover look,
so the user menu shows which settings section is open. That matters on
phones, where the settings sidebar that carries the same cue is hidden.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:35:23 +02:00
zurdi
1eb55dabc5 fix(v2): match the Client API Tokens search spacing to the other settings tabs
The tokens view added its own bottom margin to the search field on top of
the section stack's gap, leaving twice the space the Users and Permission
Groups tabs use. The margin goes, along with an unused header rule.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:35:21 +02:00
zurdi
3d6201970a fix(v2): keep the scrubber track thin and only fade its thumb
The progress scrubber no longer thickens on hover, focus or drag; the
track stays at 3px and the thumb just fades in and out.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:31:40 +02:00
zurdi
0317773a7d feat(v2): smooth, scrubber-style track progress
- usePlaybackTime advances the playing position every frame from the
  audio's coarse time reports, so the progress bar and the pill's ring
  move continuously instead of in steps.
- SeekBar is the shared timeline for the soundtrack panel and the mini
  player card: elapsed time, a scrubber and the duration. While dragging
  it follows the finger rather than the playback clock, and only it
  re-renders per frame, not the whole panel or card.
- RSlider gains a `scrubber` look (with a story): a thin track with no
  thumb at rest that thickens and shows a solid thumb on hover, keyboard
  focus or drag, which sets the progress bar apart from volume.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:30:48 +02:00
zurdi
6678ba3be5 fix(v2): drag the vertical slider from the pointer position
Touch browsers do not drag a rotated range input, so once the vertical
slider claimed touch gestures neither the page nor the thumb moved. In
vertical mode RSlider now reads the pointer itself: a press or drag sets
the value from its height along the track, with pointer capture while
dragging. The native input keeps serving keyboard and assistive tech.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:23:04 +02:00
zurdi
64307ce29a fix(v2): keep a vertical slider drag from scrolling the page
Dragging the volume slider on a phone also scrolled the page, and at the
top of the page it could trigger pull-to-refresh. The vertical slider now
claims touch gestures, so a vertical drag only moves the thumb.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:19:45 +02:00
zurdi
b082b4319e refactor(v2): use spacing tokens for the new phone layouts
The gaps, paddings and margins this branch adds now come from the
`--r-space-*` scale instead of pixel literals. Off-scale values round to
the nearest step: the phone save rows keep the desktop 12px side inset,
and the 2px and 6px gaps become 4px and 8px.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:18:29 +02:00
zurdi
e154f1657a fix(v2): settle the open review questions on the mini player and scan pill
- MiniPlayer: on phones, music pauses when a game takes the screen, since
  the top bar that carries its controls hides while the game runs.
- ScanningIndicator: phones shorten large counts (1.8K / 45.7K) so the
  pill always fits beside the now-playing pill on narrow screens.
- NowPlayingChips: the queue position chip hides while no track is shown,
  instead of reading "0 / 0" during a load or on an empty queue.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:18:24 +02:00
zurdi
45d1682d75 fix(v2): stop the player covers and backdrop flashing on seeks and track changes
- MiniPlayer: a seek, a short stall or a new track only reports buffering
  once the wait passes one second, so the covers no longer flash the
  spinner on every seek or quick track change.
- AmbientArt: a new cover is decoded before it replaces the shown one and
  the two crossfade, so the blurred backdrop never goes blank between
  tracks.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:15:12 +02:00
zurdi
9a084f4a15 feat(v2): open volume as a vertical glass slider on click
- VolumeControl: a click opens the slider for every input (no hover
  open, no mute on click), so the button never swaps elements and the
  panel anchors to it instead of the viewport corner. The panel is a
  vertical column with the level on top and the mute toggle below, on the
  top bar's glass surface.
- RSlider: a `vertical` mode stands the track upright inside a box as
  tall as the slider (with a story), and the thumb border drops to 1px to
  match the track and panel borders, which also centres it on the track.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:15:08 +02:00
zurdi
fdf85f3c5a fix(v2): make the volume slider usable on touch
On phones the volume control was unusable inside the mini player sheet:
a tap both toggled mute and the hover menu, and touching the slider closed
the sheet, taking the slider with it.

- RMenu: a nested menu registers its panel with every ancestor menu, so a
  pointer down inside a child menu's (teleported) panel no longer counts
  as a click outside the parent.
- VolumeControl: only a mouse opens the slider on hover and mutes on
  click. Touch, keyboard and gamepad open the slider from the button, and
  the slider now carries its own mute toggle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 17:00:00 +02:00
zurdi
8d3b33984d fix(v2): address code-review findings on the soundtrack header and mini player
- NowPlayingPill: let RMenu own its open state, so the sheet no longer
  reopens by itself when the pill remounts; drop the placement props a
  docked sheet ignores and make the body padding override win by
  specificity.
- Panel: the header play button shows pause only while its own queue is
  playing, not while another queue's track is.
- RProgressLinear: hide the stream glow under the in-app reduced-motion
  mode too, not only the OS setting.
- RMarquee: make the looped copy inert so focus never lands in it.
- NowPlayingChips: format the queue position for the locale as well.
- NowPlayingTags derives from TrackMetaSchema; the mini player checks and
  links use ROUTES.ROM; trim the new header comments and drop em-dashes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 16:55:47 +02:00
zurdi
83b7e762f8 fix(v2): run the Jukebox header divider edge to edge
The divider under the Jukebox title inherited the header's side padding
and stopped short of the screen edges. Only the title is inset now, so the
divider spans the full width above the player.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 16:42:13 +02:00
zurdi
63f94cfc08 feat(v2): keep the now-playing pill compact
The top-bar pill drops the looping title and its scan-dependent sizing: it
is now always the spinning cover in its progress ring followed by
previous, play / pause and next. The cover already opens the sheet with
every track detail, so the title added width without adding information.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S76JZm1jjh32KhBbPCBvGW
2026-09-17 16:40:34 +02:00