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 toneClass = toneMap[props.tone] || toneMap.default
const interactiveClass = props.interactive ? 'cursor-pointer' : ''
const baseClass = 'card transition-all duration-200'
const baseClass = 'card'
return [baseClass, paddingClass, toneClass, interactiveClass].filter(Boolean).join(' ')
})
</script>

View File

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

View File

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

View File

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