- Introduced an optional `total` field in the `AdminNotificationsResponse` interface to provide the total number of notifications.
- Updated pagination logic in `AdminNotificationsListPage` to utilize the new `total` field for accurate page calculations.
- Adjusted the pagination component to reflect the total number of items based on the presence of the `total` field.
These changes enhance the functionality and user experience of the admin notifications feature.
- 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.
- 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