Commit Graph

98 Commits

Author SHA1 Message Date
hosseintaromi dd1d0b02b9 Fix 2025-12-19 22:23:43 +03:30
hosseintaromi 5cb4f76d11 Merge branch 'main' of https://github.com/mazane-front/backoffice 2025-12-19 17:00:35 +03:30
hosseintaromi 6c9ce63815 Updated the stats endpoint path to match backend (/api/v1/admin/checkout/orders/statistics). 2025-12-19 17:00:32 +03:30
hossein taromi 24cf881a24 refactor(tickets): update render functions in TicketConfigPage and TicketsListPage to use specific types for improved type safety 2025-11-25 11:53:46 +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
hossein taromi f4aecefbe7 fix(ui): update JalaliDateTimePicker to handle undefined conversion parameter 2025-10-05 10:14:27 +03:30
hosseintaromi abdf73bcb0 feat(orders): enhance OrderDetailPage UI and set default status in OrdersListPage 2025-10-01 18:19:18 +08:00
hosseintaromi fbffc716ba feat(discount-codes): update DiscountCodeFormPage with date picker and single user selection 2025-10-01 16:43:38 +08:00
hossein taromi f69e48dc0e feat(discount-codes): enhance DiscountCodeFormPage with multi-level application support and validation 2025-09-29 17:28:53 +03:30
hosseintaromi bcb52961a2 feat(discount-codes): add product and category search functionality in DiscountCodeFormPage 2025-09-29 08:02:57 +03:30
hosseintaromi f7e0d7f508 fix(orders): remove country display from OrderDetailPage for cleaner UI 2025-09-27 01:07:39 +03:30
hosseintaromi 0db60dad2d feat(orders): add OrderPaymentRecord interface and enhance OrderDetailPage with payment details 2025-09-27 00:54:31 +03:30
hosseintaromi 5cda2bd5d2 feat(orders): update API routes and enhance order models for improved data handling 2025-09-26 14:14:04 +03:30
hosseintaromi aec7db2c19 Merge branch 'main' of https://github.com/mazane-front/backoffice 2025-09-26 12:17:59 +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
hosseintaromi 07fd4e1d2d feat(orders): optimize API calls and add comprehensive filters
- Update OrderFilters interface to match complete API documentation
- Add all supported query parameters (user_id, invoice_id, transaction_id, discount_code, etc.)
- Optimize useOrderStats to prevent duplicate API calls by making it dependent on orders query
- Add payment status filter to orders list page
- Replace order number search with general search field supporting order numbers, transaction IDs, and discount codes
- Maintain backward compatibility with legacy filter names
- Add stale time to stats query for better caching
2025-09-26 10:17:38 +03:30
hossein taromi ce622057d4 Merge branch 'main' of https://github.com/mazane-front/backoffice 2025-09-20 11:30:25 +03:30
hossein taromi cc12101dbe feat(discount-codes): update DiscountCodeFormPage to include formatted number handling 2025-09-20 11:29:42 +03:30
hosseintaromi e52ea39e60 feat(shipping-methods): add full CRUD scaffolding (list + form), API routes, query keys and React Query hooks; improve dropdown selected contrast; numeric inputs with thousand separators and no default zeros 2025-09-01 01:21:29 +03:30
hossein taromi 9544517fc9 feat(users-admin): implement user management features including list, detail, and form pages 2025-08-31 11:48:14 +03:30
hossein taromi 014b3d3f48 feat(discount-codes): enhance discount code form with accessibility attributes and data-testid 2025-08-31 10:33:39 +03:30
hossein taromi d216a886d0 feat(orders): implement orders pages, update routes, and add order-related API constants 2025-08-30 17:38:19 +03:30
hossein taromi d8b6f2a54f feat(discount-codes): add discount codes pages, routes, and API constants 2025-08-30 17:17:04 +03:30
hossein taromi 8b685c8668 refactor uploader 2025-08-12 13:48:49 +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 e601a2cc5a feat(product-options): add image preview and delete functionality in ProductOptionFormPage 2025-08-11 13:37:59 +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 93b116673e fix: update image handling in ProductOptionFormPage to store file URL instead of internal ID 2025-08-02 21:03:47 +03:30
hosseintaromi 025d9de1d7 feat: add landing hero page and related routes in App, Sidebar, and API constants 2025-08-01 20:06:31 +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 e00eb4a160 chore: add dist folder to .gitignore
- Remove dist/ from version control
- Build artifacts should not be tracked in repository
- Developers can generate fresh builds locally
2025-07-29 09:59:52 +03:30
hosseintaromi a6e59b7c85 perf: optimize bundle size with code splitting and lazy loading
Bundle Size Optimization:
- Add lazy loading for all page components
- Implement Suspense wrapper with loading fallbacks
- Configure manual chunks for vendor libraries
- Separate chart library (recharts) into vendor-charts chunk

Results:
- Split single 950KB bundle into multiple optimized chunks
- Main vendor chunks: React (162KB), Forms (65KB), Charts (402KB)
- Each page loads independently with lazy loading
- Improved initial load time and caching efficiency
- Install terser for better minification

Chunks created:
- vendor-react: React dependencies
- vendor-forms: Form validation libraries
- vendor-query: React Query
- vendor-toast: Toast notifications
- vendor-charts: Chart library (lazy loaded)

This resolves the bundle size warning and improves performance
2025-07-29 09:58:41 +03:30
hosseintaromi 4a0507c09c feat: add AdminUserDetailPage for detailed admin user view
- Implemented AdminUserDetailPage to display user information
- Added loading and error handling states
- Included user roles and permissions display
- Integrated date formatting and status badge components
2025-07-29 09:51:46 +03:30
hosseintaromi 91c2333fb9 build: update production build files
- Update compiled assets after TypeScript error fixes
- Clean and optimized build ready for production
2025-07-29 09:50:26 +03:30
hosseintaromi b287eaa320 chore: update remaining configuration files
- Update routes configuration
- Update roles module hooks, models, and requests
- Ensure all modified files are properly committed
2025-07-29 09:50:23 +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 e0156658a2 fix: update component interfaces and props
Input Component:
- Add icon prop to support icon display

Typography Component:
- Add actions prop to FormHeader for flexible action buttons

Modal Usage:
- Add required title prop to Modal components in Users pages

UserForm Component:
- Add missing props: initialData, onCancel, loading, isEdit
- Support both defaultValues and initialData patterns

These changes resolve TS2741 and TS2322 type errors
2025-07-29 09:49:58 +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 81d9f0fdd2 config: disable unused variables warnings in tsconfig
- Set noUnusedLocals to false
- Set noUnusedParameters to false
- Prevent TypeScript from flagging unused variables as errors
2025-07-29 09:49:38 +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