Commit Graph

34 Commits

Author SHA1 Message Date
hosseintaromi fce23a41e2 feat: enhance application with new pages and improved UI components
- Added new pages for Wallet Credit, System Settings, Sales Summary, Profit Loss, Inventory Value, and Variant Comparison reports.
- Introduced Admin Notifications page and integrated it into the sidebar.
- Updated routing to accommodate new report pages and improved navigation structure.
- Enhanced sidebar with scrollbar styles for better usability.
- Implemented new input fields for gold price per gram and factory fee percentage in the Variant Manager.
- Refactored report handling in the Reports page to include new report types and improved filter functionality.

These changes significantly expand the application's reporting capabilities and improve user experience across various components.
2026-02-07 13:08:37 +03:30
hosseintaromi c46fd2ba0e Refactor: Consolidate duplicate code patterns across 20+ pages
- Replace local ToggleSwitch components with shared component (3 pages)
- Consolidate formatDate/formatCurrency functions to formatters.ts (11 pages)
- Replace direct toLocaleDateString calls with formatDate utility (5 pages)
- Standardize PageHeader usage across 8 pages
- Extract ReportSkeleton component for Reports pages (4 pages)

All changes maintain existing functionality and Persian locale formatting.
2026-01-08 18:08:25 +03:30
hosseintaromi 8538d4282e refactor: کامپوننت‌سازی پروژه و حذف کدهای تکراری
- ایجاد کامپوننت‌های قابل استفاده مجدد: PageHeader, FiltersSection, TableSkeleton, EmptyState, DeleteConfirmModal, ActionButtons, StatusBadge
- ایجاد کامپوننت‌های فرم: FormSection, FormActions
- ایجاد utility functions: formatters.ts, statusUtils.ts
- Refactor صفحات لیست: ProductsListPage, CategoriesListPage, DiscountCodesListPage, UsersAdminListPage, RolesListPage, OrdersListPage
- Refactor صفحات فرم: ProductFormPage
- بهبود maintainability و کاهش code duplication
2026-01-08 17:46:40 +03:30
hosseintaromi bfd1ea72a5 fix 2026-01-08 17:36:52 +03:30
hosseintaromi ef76defb28 fix 2026-01-08 17:10:26 +03:30
hosseintaromi 50c6806c3a fix 2025-12-27 22:48:36 +03:30
hosseintaromi de5ab3c476 fix(products): add product_cover_image_id to schema and type definitions 2025-12-25 21:06:26 +03:30
hosseintaromi 3d437aeb53 feat(orders): improve order detail page UI and add payment settings pages
- Add product images display in order items
- Fix payment section overflow issues
- Merge customer and address sections into single card
- Add shipping method and delivery slot display
- Add payment gateway management page (IPG)
- Add wallet management page
- Add card-to-card payment settings page
- Remove coverage column from shipping methods table
- Improve overall layout and responsiveness
2025-12-25 18:15:53 +03:30
hosseintaromi 78b73808e5 fix 2025-12-19 23:54:45 +03:30
hosseintaromi 2fe019ec66 fix 2025-12-19 23:54:34 +03:30
hosseintaromi 30f1e4768a fix 2025-12-19 23:40:01 +03:30
hosseintaromi dd1d0b02b9 Fix 2025-12-19 22:23:43 +03:30
hossein taromi 554f050941 feat(products): enhance ProductDetailPage to support video previews and improve media handling 2025-11-23 15:43:18 +03:30
hossein taromi e4d5ac4736 feat(tickets): implement ticket management features including listing, details, and configuration 2025-11-22 11:58:09 +03:30
hosseintaromi bcb52961a2 feat(discount-codes): add product and category search functionality in DiscountCodeFormPage 2025-09-29 08:02:57 +03:30
hosseintaromi dad0ff292d feat(orders): enhance order detail and list pages with improved data handling and UI updates 2025-09-26 12:16:58 +03:30
hossein taromi 9bf5d63d1b feat(products-list): add pagination to products list and update filter handling 2025-08-11 13:55:41 +03:30
hossein taromi 88ee42e434 feat(products): fix image preview by using public file URL and normalizing edit data 2025-08-11 12:53:05 +03:30
hosseintaromi 2915f4ea10 feat: enhance HeroSliderPage with image preview and improved file handling 2025-08-09 17:31:25 +03:30
hosseintaromi d10b52924c fix: update product variant model to include variant_attribute_name and remove product_option_id 2025-08-01 14:38:46 +03:30
hosseintaromi f63dd99e89 fix: بهبود منطق بارگذاری و استخراج نام ویژگی variant
- اصلاح تبدیل variant images از API response
- افزودن منطق استخراج نام ویژگی از variant_attributes
- بهبود fallback برای نمایش صحیح تصاویر variant در حالت ویرایش
- رفع مشکل خالی بودن فیلد نام ویژگی Variant
2025-08-01 14:38:27 +03:30
hosseintaromi 5bf157219e fix: رفع مشکلات نمایش جزئیات محصول
- اصلاح نمایش دسته‌بندی‌ها با fallback به product_categories
- رفع خطای React hooks order با جابجایی useState
- حل مشکلات TypeScript و نمایش صحیح تمام اطلاعات محصول
2025-08-01 14:38:16 +03:30
hosseintaromi 25429f9745 fix: نمایش صحیح تصاویر هنگام ویرایش variant
- اصلاح منطق بارگذاری تصاویر variant در حالت ویرایش
- افزودن fallback به فیلد files در صورت خالی بودن file_ids
- رفع مشکل نمایش فقط یک تصویر از چندین تصویر آپلود شده
2025-08-01 14:38:04 +03:30
hossein taromi afab715b56 feat: add image preview functionality and improve product detail layout in ProductDetailPage 2025-07-30 17:18:22 +03:30
hossein taromi a851fc4a50 refactor: streamline image and variant handling in ProductDetailPage and ProductsListPage 2025-07-30 17:11:07 +03:30
hossein taromi b97f72aeae fix: improve file_ids handling in VariantManager and ProductFormPage 2025-07-30 14:23:37 +03:30
hossein taromi a228605ba0 refactor: replace images with file_ids in product management components 2025-07-30 14:10:28 +03:30
hosseintaromi 4f4ef51ccc feat: enhance input handling and product management features
- Added numeric input handling in Input component with Persian to English conversion
- Updated MultiSelectAutocomplete styles for dark mode compatibility
- Enhanced VariantManager to support product options and improved variant data handling
- Updated ProductDetailPage and ProductFormPage to display and manage product options
- Improved ProductsListPage to handle numeric filters with Persian number conversion
2025-07-30 08:29:19 +03:30
hosseintaromi 0082da5928 fix: resolve remaining TypeScript errors
- Fix toast context usage in CategoryFormPage
- Add null checks for optional properties (product.price, product.status)
- Fix undefined checks for product_id parameters
- Add type assertion for PRODUCT_TYPE_LABELS indexing
- Fix number/string type conversions in ProductFilters
- Add proper type handling for form validation

All TypeScript compilation errors are now resolved
2025-07-29 09:50:08 +03:30
hosseintaromi 57287c866c feat: update type definitions and models
Product Model:
- Add sku, price, status, category properties
- Add status to ProductFilters interface

Category Model:
- Add parent_id property for hierarchical categories

ProductOption Model:
- Add name property for better identification

These changes resolve TS2339 property errors throughout the application
2025-07-29 09:49:48 +03:30
hosseintaromi 83a400687e fix: remove unused imports to resolve TS6133 errors
- Remove unused React imports from components
- Remove unused icon imports (User, Mail, Phone, Search, etc.)
- Remove unused component imports (Button, LoadingSpinner, etc.)
- Remove unused type imports (LoginRequest)
- Clean up import statements across all pages and components
2025-07-29 09:49:27 +03:30
hossein taromi 88958ee63a feat: add remaining UI improvements and new features
- Add cypress test configuration and e2e tests
- Update various components styling and functionality
- Add product detail page and other new features
- General codebase improvements and fixes
2025-07-28 13:22:44 +03:30
hosseintaromi b3c3a8afd0 fix(product-options): update API routes and enhance product option models 2025-07-28 09:11:08 +03:30
hossein taromi 87213732a2 feat(products): implement comprehensive product management system
- Add complete product models matching API structure exactly
- Implement products list page with advanced filtering and search
- Add comprehensive product form with all API fields:
  * Basic info (name, description, design_style, type, enabled)
  * Multi-category selection with search
  * Product options integration
  * Custom attributes management
  * Image upload with preview
  * Variants management with full specification
- Include PRODUCT_TYPES constants and labels
- Support for simple, variable, grouped and external products
2025-07-27 14:45:57 +03:30