From 0c931cf457f75bd65870061d35b28e32c360356a Mon Sep 17 00:00:00 2001 From: padreug Date: Mon, 8 Sep 2025 22:13:17 +0200 Subject: [PATCH] Add CreateProductDialog and CreateStoreDialog components - Introduce CreateProductDialog for adding new products with comprehensive form fields including name, price, description, quantity, and active status. - Implement validation using Zod and integrate auto-reply settings. - Add CreateStoreDialog for creating new stores, allowing input for store name, description, currency, and shipping zones. - Enhance user experience with loading states and error handling in both dialogs. - Refactor MerchantStore component to utilize StoreCard for displaying user stalls, improving code organization and readability. These changes enhance the merchant experience by streamlining product and store creation processes, ensuring better validation and user feedback. --- .../market/components/CreateProductDialog.vue | 367 ++++ .../market/components/CreateStoreDialog.vue | 471 +++++ .../market/components/MerchantStore.vue | 1779 +++------------- .../market/components/MerchantStore.vue.bak | 1864 +++++++++++++++++ src/modules/market/components/StoreCard.vue | 69 + 5 files changed, 3021 insertions(+), 1529 deletions(-) create mode 100644 src/modules/market/components/CreateProductDialog.vue create mode 100644 src/modules/market/components/CreateStoreDialog.vue create mode 100644 src/modules/market/components/MerchantStore.vue.bak create mode 100644 src/modules/market/components/StoreCard.vue diff --git a/src/modules/market/components/CreateProductDialog.vue b/src/modules/market/components/CreateProductDialog.vue new file mode 100644 index 0000000..313084a --- /dev/null +++ b/src/modules/market/components/CreateProductDialog.vue @@ -0,0 +1,367 @@ +