feat(customers): Add filtering functionality to customer list table

- Create new CustomerListFilters component with status, role, and type filter options
- Integrate filter modal into customer list table with open/close functionality
- Add filter form handling with react-hook-form for managing filter state
- Implement search functionality triggered by filter form submission
- Add EmptyListWrapper component to display message when no customers found
- Replace inline create button with reusable ListHeader component
- Add clearable select fields for better filter UX
- Update customer table to safely handle optional customer properties
- Add new CustomerStatus and CustomerType enums to support filtering options
- Improve table organization with proper imports and component structure
This commit is contained in:
AmirReza Jamali
2025-11-22 15:22:44 +03:30
parent 1407d93704
commit 7005ab67b7
4 changed files with 278 additions and 105 deletions
+10
View File
@@ -39,3 +39,13 @@ export enum AdminRoles {
ADMIN = "admin",
ANALYST = "analyst",
}
export enum CustomerStatus {
ACTIVE = "active",
INACTIVE = "inactive",
SUSPENDED = "suspended",
}
export enum CustomerType {
INDIVIDUAL = "individual",
COMPANY = "company",
GOVERNMENT = "government",
}