From 755a92d194df1f60b3383b77e3fc42c806a467c6 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sat, 7 Feb 2026 08:35:22 +0700 Subject: [PATCH] feat(catalog): filter map clusters by chips --- app/components/catalog/InfoPanel.vue | 35 ------------ app/components/catalog/SelectionPanel.vue | 28 --------- app/components/page/CatalogPage.vue | 48 ++++++++++++++-- .../graphql/public/geo-generated.ts | 8 ++- app/composables/useClusteredNodes.ts | 10 +++- app/pages/catalog/index.vue | 57 ++++++++----------- .../public/geo/GetClusteredNodes.graphql | 6 ++ 7 files changed, 89 insertions(+), 103 deletions(-) diff --git a/app/components/catalog/InfoPanel.vue b/app/components/catalog/InfoPanel.vue index da5a520..0cef088 100644 --- a/app/components/catalog/InfoPanel.vue +++ b/app/components/catalog/InfoPanel.vue @@ -116,13 +116,6 @@ :key="product.uuid ?? index" class="relative group" > - - - - - - @@ -326,8 +293,6 @@ const props = defineProps<{ const emit = defineEmits<{ 'close': [] - 'add-to-filter': [] - 'pin': [type: 'product' | 'supplier' | 'hub', item: { uuid?: string | null; name?: string | null }] 'open-info': [type: InfoEntityType, uuid: string] 'select-product': [uuid: string | null] 'select-offer': [offer: { uuid: string; productUuid?: string | null }] diff --git a/app/components/catalog/SelectionPanel.vue b/app/components/catalog/SelectionPanel.vue index 2016d50..4dd6a28 100644 --- a/app/components/catalog/SelectionPanel.vue +++ b/app/components/catalog/SelectionPanel.vue @@ -31,13 +31,6 @@ @mouseenter="emit('hover', item.uuid ?? null)" @mouseleave="emit('hover', null)" > - - - { emit('select', props.selectMode, item) } } - -const onPin = (item: Item) => { - if (props.selectMode && item.uuid) { - emit('pin', props.selectMode, item) - } -} diff --git a/app/components/page/CatalogPage.vue b/app/components/page/CatalogPage.vue index 6a9eaf4..9801721 100644 --- a/app/components/page/CatalogPage.vue +++ b/app/components/page/CatalogPage.vue @@ -71,6 +71,7 @@