mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 10:32:57 +01:00
* feat(ui/ux): make age rating and player count badges clickable Issue #4805 (item 1): on the game page's default tab the age rating and player count were rendered as static badges, even though both are already supported gallery search filters. Each badge now pivots into the global search scoped to that value, the same pattern InfoGrid already uses for genres/developers/publishers, so the pivot is a real `a[href]` and middle-click/open-in-new-tab keep working. - AgeRatingBadges carries the stored `metadatum.age_ratings` entry on the badge so the link matches the JSON_ARRAY filter, not the reconstructed "CATEGORY: RATING" display label. - PlayerCountBadge pivots on the provider's free-form player-count string, which is what the SCALAR_IN `player_counts` filter matches. * fix(age-ratings): focusable tooltips, typed fixtures, real provider coverage * fix(age-ratings): pr-ready code-review fixes Give each repeated rating its own category badge with a unique key, pass the untrimmed player count so the pivot matches the stored value, drop the custom focus rings in favour of the global one, and test both links against the real searchLocation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(age-ratings): pr-ready simplify pass Build each badge label once, group provider ratings without copying the queue on every insert, and share the mount helper across the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(player-count): pr-ready review-polish comment trim Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore(age-ratings): pr-ready humanizer pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(metadata): trim ScreenScraper and gamelist player counts The player_counts filter is an exact match, so a padded value listed as its own option and missed the player-count badge's search link. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(game-details): match badge hover to the info grid chips Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Yi-111-a <847203299+qQ1AJb@gmail.com> Co-authored-by: Georges-Antoine Assi <contact@me.gantoine.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>