From a75982f8efe743cc76e7b0b6193021c2f0820731 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 26 Sep 2025 00:08:25 +0200 Subject: [PATCH] Add CategoryInput component for category management in CreateProductDialog - Introduced a new CategoryInput component to facilitate category selection with suggestions and popular categories. - Updated CreateProductDialog to integrate the CategoryInput, enhancing the user experience for adding product categories. - Improved accessibility and usability by allowing users to add categories via keyboard shortcuts and providing visual feedback for selected categories. These changes enhance the product creation process by streamlining category management. --- .../market/components/CategoryInput.vue | 286 ++++++++++++++++++ .../market/components/CreateProductDialog.vue | 16 +- 2 files changed, 297 insertions(+), 5 deletions(-) create mode 100644 src/modules/market/components/CategoryInput.vue diff --git a/src/modules/market/components/CategoryInput.vue b/src/modules/market/components/CategoryInput.vue new file mode 100644 index 0000000..e836320 --- /dev/null +++ b/src/modules/market/components/CategoryInput.vue @@ -0,0 +1,286 @@ + + + + + \ No newline at end of file diff --git a/src/modules/market/components/CreateProductDialog.vue b/src/modules/market/components/CreateProductDialog.vue index de94285..b1f07c5 100644 --- a/src/modules/market/components/CreateProductDialog.vue +++ b/src/modules/market/components/CreateProductDialog.vue @@ -104,14 +104,19 @@ - + Categories Add categories to help customers find your product -
- -

Category management coming soon

-
+ + +
@@ -202,6 +207,7 @@ import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { Textarea } from '@/components/ui/textarea' import { Checkbox } from '@/components/ui/checkbox' +import CategoryInput from './CategoryInput.vue' import { FormControl, FormDescription,