Improve catalog UX: remove category, add offers count, dynamic layout
All checks were successful
Build Docker Image / build (push) Successful in 3m37s
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user