Show map by default on /catalog, add offersCount to products
All checks were successful
Build Docker Image / build (push) Successful in 3m27s

- Change displayMode from 'hero' to 'map-default' for /catalog
- Always show map on catalog page (fullWidthMap when no selectMode)
- Add offersCount to GetProducts, GetProductsBySupplier, GetProductsNearHub
- Remove CatalogHero from catalog page (hero content stays on /)
This commit is contained in:
Ruslan Bakiev
2026-01-22 17:22:22 +07:00
parent 39f8364edb
commit 062fcd2a50
5 changed files with 17 additions and 14 deletions

View File

@@ -2,7 +2,7 @@ import type { LocationQuery } from 'vue-router'
export type SelectMode = 'product' | 'supplier' | 'hub' | null
export type DisplayMode =
| 'hero'
| 'map-default'
| 'grid-products'
| 'grid-suppliers'
| 'grid-hubs'
@@ -148,8 +148,8 @@ export function useCatalogSearch() {
if (supplierId.value) return 'grid-products-from-supplier'
if (hubId.value) return 'grid-products-in-hub'
// Empty state
return 'hero'
// Default: show map with all offers
return 'map-default'
})
// Check if we're on the main page (not /catalog)