From be50c8bfd1ae9da499a5eecf19e9ff2a1af4a613 Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Thu, 29 Oct 2026 07:39:22 -0500 Subject: [PATCH] refactor(frontend): rename RSliderBtnGroup to RSegmentedControl (#5383) --- .../src/components/AppShell/AppNav.test.ts | 4 +- frontend/src/components/AppShell/AppNav.vue | 4 +- .../src/components/AppShell/BottomNav.vue | 12 +- .../components/Auth/SetupStepPlatforms.vue | 8 +- .../components/Dialogs/MatchRomDialog.test.ts | 2 +- .../src/components/Dialogs/MatchRomDialog.vue | 4 +- .../src/components/Gallery/FilterDrawer.vue | 8 +- .../components/Gallery/GalleryToolbar.test.ts | 18 +-- .../src/components/Gallery/GalleryToolbar.vue | 10 +- .../Player/LoadSaveStateDialog.test.ts | 4 +- .../components/Player/LoadSaveStateDialog.vue | 4 +- .../components/Player/ResumePanel.stories.ts | 16 ++- .../Settings/PlatformsStatsSection.test.ts | 2 +- .../Settings/PlatformsStatsSection.vue | 8 +- .../components/Settings/SettingsToggleRow.vue | 2 +- .../src/composables/useSaveStateTabs/index.ts | 4 +- frontend/src/lib/index.ts | 2 +- .../src/lib/primitives/RBtn/RBtn.stories.ts | 2 +- frontend/src/lib/primitives/RBtn/RBtn.vue | 2 +- .../RSegmentedControl.stories.ts} | 28 ++--- .../RSegmentedControl.test.ts} | 14 +-- .../RSegmentedControl.vue} | 110 +++++++++--------- .../lib/primitives/RSegmentedControl/index.ts | 2 + .../types.ts | 2 +- .../lib/primitives/RSliderBtnGroup/index.ts | 2 - .../src/lib/primitives/RTabNav/RTabNav.vue | 4 +- frontend/src/views/Player/EmulatorJS.vue | 4 +- frontend/src/views/Player/Stream.vue | 8 +- frontend/src/views/Settings/UserInterface.vue | 4 +- 29 files changed, 152 insertions(+), 142 deletions(-) rename frontend/src/lib/primitives/{RSliderBtnGroup/RSliderBtnGroup.stories.ts => RSegmentedControl/RSegmentedControl.stories.ts} (89%) rename frontend/src/lib/primitives/{RSliderBtnGroup/RSliderBtnGroup.test.ts => RSegmentedControl/RSegmentedControl.test.ts} (80%) rename frontend/src/lib/primitives/{RSliderBtnGroup/RSliderBtnGroup.vue => RSegmentedControl/RSegmentedControl.vue} (82%) create mode 100644 frontend/src/lib/primitives/RSegmentedControl/index.ts rename frontend/src/lib/primitives/{RSliderBtnGroup => RSegmentedControl}/types.ts (81%) delete mode 100644 frontend/src/lib/primitives/RSliderBtnGroup/index.ts diff --git a/frontend/src/components/AppShell/AppNav.test.ts b/frontend/src/components/AppShell/AppNav.test.ts index 2dc6d51d1..03dfb69fd 100644 --- a/frontend/src/components/AppShell/AppNav.test.ts +++ b/frontend/src/components/AppShell/AppNav.test.ts @@ -36,7 +36,9 @@ function scrollWindowTo(y: number) { function mountNav() { return mount(AppNav, { - global: { stubs: { RouterLink: true, RImg: true, RSliderBtnGroup: true } }, + global: { + stubs: { RouterLink: true, RImg: true, RSegmentedControl: true }, + }, }); } diff --git a/frontend/src/components/AppShell/AppNav.vue b/frontend/src/components/AppShell/AppNav.vue index 920c67a55..398b52024 100644 --- a/frontend/src/components/AppShell/AppNav.vue +++ b/frontend/src/components/AppShell/AppNav.vue @@ -20,7 +20,7 @@ import NowPlayingPill from "@/components/Soundtrack/NowPlayingPill.vue"; import { useBreakpoint } from "@/composables/useBreakpoint"; import { useNavDestinations } from "@/composables/useNavDestinations"; import { useNavGlass } from "@/composables/useNavGlass"; -import { RSliderBtnGroup, RImg } from "@/lib"; +import { RSegmentedControl, RImg } from "@/lib"; defineOptions({ inheritAttrs: false }); @@ -71,7 +71,7 @@ const scrolled = computed(
-