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:
@@ -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",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user