- Move unrecorded_hash onto FSAssetsHandler, so sync_watcher and the
push-pull task no longer import handler.asset_store (and with it
scan_handler and every metadata provider, ~80 modules)
- Drop the PSP bundle's unrecorded_hash call: bundles are never slotted
- Skip the removal-times query when the device's copy already matches
- Restore per-row deletes in prune_slot: the single `id IN (...)` delete
from the review pass deadlocked the threaded removal test 3/10 runs on
MariaDB (0/25 per row)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Follow-up to #4789 from the code-review pass:
- PUT /api/saves/{id} records the replaced bytes of a never-hashed save
- rehash_save keeps updated_at, so a recompute is not read as a write
- unstamped legacy versions keep their removal time when another is lost
- prune_slot deletes its locked rows in one statement
- 0138 creates the slot index after the collation change
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
is_system was true exactly when system_key is set, so 0137 now drops it
after backfilling the key, and downgrade rebuilds it from the key. The
group API returns system_key instead, and the admin UI reads it for the
system tag and edit warning.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
HybridAuthBackend runs inside Starlette's AuthenticationMiddleware, so an
HTTPException raised while validating a JWT bearer token (expired, bad
signature, garbage) or parsing a malformed Basic header bypassed FastAPI's
exception handlers and surfaced as a 500 on every endpoint, including
/api/heartbeat. Return None instead, matching the rmm_ client token path:
public endpoints respond normally and protected ones return 401.
Fixes#4788
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Tests, fixtures and the e2e seed found the seeded groups by display name,
which an admin can edit and this PR just changed. A unique system_key
column (viewer/editor), added and backfilled by 0137, identifies them
instead, and get_system_group() replaces the name lookups.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The e2e seed resolves the viewer via get_default_group instead of a list
of fallback names. The migration drops the id pre-select, and the tests
load the revision once and call upgrade/downgrade directly.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Style rules walk a PostCSS AST parsed once per file instead of
hand-rolled declaration, @media and comment regexes. postcss becomes a
direct devDependency at the version already in the lockfile.
- The src/v2/lib boundary uses import-x/no-restricted-paths, so aliases
and relative imports resolve to the same zones. The resolver now knows
.d.ts so the emitter types match.
- typescript-eslint's eslintRecommended applies to .vue in place of a
single no-undef override.
- A reportAt helper replaces the per-rule loc boilerplate, and sfc()
carries the test filename.
- The Trunk no-emdash linter runs batched.
- CLAUDE.md and address-bot-reviews point to review-polish instead of
repeating the encode-a-check guidance.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Master already chains 0135 and 0136 onto 0134, so the rename becomes
0137 revising 0136_deleted_assets to keep a single alembic head. Also
dedupe the migration filename in tests, rename tests that still said
legacy, and drop em-dashes and a long docstring.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- no-color-literal: scan declarations after nested blocks, skip nested
selectors and quoted strings.
- no-layout-media-query: allow the Media Queries 4 `or` keyword.
- no-emdash-in-comment: bound each search to its comment.
- Primitive import limits also cover the `@v2/` alias, `@/locales`, and
`@/plugins/router`, and skip `*.spec.ts`.
- block-order puts scoped styles before unscoped ones.
- no-emdash (Trunk) points Python columns at the comment and treats .mdx
as Markdown.
- Drop stale ESLint ignores and the unused sfc() lang parameter; update the
scripts table in FRONTEND_ARCHITECTURE.md.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- romm/no-emdash-in-comment only reports now. The heuristic fixer produced
mechanical prose and let fix-on-save rewrite every comment in touched files.
- A no-emdash Trunk linter covers Markdown and Python comments, which ESLint
cannot see. Existing hits stay held back by Trunk's hold-the-line.
- Lint-rule tests run in their own node Vitest project, without the app's
happy-dom environment and Storybook setup.
- The CLAUDE.md check rule and its skill echoes now ask for a named follow-up
rather than a new rule in the current PR.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Simplify pass. Move firmwareExternalFiles into v2/utils/playerFirmware
next to resolveInitialFirmware so one module owns the player's firmware
logic and FirmwareLike stays private, replace the single-member core set
with a direct check, and fold the filename guards into one regex.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A workflow-level CHANNEL replaces the scattered event-name checks and
the build-only CACHE_SCOPE. The image and tag lists, repeated in all
four metadata steps, move to workflow env, and the index annotation
level is set once on the merge job.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Code review follow-up. Drop the all-firmware fallback for other cores:
a cleared picker there means "no BIOS" on purpose, and the fallback
refetched every platform file uncached on each launch. PUAE again gets
every Kickstart, including the selected one, as originally tested.
Console mode's player now sets EJS_externalFiles too, so #4733 is fixed
there as well.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
metadata-action renders `{{version}}` in custom labels and annotations
as empty, overriding its own correct version label, so those entries
are removed and the shared title/description/licenses live in one
OCI_METADATA env. The scheduled run is limited to rommapp/romm, and
the compose note says `latest` won't start after a nightly migration.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Reuse FirmwareLike instead of a duplicate type, correct the archive
comment for the nightly EmulatorJS build, and cover the dot-name filter
and URL encoding in tests.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Trunk already runs ESLint with the same config in CI, scoped to changed files and respecting the v1 ignores.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
It is a polish-phase action, not an ESLint check, so it now closes the polish passes before section E.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
A cron run replaces the per-push build, so the tag is renamed from
`edge` to `nightly` (and `nightly-slim`), using metadata-action's
`type=schedule`. The version string becomes `nightly-<short sha>`.
The concurrency guard is dropped since scheduled runs can't overlap.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Generalize the PUAE helper to any core. Filename-selecting cores (PUAE)
still receive every firmware file in the system directory, minus the one
already loaded through EJS_biosUrl. Every other core now receives all
firmware next to the game when no file is selected, the case where
EJS_biosUrl previously loaded nothing. Archives are skipped because
EJS_externalFiles writes them unextracted; they keep loading through the
picker.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
PlatformIcon's story moved out of src/v2/lib, which the harness only globbed, so CI stopped rendering it and running its axe checks. Covering components/shared restores that and adds the four other shared stories.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Move the slug-to-URL resolver into src/v2/utils/platformIcons so
PlatformIcon no longer pulls in the blob cache, and normalize slugs
through one helper.
- Keep PlatformIcon's tooltip as title or alt, which drops the three
:show-tooltip="false" overrides the slug fallback needed.
- Drop the plugin's unused directory argument, the redundant onError
guards and the doubled fsSlug lookup, and shorten the test helper.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Emit the slug-to-file map from the manifest plugin and reload it when
icons change under the dev server.
- Default the plugin's icon directory so both configs share one path.
- Keep decorative platform icons at an empty alt, and turn off the slug
tooltip where the display name already sits next to the icon.
- Clean up the manifest test's temp dir and cover CachedPlatformIcon.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
simplify pass:
- useInputModality gains pin(), which gates setModality so pinned modes
ignore the listeners (and useGamepad) instead of a watcher undoing their
writes; drops the manual data-input write and the HMR dispose
- one INPUT_DEFAULT shared by initialGlobals and the decorator fallback
- the Input Navigation stories share one render on meta
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
code-review (xhigh) pass:
- lazy-load useGamepad so vitest.setup.ts no longer caches it ahead of
useGamepad/index.test.ts's vue-router mock (5 failures in the full suite)
- drop flush: "sync" on the re-pin watcher, which ran between setModality's
ref write and DOM write and let a listener's data-input win
- stop the re-pin watcher on HMR
- test that a pin survives the live listeners, and assert data-input in play()
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The v2 platform icon components probed /assets/platforms/<slug>.svg, then
.ico, and let the browser 404 on every miss before settling on default.ico.
A build-time manifest of the shipped filenames (virtual:platform-icons) now
picks the right file up front, so unknown slugs go straight to the default
and the prefetch cache makes at most one request per shipped slug.
The manifest is a Vite virtual module rather than an eager import.meta.glob,
which would emit hashed copies of all ~240 icons and inline the small ones
into the lib chunk just to read their names.
RPlatformIcon moves out of lib/ to components/shared/PlatformIcon, since it
now depends on platform-specific asset knowledge. Its tooltip also falls
back to the slug when no title or alt is given (the empty-string alt default
used to short-circuit the `??` chain).
Based on the approach in #4728 by @andest01.
Fixes#4671
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Stories had no data-input on <html>, so the key/pad focus rings and other
modality-gated styles never rendered in Storybook. The new Input toolbar
pins data-input to mouse, touch, key or pad, or tracks live devices with
the real useInputModality + useGamepad stack so a connected controller
drives the story. An Input Navigation story demos a useWrapGridNav grid
and covers arrow-key movement in play().
Slimmed-down take on the idea in #4695.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The root CLAUDE.md loads into every agent session. Drop the stack table
(derivable from pyproject.toml and package.json) and the skills table
(duplicates the skill listing agents already receive), and move the v1/v2
rules plus the per-stack command blocks into frontend/CLAUDE.md and
backend/CLAUDE.md, which load only when working in those directories.
Quote the review-polish skill description: its unquoted ": " made the
frontmatter invalid YAML.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>