Improve catalog UX: remove category, add offers count, dynamic layout
All checks were successful
Build Docker Image / build (push) Successful in 3m37s

- ProductCard: remove category field, add offersCount display
- CatalogPage: add fullWidthMap prop for map-only view
- catalog/index: pass fullWidthMap based on selectMode
- i18n: add offers pluralization
This commit is contained in:
Ruslan Bakiev
2026-01-22 16:59:33 +07:00
parent 6da5bf10c9
commit 39f8364edb
5 changed files with 41 additions and 10 deletions

View File

@@ -5,6 +5,7 @@
:total-count="currentItems.length"
:grid-columns="3"
:with-map="showMap"
:full-width-map="fullWidthMap"
:use-server-clustering="useServerClustering"
:cluster-node-type="clusterNodeType"
map-id="unified-catalog-map"
@@ -126,6 +127,10 @@ const cardType = computed(() => {
const showMap = computed(() => displayMode.value !== 'hero')
// Full width map when not in select mode (after filter is selected)
// selectMode is active = grid + map, after selection = only map
const fullWidthMap = computed(() => !selectMode.value && displayMode.value !== 'hero')
// Use server clustering for grids that need it
const useServerClustering = computed(() => {
// Products grid - show offers clusters