Commit Graph

25 Commits

Author SHA1 Message Date
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 ef76defb28 fix 2026-01-08 17:10: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
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 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
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 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
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 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
hossein taromi 8c896c1855 feat(navigation): integrate product management into app navigation
- Add product management section to sidebar with nested menu items
- Include routes for products, categories, and product-options
- Update API routes constants with all new endpoints
- Add corresponding query keys for React Query caching
- Organize navigation with proper icons and hierarchy
2025-07-27 14:46:11 +03:30
hosseintaromi 1074d590a0 config: update API routes and disable cache
- Add all admin users, roles, and permissions API endpoints
- Update backend base URL to staging environment
- Disable React Query cache for fresh data on all requests
- Add query keys for new endpoints
2025-07-22 08:48:20 +03:30
hosseintaromi bdfbef91ac fix(utils): remove withCredentials to fix CORS issue
- Remove withCredentials from axios config to prevent CORS errors
- API authentication will be handled via Authorization header
- Tested working with Postman curl command
2025-07-21 23:49:19 +03:30
hosseintaromi 2a5875fd40 fix(utils): fix APIUrlGenerator undefined base URL issue
- Replace import.meta.env.VITE_APP_BACKEND_BASE_URL with API_GATE_WAY constant
- Ensure API URLs are generated correctly without undefined segments
- Fix API endpoint URL construction
2025-07-21 23:36:13 +03:30
hosseintaromi 40b0e0153f refactor(utils): clean up HTTP service imports
- Remove unused AxiosResponse import
- Optimize TypeScript imports for better build performance
2025-07-18 14:03:09 +03:30
hosseintaromi 50f596c999 feat(config): add roles API routes and query keys
- Add comprehensive roles API endpoints
- Add permissions API endpoint
- Add React Query keys for roles operations
2025-07-18 14:02:50 +03:30
hosseintaromi 0d322f1767 feat(utils): add base HTTP service for API calls
- Add axios-based HTTP service with interceptors
- Add authentication header management
- Add APIUrlGenerator for dynamic URL building
- Support for all HTTP methods (GET, POST, PUT, DELETE, etc.)
- Error handling and automatic logout on 401/403
2025-07-18 13:06:32 +03:30
hosseintaromi d45f588fa7 feat(auth): implement authentication structure
- Add auth helper functions (getAuth, postLogout)
- Add postLogin API request function
- Add useLogin custom hook with React Query
- Update validation schema from email to username
2025-07-18 13:06:06 +03:30
hosseintaromi b15c0ac5ab feat(config): add API configuration and constants
- Add API base URL and routes configuration
- Add environment variables types
- Add query keys for React Query
- Add general variables like pageSize
2025-07-18 13:06:00 +03:30
hosseintaromi 46d9c20d87 Update file structure and improve code organization in the main directory 2025-07-13 22:03:22 +03:30