From 7bbfafdba34a9dc9196b186ae7ec8986c0ebd7a0 Mon Sep 17 00:00:00 2001 From: Laura Martinez Garcia Date: Tue, 4 Jun 2024 09:03:05 +0200 Subject: [PATCH] feat: add PartialQueryButton to the playground --- packages/_vue3-migration-test/src/router.ts | 8 ++- .../src/x-modules/search/components/index.ts | 1 + .../components/test-partial-results-list.vue | 50 +++++++++++++++++++ .../src/x-modules/search/x-module.ts | 2 + 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 packages/_vue3-migration-test/src/x-modules/search/components/test-partial-results-list.vue diff --git a/packages/_vue3-migration-test/src/router.ts b/packages/_vue3-migration-test/src/router.ts index 409c149dd9..4d797b67cb 100644 --- a/packages/_vue3-migration-test/src/router.ts +++ b/packages/_vue3-migration-test/src/router.ts @@ -26,7 +26,8 @@ import { TestHighlight, TestBaseResultImages, TestBasePanel, - TestBaseKeyboardNavigation + TestBaseKeyboardNavigation, + TestPartialResultsList } from './'; const routes = [ @@ -164,6 +165,11 @@ const routes = [ path: '/base-keyboard-navigation', name: 'TestBaseKeyboardNavigation', component: TestBaseKeyboardNavigation + }, + { + path: '/partial-results-list', + name: 'PartialResultsList', + component: TestPartialResultsList } ]; diff --git a/packages/_vue3-migration-test/src/x-modules/search/components/index.ts b/packages/_vue3-migration-test/src/x-modules/search/components/index.ts index 32ee402482..b1a112de7d 100644 --- a/packages/_vue3-migration-test/src/x-modules/search/components/index.ts +++ b/packages/_vue3-migration-test/src/x-modules/search/components/index.ts @@ -1,3 +1,4 @@ export { default as TestSortDropdown } from './test-sort-dropdown.vue'; export { default as TestSortList } from './test-sort-list.vue'; export { default as TestSortPickerList } from './test-sort-picker-list.vue'; +export { default as TestPartialResultsList } from './test-partial-results-list.vue'; diff --git a/packages/_vue3-migration-test/src/x-modules/search/components/test-partial-results-list.vue b/packages/_vue3-migration-test/src/x-modules/search/components/test-partial-results-list.vue new file mode 100644 index 0000000000..78d136d273 --- /dev/null +++ b/packages/_vue3-migration-test/src/x-modules/search/components/test-partial-results-list.vue @@ -0,0 +1,50 @@ + + + + + diff --git a/packages/_vue3-migration-test/src/x-modules/search/x-module.ts b/packages/_vue3-migration-test/src/x-modules/search/x-module.ts index dae572726c..2ab2f330a1 100644 --- a/packages/_vue3-migration-test/src/x-modules/search/x-module.ts +++ b/packages/_vue3-migration-test/src/x-modules/search/x-module.ts @@ -3,6 +3,7 @@ import { getBannersStub } from '../../../../x-components/src/__stubs__/banners-s import { getPromotedsStub } from '../../../../x-components/src/__stubs__/promoteds-stubs.factory'; import { PrivateXModuleOptions } from '../../../../x-components/src/plugins'; import { SearchXModule } from '../../../../x-components/src/x-modules/search'; +import { getPartialResultsStub } from '../../../../x-components/src/__stubs__/partials-results-stubs.factory'; export const searchXModule = { storeModule: { @@ -11,6 +12,7 @@ export const searchXModule = { results: getResultsStub(10), promoteds: getPromotedsStub(), banners: getBannersStub(), + partialResults: getPartialResultsStub(), status: 'success' } }