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
3690a8c1f6
fix
2026-01-24 14:51:27 +03:30
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
6dd2429920
refactor: replace duplicate components and utilities across pages
...
- Replace duplicate skeleton components with TableSkeleton in AdminUsersListPage, ProductOptionsListPage, PermissionsListPage
- Replace duplicate format functions with formatters.ts utilities in OrderDetailPage
- Replace duplicate page headers with PageHeader component
- Replace duplicate empty states with EmptyState component
- Replace duplicate action buttons with ActionButtons component
- Replace duplicate delete modals with DeleteConfirmModal component
- Improve code consistency and maintainability
2026-01-08 17:53:42 +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
eac8e9eb08
refactor(orders): clean up OrderDetailPage layout and improve code readability
...
- Standardize formatting and indentation for better readability
- Enhance the display of order details, including shipping method and delivery slot
- Ensure consistent handling of order properties and conditional rendering
- Update payment section to include payment method and transaction details
2025-12-27 18:03:26 +03:30
hosseintaromi
3467c5e459
feat(orders): add shipping address display to order detail page
2025-12-27 17:59:32 +03:30
hosseintaromi
bdf5ab0c7c
chore(dependencies): update React and related packages to version 19.2.3, and upgrade various dependencies in package-lock.json
2025-12-25 21:52:49 +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
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
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
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
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