Commit Graph

12078 Commits

Author SHA1 Message Date
Kyle Benzo
d8a32ab7dd fix(patcher): preserve output filesystem errors 2026-09-14 13:01:53 -07:00
Kyle Benzo
fad8b2943d fix(patcher): use archive fallback for zip extraction 2026-09-14 12:55:08 -07:00
kylebenzo
3e73579614 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-09-14 12:49:58 -07:00
Kyle Benzo
7a1f012f15 fix(patcher): address PR code review 2026-09-11 21:25:32 -07:00
Kyle Benzo
3511214fe7 fix(patcher): patch ROM members inside ZIP archives 2026-09-11 21:23:20 -07:00
Georges-Antoine Assi
839605e679 Merge pull request #4467 from rommapp/chore/env-template-53-vars
chore(env): add the 5.3 physical-game and recommendation vars to env.template
5.3.0-alpha.1
2026-09-11 16:11:33 -04:00
Georges-Antoine Assi
be498fa093 chore(env): add the 5.3 physical-game and recommendation vars to env.template
`UPC_LOOKUP_ENABLED`, `UPC_LOOKUP_API_KEY`, `UPC_LOOKUP_URL`,
`ENABLE_SCHEDULED_BUILD_RECOMMENDATIONS` and
`SCHEDULED_BUILD_RECOMMENDATIONS_CRON` all ship in 5.3 and are read in
`backend/config/__init__.py`, but none of them reached `env.template`.

The docs generators treat `env.template` as the source of truth, so the
five were missing from the environment-variable reference, and
`gen_scheduled_tasks.py` fails outright rather than print a default it
cannot verify for the recommendations task.

Defaults match `backend/config/__init__.py`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 16:02:16 -04:00
Georges-Antoine Assi
0a41ea57f2 Merge pull request #4462 from rommapp/chore/release-notes-skill
chore: add draft-release-notes skill for drafting release notes
2026-09-11 16:02:08 -04:00
Georges-Antoine Assi
5ab569a4e7 chore: rename to draft-release-notes and cover stable releases
A stable release's notes are the same document as the last full prerelease on
its line, regenerated over a range that grew against the same base, so the range
resolution already handled a stable tag. What the skill was missing is what
changes between the two.

Split the shape decision out first, since the tag alone decides it: every .1
prerelease and every feature-carrying stable gets the full treatment, while
later prereleases on a line and patch releases get a flat What's Changed.

Record the two things a stable does differently. Highlights are re-curated
rather than carried over, as 5.0.0 did against its beta. The API table belongs
to the prerelease that opened the line and the stable drops it, which is why
5.2.0 kept one and 5.1.0, 5.0.0, 4.9.0 and 4.8.0 did not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 14:17:56 -04:00
Georges-Antoine Assi
0d05e2d141 chore: rename the skill to prerelease-notes
Claude Code ships a built-in release-notes skill, so the repo one needs a
distinct name. Narrow the description to the alpha/beta prerelease case it
actually covers, so the two do not compete for the same phrasing.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 14:09:06 -04:00
Georges-Antoine Assi
c773f380c7 chore: address review feedback on the release-notes skill
Resolve the range against the drafted tag: pick the stable tag immediately
below the release line rather than the newest one, and point the head at an
already-tagged prerelease instead of master.

Treat the config and endpoint greps as an index, since a wrapped decorator or
_get_env call only matches on the line that changed, and read the full hunks.

State the promote-or-list rule the published notes actually follow: a PR lifted
into Highlights loses its bullet, so the completeness check counts it once
across both.

Fix the patch-release shortcut in the template, which pointed at the wrong two
sections and dropped the change list, and silence the markdownlint rules the
skeleton exists to violate.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 14:00:18 -04:00
Georges-Antoine Assi
a334e05b75 chore: add release-notes skill for drafting alpha/beta notes
Derives the house format from the last ten alpha.1/beta.1 prereleases:
the last stable tag as the compare base, the fixed section order, the
autogenerated bullet lines kept verbatim, and the alpha-versus-beta
placement of the API and env var tables.

Ships a skeleton in template.md and registers the skill in CLAUDE.md.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 13:29:56 -04:00
Georges-Antoine Assi
1fdf092665 Merge pull request #4461 from rommapp/claude/platform-slug-docs-7rads7
docs(examples): drop the gc override from the config example
2026-09-11 12:15:14 -04:00
Georges-Antoine Assi
d7e3a63447 Merge pull request #4454 from rommapp/fix/sort-null-placement-4449-4450
fix(roms): sort unset per-user and metadata keys last on every engine
2026-09-11 12:14:51 -04:00
Georges-Antoine Assi
1688038f33 Merge pull request #4453 from rommapp/fix/v2-select-all-4335
fix(v2): give the gallery a real Select all in both layouts
2026-09-11 12:14:36 -04:00
Georges-Antoine Assi
09bdee83da Merge pull request #4451 from rommapp/fix/hash-chip-aria-4105
fix(v2): announce the hash chip's disclosure state and action
2026-09-11 12:14:21 -04:00
Georges-Antoine Assi
2252fb0da3 docs(examples): trim the platform binding comment to one line
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 12:13:47 -04:00
Sam Dornan
fec1b3b8d9 docs(examples): cover the wrong-platform case in the binding comment
A folder name that already is a slug never reaches the alias table, so
a binding is needed for those too, not just for names RomM doesn't know.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172ovkiqiK6JgEYCmi3uqe2
2026-09-11 15:36:36 +00:00
Sam Dornan
89ae78887c docs(examples): drop the gc override from the config example
The gc folder is a built-in alias now, so the example demonstrated a
binding that changes nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172ovkiqiK6JgEYCmi3uqe2
2026-09-11 15:31:10 +00:00
zurdi
2685d398b9 review: pin NULL sort keys last on the music track ordering
The dialect-aware helper replaced the unconditional IS NULL term on
the music query with nothing covering it: an untagged track (NULL
duration) now has result tests trailing both directions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 17:21:46 +02:00
Sam Dornan
68aa2501e5 fix(frontend): stop ESLint and Prettier fighting over formatting (#4456) 2026-09-11 10:19:47 -05:00
Georges-Antoine Assi
41103ef29e Merge pull request #4441 from rommapp/renovate/ghcr.io-goauthentik-server-2024.x
chore(deps): update ghcr.io/goauthentik/server docker tag to v2024.12.5
2026-09-11 11:02:24 -04:00
Sam Dornan
aef5da4d9b ci: run trunk check on master pushes (#4457) 2026-09-11 10:01:05 -05:00
Sam Dornan
01e28459a5 ci: pin the amd64 image build to ubuntu-24.04 (#4458) 2026-09-11 09:59:06 -05:00
zurdi
ed57e51b57 review: report off when only out-of-filter roms are selected
selectionState keyed off the global count, so picks kept from another
filter left the header checkbox indeterminate over a result with
nothing selected; both branches now require a selected rom inside the
current result before reporting "some".

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 16:56:23 +02:00
zurdi
69dac41f0b review: gate the disclosure on an actually abbreviated value
A CRC renders in full, so the reveal-mode chip announced a disclosure
whose activation had nothing to show: short values now carry no
aria-expanded, no action label, no eye icon, and a click on them is a
no-op instead of a state flip nothing reflects.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 16:56:10 +02:00
Sam Dornan
68a0beeb7b fix(frontend): 404 unmatched URLs in v2 instead of "not migrated yet" (#4455) 2026-09-11 09:09:29 -05:00
zurdi
13b0ba4e3d review(pr-ready step 3): one nulls-last helper, marker-driven zero fold
Simplify pass: the dialect-aware NULL placement becomes a module
helper shared with the music-track ordering, which gains index-order
reads in the three cases that never needed the emulation term. The
zero-as-unset rule moves from a name frozenset onto the columns
themselves (mapped_column info markers), the ordering block stops
rebinding one name through four types, driver pinning collapses into
two conftest fixtures, and the dialect matrix lives in one
parametrized test instead of two per-family copies.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 15:17:32 +02:00
Georges-Antoine Assi
17a3d91d4f Merge pull request #4452 from rommapp/feat/emulatorjs-default-cores
feat(emulatorjs): set a default core per platform in config.yml
2026-09-11 09:14:44 -04:00
Georges-Antoine Assi
5d683c72c0 refactor(player): apply simplify pass to the default-core resolution
Drop the console.warn for an unsupported configured core: it re-derived
the check the resolver already makes, and fired on the player's device
rather than where the admin would see it. The example config now points
at the exact core name instead.

Hoist the platform slug in onMounted, name the comment's dependency
rather than its placement, drop a redundant optional chain, and put the
new config tests on a helper matching their neighbours.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 09:03:42 -04:00
zurdi
5926638483 review(pr-ready step 4): trim the shell hotkey comment
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 15:03:00 +02:00
zurdi
fbc32aa017 review(pr-ready step 2): one NULL-placement mechanism, honestly priced
Code-review pass: the rom_user and metadata NULL handling collapse
into a single block built from the folded sort key, with PostgreSQL
on native NULLS LAST for both families and the leading IS NULL term
emitted only where an engine needs it (non-PG ascending), so the
redundant terms and the raw-vs-folded hazard are gone. The zero-as-
unset column set moves to models/rom.py beside the columns it
describes, the hltb query-shape test folds into the metadata
parametrize, and the comments that overclaimed index behavior after
the change now state the measured cost instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 15:02:16 +02:00
Georges-Antoine Assi
93e3417965 fix(player): apply code-review pass to the default-core resolution
Pass the netplay flag to getSupportedEJSCores so a configured core that
only the nightly build offers is not dropped, resolve the core before the
save and state defaults so opening the player no longer clears a
remembered state id, warn when a configured core is unsupported, and
guard the store getter against a payload without the field.

Drop the write-back suppression: it left a game played with an inherited
core unpinned, so a later platform-level pick silently switched it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 08:58:26 -04:00
zurdi
b3707e66d3 review(pr-ready step 3): one cancellation authority for select-all
Simplify pass: the store's supersede-abort becomes the only
cancellation policy, so a re-trigger restarts the fetch instead of
re-arming it and the composable loses its module-level mutables (the
in-flight flag moves into the store next to the controller, epoch and
snapshot become per-invocation). The gallery-context guard moves into
fetchAllFilteredRoms, a filteredRomIds getter answers "is the result
known" once for the three gates, NO_SIDECARS gets one exported typed
home shared by the three fetch sites, selectMany clones lazily, and
the tests move to a setupGallery helper with a typed deferred.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 14:43:06 +02:00
Georges-Antoine Assi
cf48d371fc feat(emulatorjs): set a default core per platform in config.yml
Add an `emulatorjs.default_cores` block mapping a platform slug to the
core the player preselects for it, so an instance can run DS software on
DeSmuME and DSi software on melonDS without every user picking a core on
every device.

The player resolves its core from the game's remembered core, then the
platform's, then the configured default, then the platform's first
supported core. Each candidate is checked against the cores the platform
actually supports, so an unknown platform or core falls through.

Playing no longer writes the resolved core back to local storage unless
the user picked a different one, so changing the configured default
reaches devices that never made a choice.

Closes #4434

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-11 08:39:55 -04:00
zurdi
44516a774a review(pr-ready step 2): harden select-all against races and bad contexts
Code-review pass fixes: a re-triggered select-all re-arms the pending
epoch instead of no-opping; the loaded-only fallback waits for the
metadata bootstrap; deselections made during the fetch survive the
merge; fetches are refused off the gallery view and on empty results;
the Missing tab clears the selection on unmount; Esc cancels an
in-flight select-all even before anything is selected; hot-path scans
short-circuit on count and read through toRaw; the sidecar-skip flags
and page size get one home; failures reach the console. Six new tests
pin the races.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 14:13:21 +02:00
zurdi
3e4d6d695d review(pr-ready step 3): announce the disclosure only where it can toggle
Simplify pass: aria-expanded now exists exactly when the chip is a real
toggle (a copy chip stays a plain button even after a failed copy left
the value revealed, since nothing can collapse it), and the revealed
disclosure drops its aria-label so the content, label plus full value,
becomes the accessible name. The hide-full-hash key that decision
orphans is removed from every locale, and the ARIA tests consolidate
to three cases decoupled from the i18n mock's serialization.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 13:41:34 +02:00
zurdi
e68387ed7a review(pr-ready step 2): align copy-verb forms and pin the retry contract
Code-review pass fixes: cs/pl/ru copy-hash now use the imperfective
form their sibling copy actions use, hu drops the definite article the
other action labels omit, and a test pins that a click after a failed
copy keeps copying while the chip stays disclosed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 13:19:30 +02:00
zurdi
2974d3c8e2 fix(roms): sort unset per-user and metadata keys last on every engine
Ascending rating/difficulty/completion sorts split visually identical
"unrated" games into two buckets: touched-but-unrated rows carry the
NOT NULL default 0 and led the list while never-touched games trailed
it. The three zero-default sort keys are now wrapped in NULLIF(col, 0)
so both unset shapes share the final bucket, tiebroken by rom id.

Metadata sorts kept each engine's default NULL placement: MariaDB led
ascending release-date sorts with the wall of unmatched roms while
PostgreSQL trailed it. NULLs now land last on every engine in both
directions, emitted per dialect to keep index reads where the engine
allows them: PostgreSQL uses native NULLS LAST, MariaDB descending
already places NULLs last on the plain index read, and only MariaDB
ascending pays a measured filesort (EXPLAIN at 30k roms: 51ms index
read to ~150ms), the one case the engine cannot serve from a
single-column index.

Fixes #4449
Fixes #4450

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 13:06:05 +02:00
zurdi
fc10db47cb fix(v2): give the gallery a real Select all in both layouts
Grid view had no select-all at all, and list view's header checkbox
only selected the 72 loaded items per window. A shared composable now
selects the entire filtered result: loaded roms merge instantly, the
remainder is fetched at the backend's page cap with the sidecar
aggregations off, and an epoch guard discards a fetch that resolves
after the user already cleared the selection. The selection bar gains
a select-all button (the only affordance grid has), the list header
checkbox derives its tri-state from the whole result, and Ctrl/Cmd+A
runs the same path. The Missing games tab keeps loaded-only semantics
since it opts out of the rom id index.

Fixes #4335

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 13:04:57 +02:00
zurdi
0374a89ab7 fix(v2): announce the hash chip's disclosure state and action
Hash chips read as plain buttons to screen readers: no aria-expanded,
and the accessible name was the abbreviated hash text. The button now
carries aria-expanded whenever it actually behaves as a disclosure
(reveal mode, or a copy whose failure disclosed the value) and an
aria-label that names the action and the hash kind, translated in
every locale.

Fixes #4105

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ldi4YaXJWDDmFdbKfQay8L
2026-09-11 13:03:47 +02:00
renovate[bot]
eccacaabc9 chore(deps): update github actions (#4445) 2026-09-10 21:49:58 -05:00
renovate[bot]
df8429a7d6 chore(deps): update postgres docker tag to v18 (#4444) 2026-09-10 21:27:17 -05:00
renovate[bot]
6d914f6d0e chore(deps): update astral-sh/setup-uv action to v10.1.0 (#4440) 2026-09-10 21:26:40 -05:00
Sam Dornan
1608a8964b ci: build each arch on a native runner and cache layers (#4437) 2026-09-10 20:41:56 -05:00
Georges-Antoine Assi
0fadc67030 Merge pull request #4438 from rommapp/docs/readme-copy-tweaks
docs: tighten the README copy
2026-09-10 21:19:55 -04:00
Georges-Antoine Assi
5098b7d913 docs: move the preview above the features and link it to the demo
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 21:18:15 -04:00
Georges-Antoine Assi
fcedf64008 docs: delete the leftover v1 preview screenshots
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 21:15:16 -04:00
Georges-Antoine Assi
985c0437ab docs: replace the preview section with a demo tour gif
Recorded against demo.romm.app: home, the NES library, a game page,
its achievements, and a game running in the browser.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 21:11:40 -04:00
renovate[bot]
669f23934b chore(deps): update ghcr.io/goauthentik/server docker tag to v2024.12.5 2026-09-11 00:54:04 +00:00