diff --git a/app/Catalog/ProductListingPage.php b/app/Catalog/ProductListingPage.php index 7eb3be1..dcf322e 100644 --- a/app/Catalog/ProductListingPage.php +++ b/app/Catalog/ProductListingPage.php @@ -28,10 +28,6 @@ public function __construct( * @param Closure(array): string $url * @param ?int $collectionId scope to a collection, or null for every product * @param ?string $query scope to a text search — when given, calls - * ProductSearchService::search() instead of ProductService::list(). - * ProductSearchService::search() returns the exact same - * Modules\Core\Catalog\DTOs\ProductListingResult list() does, so - * everything below this point is identical either way. * @return array */ public function build(ProductListing $listing, Closure $url, ?int $collectionId = null, ?string $query = null): array @@ -65,8 +61,7 @@ public function build(ProductListing $listing, Closure $url, ?int $collectionId // Slider bounds — the price span of everything matching the *other* // filters, rounded to whole euros, plus whether the current price params - // actually narrow that span. All computed in core now - // (ProductService::priceSliderBounds()). + // actually narrow that span. All computed in core $priceBounds = $result->priceBounds; return [ diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 1044520..7288c10 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -13,8 +13,6 @@ public function show(string $locale) { $query = trim((string) request()->query('q', '')); - // Nothing to search for — send them to the all-products page rather than - // render an empty results page. if ($query === '') { return redirect()->route('products'); } @@ -30,4 +28,4 @@ public function show(string $locale) return view('search.index', [...$data, 'query' => $query]); } -} \ No newline at end of file +} diff --git a/composer.lock b/composer.lock index 3e4e99e..970a0d0 100644 --- a/composer.lock +++ b/composer.lock @@ -515,11 +515,11 @@ }, { "name": "boboko/core", - "version": "0.13.1", + "version": "0.14.0", "source": { "type": "git", "url": "https://code.radical-elements.com/boboko/core.git", - "reference": "e9aa08a3383f9dfa48564fd9b40d2193d5a1d2f3" + "reference": "4ff9bdacc3394bb02537998a2d43adbc2799768a" }, "require": { "laravel/framework": "^12.0", @@ -567,7 +567,7 @@ } }, "description": "Core module — authentication and shared panel behaviour", - "time": "2026-09-03T15:28:22+00:00" + "time": "2026-09-04T10:06:26+00:00" }, { "name": "brick/math",