Fix catalog pages UI issues
All checks were successful
Build Docker Image / build (push) Successful in 5m48s

- Remove counter from /catalog/offers search bar
- Add server-clustering to /catalog/offers/[productId]
- Remove transition animations from Card.vue
- Use client-side clustering for suppliers (data from exchange, not geo)
This commit is contained in:
Ruslan Bakiev
2026-01-19 10:02:41 +07:00
parent 43310f5c28
commit 804bd9c95d
4 changed files with 5 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ const cardClass = computed(() => {
const paddingClass = paddingMap[props.padding] || paddingMap.medium const paddingClass = paddingMap[props.padding] || paddingMap.medium
const toneClass = toneMap[props.tone] || toneMap.default const toneClass = toneMap[props.tone] || toneMap.default
const interactiveClass = props.interactive ? 'cursor-pointer' : '' const interactiveClass = props.interactive ? 'cursor-pointer' : ''
const baseClass = 'card transition-all duration-200' const baseClass = 'card'
return [baseClass, paddingClass, toneClass, interactiveClass].filter(Boolean).join(' ') return [baseClass, paddingClass, toneClass, interactiveClass].filter(Boolean).join(' ')
}) })
</script> </script>

View File

@@ -4,6 +4,8 @@
:loading="isLoading" :loading="isLoading"
:total-count="hubs.length" :total-count="hubs.length"
with-map with-map
use-server-clustering
cluster-node-type="logistics"
map-id="offers-product-hubs-map" map-id="offers-product-hubs-map"
point-color="#10b981" point-color="#10b981"
:hovered-id="hoveredHubId" :hovered-id="hoveredHubId"

View File

@@ -11,11 +11,10 @@
:hovered-id="hoveredProductId" :hovered-id="hoveredProductId"
@update:hovered-id="hoveredProductId = $event" @update:hovered-id="hoveredProductId = $event"
> >
<template #searchBar="{ displayedCount, totalCount }"> <template #searchBar>
<CatalogSearchBar <CatalogSearchBar
v-model:search-query="searchQuery" v-model:search-query="searchQuery"
:displayed-count="displayedCount" :show-counter="false"
:total-count="totalCount"
/> />
</template> </template>

View File

@@ -4,8 +4,6 @@
:map-items="itemsWithCoords" :map-items="itemsWithCoords"
:loading="isLoading" :loading="isLoading"
with-map with-map
use-server-clustering
cluster-node-type="supplier"
map-id="suppliers-map" map-id="suppliers-map"
point-color="#3b82f6" point-color="#3b82f6"
:selected-id="selectedSupplierId" :selected-id="selectedSupplierId"