Commit Graph

12672 Commits

Author SHA1 Message Date
Zurdi
bb85a45ef5 Merge pull request #4705 from rommapp/feat/changelog-short-pr-links
feat(v2): shorten the changelog's pull request links to #nnnn
2026-09-22 21:27:01 +02:00
Georges-Antoine Assi
76dac916a1 Merge pull request #4681 from rommapp/claude/fix-4397-pad-nav-regressions
fix(v2): restore gamepad navigation on the platforms grid and every player
2026-09-22 15:22:57 -04:00
zurdi
62a44c4435 fix(v2): cap how far the changelog's link rewrite scans
A `[` needs no closing bracket, so on notes carrying unclosed ones the
skip-the-existing-link alternative scanned to the end of the text for
each of them: quadratic, and measurably so, 2s over 100KB of them and
33s over 400KB. Capping the label and the target, far above the longest
link the notes actually carry (134 characters), holds it to a line's
worth of work per bracket: 42ms and 159ms for the same two, and the
same output on every published release.

Raised by @gantoine in review of #4705.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK
2026-09-22 21:19:16 +02:00
Georges-Antoine Assi
d15cea9659 fix(v2): address Greptile review on #4681
Trim the usePlayFocus module comment to two lines and type the useGamepad
test fixture fully instead of casting through unknown.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 15:09:48 -04:00
Georges-Antoine Assi
79eece9dbe Merge pull request #4680 from andest01/fix/filter-values-null
fix(frontend): tolerate null filter_value lists from the API
2026-09-22 15:07:43 -04:00
Georges-Antoine Assi
c367c279cd test: tighten test typing from Greptile review
Annotate the new filter_values endpoint tests and their helper, and build
the galleryRoms null-coercion test's platform with a typed factory
instead of casting a bare literal.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 14:55:16 -04:00
Georges-Antoine Assi
13b4187daa run generator 2026-09-22 14:36:49 -04:00
Georges-Antoine Assi
be1e5fd308 fix(backend): type filter_values as RomFiltersDict end to end
The ROM list and /roms/filters responses already validate every
filter_values key as a list, so the API never sends nulls. Make that
contract explicit: the handler now returns RomFiltersDict directly
(moved to handler/database/rom_filters.py to avoid an import cycle),
which drops the mypy typeddict-item ignores in the endpoints. Endpoint
tests pin that every key is present and a list, including for a ROM
with no metadata and with with_filter_values=false.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 14:33:42 -04:00
Georges-Antoine Assi
a4dfa9cdad refactor(frontend): inline null coercion in filter setters (simplify pass)
Drop the one-line listOrEmpty wrapper and the setter test the
galleryRoms test already covers.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 14:16:01 -04:00
zurdi
a717e2e81a fix(v2): keep the changelog's link rewrite out of code and queries
Addresses Greptile's review of #4705.

The rewrite matched a reference anywhere but right after a link's
bracket, so one written inside code was turned into markdown the preview
then printed verbatim, and one inside a longer link label nested a link
in a link. Code spans, fenced blocks and whole existing links are now
matched first and handed back untouched. A trailing query no longer
splits a reference either: `?` joins the guard that already kept
`/files` and `#issuecomment-1` whole.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK
2026-09-22 20:15:00 +02:00
Georges-Antoine Assi
1b1ecca0fa test(frontend): exercise null filter_values guards (code-review pass)
Make the null filter_value tests fail without the guards they cover,
and drop the FilterDrawer fallback the store setters make unreachable.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 14:14:37 -04:00
Georges-Antoine Assi
9ef1a9addd Merge branch 'master' into fix/filter-values-null 2026-09-22 14:07:38 -04:00
Georges-Antoine Assi
d6c314b0cd Merge pull request #4657 from rommapp/claude/persist-tab-title-on-query-nav
fix(frontend): keep the page title across query-only navigations
2026-09-22 13:59:04 -04:00
zurdi
ed3d9a8e11 feat(v2): shorten the changelog's pull request links to #nnnn
GitHub's generated release notes credit each change with the pull
request's full URL, which the changelog dialog printed in full: every
entry wrapped onto a second line of `https://github.com/...`.

Bare pull request and issue URLs are now rewritten the way GitHub
renders them, `#4252` here and `owner/name#12` for another repository,
before the notes reach the markdown preview. A URL that is already a
link, and a deeper page of one (`/files`, `#issuecomment-1`), are left
as they are.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016bZ7R3xC73MZu1vTNuatPK
2026-09-22 19:41:40 +02:00
Georges-Antoine Assi
2e881800de Merge remote-tracking branch 'origin/master' into claude/persist-tab-title-on-query-nav
# Conflicts:
#	frontend/src/plugins/router.test.ts
2026-09-22 13:41:35 -04:00
Georges-Antoine Assi
4aff9675b0 Merge pull request #4660 from rommapp/claude/enable-semgrep-zizmor
chore(security): harden Actions and Renovate, credit Socket in the readme
2026-09-22 13:39:55 -04:00
Georges-Antoine Assi
f4de81a038 Merge pull request #4655 from rommapp/claude/pr-review-comments-gylkhy
fix(tooling): repair mypy's exclude regex and align its version with CI
2026-09-22 13:38:46 -04:00
Sam Dornan
bcb203dc18 fix(v2): declare color-scheme with the v2 theme palettes (#4701)
v2's UA-drawn chrome currently follows Vuetify's runtime theme, which injects
`:root { color-scheme: dark }` while a dark theme is active and nothing at the
root for light. That holds only because RomM.vue keeps vuetifyTheme.change() in
sync, and v1 plus Vuetify are slated for deletion: once their stylesheet is
gone the root is undeclared again, where Chrome falls back to light chrome and
a dark v2 UI gets light form controls.

Declare the scheme next to each palette so it travels in the same scope class
the v2 tokens already own, rather than depending on a v1 framework's runtime
theme.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-22 12:37:34 -05:00
Georges-Antoine Assi
9f907d0068 Merge pull request #4653 from rommapp/claude/session-revocation
fix(security): revoke the target account's sessions on a credential change
2026-09-22 13:34:55 -04:00
Georges-Antoine Assi
763d600bf6 Merge pull request #4643 from andest01/chore/dpdm-circular-deps
fix(frontend): eliminate import cycles and gate them with eslint
2026-09-22 09:33:51 -04:00
Georges-Antoine Assi
e4b341d233 Merge remote-tracking branch 'origin/master' into chore/dpdm-circular-deps
# Conflicts:
#	docs/FRONTEND_ARCHITECTURE.md
2026-09-22 08:59:05 -04:00
Georges-Antoine Assi
728354c157 Merge pull request #4609 from rommapp/claude/css-prefixing-dev-and-prod
build(frontend): prefix CSS in dev as well as production
2026-09-22 08:52:20 -04:00
Georges-Antoine Assi
2d2a8108d5 Merge pull request #4602 from rommapp/claude/njs-vm-init-notice-c4d538
fix(docker): move the bases to Alpine 3.24 and nginx 1.30.5
2026-09-22 08:40:10 -04:00
Georges-Antoine Assi
9a7680778a test(nginx): guard the njs startup notice with a version floor
Addresses Greptile's review: nothing stopped a later NGINX_VERSION pin from
reintroducing the "js vm init njs" notice this PR removes.

njs 0.9.7 dropped the notice, but the njs build is not a function of the nginx
version alone: nginx's apk repo published 1.30.0 against njs 0.9.6 before
rebuilding it against 0.9.7 and 0.9.8, so 1.30.1 is the first release that
never logs it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:23:25 -04:00
Georges-Antoine Assi
e2a1a08ce8 Merge branch 'master' into claude/njs-vm-init-notice-c4d538
master refreshed the Alpine 3.23 digest and added the python-runtime
stage; this branch moves the same pins to Alpine 3.24 and nginx 1.30.5.
Kept 3.24 and re-resolved every tag to its current manifest-list digest,
so the base images carry the patches master was reaching for.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:19:43 -04:00
Georges-Antoine Assi
a5b51e772a Merge pull request #4592 from rommapp/claude/harden-image-and-workflow-permissions
fix(security): patch OS packages in the published image and scope workflow permissions
2026-09-22 08:13:40 -04:00
Georges-Antoine Assi
93681f459c Merge pull request #4596 from LoneAngelFayt/streaming-patches-4
fix(streaming): put every container in a pool, and reach later pools by key
2026-09-22 08:09:52 -04:00
Georges-Antoine Assi
836d88ad64 Merge pull request #4575 from andest01/chore/vite-config-ts
chore: expand ts typecheck to `frontend/scripts/**/*.ts`
2026-09-22 08:09:49 -04:00
Georges-Antoine Assi
9acdca80f1 docs(skills): drop em-dashes from the frontend check list
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 08:05:57 -04:00
Georges-Antoine Assi
b2d5ffb4b4 chore: split the scripts typecheck into its own script
Keep `typecheck` to vue-tsc and move the tsconfig.node.json pass to
`typecheck:scripts`, run as a separate CI step so a failure names the
pass that broke. Drop the JSON-invalid comments from tsconfig.node.json.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-22 07:41:36 -04:00
Sam Dornan
9d5c38926b fix(router): re-read the rom on every entry to the details route (#4685) 2026-09-21 23:17:33 -04:00
Georges-Antoine Assi
92ae617057 fix(player): give every player's Play button a gamepad entry point
A player's setup screen has no spatial navigation for a d-pad to walk, and
useGamepad maps no button to Tab, so the Play CTA is the only way a pad gets
into the view. JsDos and Ruffle never focused it at all, leaving DOS and
Flash games unstartable on a controller; Pico8 and Stream only checked the
modality at mount, so picking up a pad after a mouse click stranded the user
the same way #4397 described.

The behaviour moves into usePlayFocus, which claims the CTA once the screen
is ready, again on a switch to a directional device, and again when a running
game hands the screen back. PlayerShell owns it for the three players it
renders; Stream and EmulatorJS, which lay themselves out, call it directly
and drop their hand-rolled copies.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 21:26:12 -04:00
Georges-Antoine Assi
ed15aacd69 fix(v2): read left-stick motion as pad input
The stick is translated into synthetic Arrow keydowns, which bubble to
useInputModality and read as a keyboard press. Buttons re-assert the pad
right after dispatching; the stick never did, so a stick-only user settled
in "key" modality and the grid-nav autofocus, which only claims a page for
"pad", never fired. Nothing was focused, so the arrows had nowhere to go.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 21:26:03 -04:00
Georges-Antoine Assi
92e5738f39 fix(v2): restore the platforms grid's spatial-nav cell class
Moving PlatformTile onto the shared Tile component dropped its `plat-tile`
root class, which is the cell selector PlatformsIndex hands useWrapGridNav.
The selector has matched nothing since, so the platforms grid has had no
arrow or gamepad navigation and its pad autofocus had no cell to land on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 21:25:57 -04:00
Georges-Antoine Assi
c845f3356a Merge pull request #4668 from rommapp/renovate/github-actions
chore(deps): update astral-sh/setup-uv action to v10.2.0
2026-09-21 21:24:34 -04:00
Georges-Antoine Assi
28417a2967 Merge pull request #4667 from rommapp/claude/draft-announcement-skill
docs: add a draft-announcement skill
2026-09-21 21:24:13 -04:00
Georges-Antoine Assi
f61f900021 docs: fence the announcement skeletons, cover caution callouts
The skeletons were loose markdown, so markdownlint read the `<Feature>`
placeholders as inline HTML and the repeated `## Community news` as duplicate
headings. Fencing both shapes as literal text settles that and marks exactly
what gets copied into Discord.

The section shape now carries the upgrade-warning slot the bullet shape had,
and the notes extraction pulls `[!CAUTION]` alongside `[!WARNING]`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 21:21:25 -04:00
Stuart Anderson
5d94ef45c7 fix(frontend): tolerate null filter_value lists from the API 2026-09-21 20:07:50 -05:00
Sam Dornan
552cf7c213 fix(config): show folder mappings whose folder name is not lowercase (#4676) 2026-09-21 19:52:40 -04:00
renovate[bot]
80b8335139 chore(deps): update astral-sh/setup-uv action to v10.2.0 2026-09-21 20:06:09 +00:00
Georges-Antoine Assi
24bf1cc25d docs: add a draft-announcement skill
Codifies the house format of the Discord release announcements from the
last three years: the timely hook, the upgrade warning, two to five
features in prose with the tail as bullets, community news, and the
pointer to the release notes.

The community news is the half of an announcement no diff contains, so
the skill interviews the maintainer for it one step at a time, and
refuses to invent a contributor, an app, a milestone or a handle.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 15:26:33 -04:00
Georges-Antoine Assi
f4e1ab3846 docs: add a Socket badge to the readme
Socket has been scanning this repo's pull requests for supply chain
risk, under their free open source plan, so it belongs in Supported By.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:47:29 -04:00
Georges-Antoine Assi
95c3aa5df3 ci: hold Renovate updates for 7 days
A release compromised at publish time is usually yanked within days, so
waiting a week before proposing it keeps the window where a malicious
version can land in a PR here closed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:40:02 -04:00
Georges-Antoine Assi
76fd21d9a6 ci: enable zizmor and fix its findings
Adds zizmor to Trunk, which audits GitHub Actions workflows, and clears
the 19 findings it reports:

- Every actions/checkout now sets persist-credentials: false, so the
  token stops being written into .git/config where any later step (or
  an uploaded artifact) could read it.
- Service ports and the release version move from run-block template
  expansions into env vars, keeping expansion out of the shell.
- Frontend Checks drops read-all for the contents: read it actually
  needs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:30:56 -04:00
Georges-Antoine Assi
5c7e3a751a Merge pull request #4659 from rommapp/claude/remove-aikido-badge
docs: drop the Aikido badge from the readme
5.3.0
2026-09-21 07:12:43 -04:00
Georges-Antoine Assi
44962cd046 docs: drop the Aikido badge from the readme
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:05:42 -04:00
Georges-Antoine Assi
281b85b872 fix(frontend): address Greptile review on the route-title guard
Trim the query-only navigation comment to the non-obvious why, and build
the test's route fixtures from `router.resolve` instead of casting bare
literals through `unknown`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 21:03:02 -04:00
Georges-Antoine Assi
625296155f fix(frontend): keep the page title across query-only navigations
Routes whose title is owned by the view (usePageTitle) carry no
meta.title, so the navigation guard reset document.title to "RomM" on
every navigation, including the query-only ones the v2 game details tabs
and the gallery filter syncs make. The view's watcher never refires there
(its source is unchanged), so the title stayed lost.

Fixes #4646

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 14:41:48 -04:00
Sam Dornan
0b37017dcd build: pin mypy to the 2.3 patch line and trim the exclude comment
`~= 2.3` allowed any release below 3.0, so a later `uv lock` could pick
2.4 while Trunk stayed on 2.3.0 and quietly reintroduce the skew this
change exists to remove. `~= 2.3.0` holds the same minor line as Trunk.
The resolved version is unchanged at 2.3.1; only the recorded specifier
moves in the lockfile.

The config comment now states what the current value is rather than what
the previous one did.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SPpv6W2ygP9tQ61fTQxdYp
2026-09-20 17:53:22 +00:00
Sam Dornan
7f5b7bc9d5 build: drop the comment on the mypy pin
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SPpv6W2ygP9tQ61fTQxdYp
2026-09-20 17:47:27 +00:00