Commit Graph

7 Commits

Author SHA1 Message Date
hosseintaromi 5b62d189f8 feat(contact-us): add contact us page and related API endpoints
- Introduced a new Contact Us page with routing and lazy loading.
- Added API routes for fetching and deleting contact messages.
- Updated sidebar to include a link to the Contact Us page.
- Enhanced the shipping methods list page with a report view option for shipments.
- Implemented discount reports functionality in the discount codes section.
- Improved payment statistics with transaction reporting capabilities.

These changes enhance user interaction and reporting features across the application.
2026-01-23 01:01:38 +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 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 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