From 3f47d2ff262e6b56e4d0a37c1bdd6a91bf3af26d Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 26 Sep 2025 23:39:08 +0200 Subject: [PATCH] feat: introduce CategoryFilterBar and ProductGrid components for enhanced product filtering and display - Added CategoryFilterBar.vue to manage category filtering with AND/OR toggle options and clear all functionality. - Implemented ProductGrid.vue to display products with loading and empty states, improving user experience. - Refactored MarketPage.vue to utilize the new components, streamlining the layout and enhancing responsiveness. - Updated StallView.vue to incorporate ProductGrid for consistent product display across views. These changes enhance the overall usability and visual appeal of the market components, providing users with a more intuitive filtering and browsing experience. --- .../market/components/CategoryFilterBar.vue | 162 +++++++++++++++ .../market/components/MarketFuzzySearch.vue | 113 +++------- src/modules/market/components/ProductGrid.vue | 92 +++++++++ .../market/components/SearchSuggestions.vue | 76 +++++++ src/modules/market/views/MarketPage.vue | 195 +++++------------- src/modules/market/views/StallView.vue | 42 ++-- 6 files changed, 419 insertions(+), 261 deletions(-) create mode 100644 src/modules/market/components/CategoryFilterBar.vue create mode 100644 src/modules/market/components/ProductGrid.vue create mode 100644 src/modules/market/components/SearchSuggestions.vue diff --git a/src/modules/market/components/CategoryFilterBar.vue b/src/modules/market/components/CategoryFilterBar.vue new file mode 100644 index 0000000..4e26178 --- /dev/null +++ b/src/modules/market/components/CategoryFilterBar.vue @@ -0,0 +1,162 @@ + + + \ No newline at end of file diff --git a/src/modules/market/components/MarketFuzzySearch.vue b/src/modules/market/components/MarketFuzzySearch.vue index 4ad7c14..fb91960 100644 --- a/src/modules/market/components/MarketFuzzySearch.vue +++ b/src/modules/market/components/MarketFuzzySearch.vue @@ -58,67 +58,31 @@ - -
- -
-
Try searching for:
-
- -
-
- - -
-
-
Recent searches:
- -
-
- -
-
-
+ +