Files
romm/frontend
Sam Dornan 7e5023be76 feat(frontend): switch similar games between RomM and IGDB sources (#5382)
* feat: add RomM and IGDB similar games source toggle

* Use native RSelect for similar games recommendation source

* Use RomM native sliding segmented control for recommendation source

* test(frontend): drive the similar games source picker through its component

The picker moved to RSliderBtnGroup, which shallowMount stubs, so the
tests could no longer find its buttons. They now emit update:modelValue
on the stubbed group and read its modelValue. Also groups the
similarGamesSource setting with the other game page settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* docs(frontend): describe both similar games sources in GameDetails

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* refactor(frontend): use RSegmentedControl for the similar games source picker

RSliderBtnGroup was renamed to RSegmentedControl in #5383.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* fix(frontend): make the x-small size shrink the tab variant of RSegmentedControl

size="x-small" only had rules for the segmented variant, so the similar
games source picker kept the full 34px tab height beside a 14px heading.
Tab x-small is now a 24px text pill; the explicit height overrides
RBtn's compact density, as the segmented x-small rule already does.
Adds a TabXSmall story.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* chore: add #5382 screenshots for the PR description

Removed again in the next commit; the PR body links them by this
commit's hash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* chore: remove #5382 screenshots from the tree

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* refactor(frontend): drop !important from the x-small tab rule

#5386 removed !important from RSegmentedControl; the x-small tab rule
already out-specifies the base tab rule and RBtn's, so it needs none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

* docs(frontend): shorten the RSegmentedControl size prop comment

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NH5s4h1gm17cCYTX1t7BQX

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 11:06:32 -05:00
..
2026-05-30 20:53:52 -04:00