mirror of
https://github.com/rommapp/romm.git
synced 2026-11-28 17:48:31 +01:00
* Let the platforms filter exclude as well as include
The search filter drawer gains an Any/None toggle next to the platforms
select. `GET /api/roms` takes a new `platforms_logic` parameter ("any" or
"none"); "all" is rejected because a rom has one platform.
An exclusion keeps the grouped single-platform cache from answering, is
carried into the filter-values scope, round-trips through the URL, and
is stored on smart collections as `platforms_logic: "none"`. A platform
route always includes its own platform.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
* Rename the filter drawer's "Tags" heading to "Attributes"
The section holds genre, franchise, company, region, status and more,
with "Tag" as just one of its rows, so the heading read as if every row
were a tag. The platforms select joins it as the first row, and the rows
share one column grid so the selects line up even though the platforms
toggle has no "all" button.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
* Fix three gaps in platform exclusion found in review
- A URL with platforms but no platformsLogic now includes them, so
following an inclusion link after an exclusion no longer keeps
excluding. Without platforms the logic is left alone, since it is
never written to the URL then.
- Smart collection criteria give the route's platform priority, as the
gallery request does, so a collection saved on a platform page never
excludes the games on screen.
- The drawer's Reset button resets the platforms toggle to Any.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4icN79J4F1bZ15pmZG
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>