feat(companies): Add filtering functionality to company list table

- Create CompanyListFilters component with form fields for name, email, phone, currency, and employee count
- Integrate filter modal into CompaniesTable component with open/close state management
- Update useCompanyListPresenter hook to handle filter form state and search parameters
- Replace inline create button with ListHeader component for consistent UI patterns
- Add support for URL-based query parameters to persist filter state
- Implement form reset and filter clearing functionality
- Add isMutating state tracking for loading indicators during filter searches
- Update constants/enums to support currency filtering optionsfor
This commit is contained in:
AmirReza Jamali
2025-11-22 15:48:34 +03:30
parent 7005ab67b7
commit 62981e83e9
4 changed files with 188 additions and 26 deletions
+12
View File
@@ -49,3 +49,15 @@ export enum CustomerType {
COMPANY = "company",
GOVERNMENT = "government",
}
export const Currencies = [
{ label: "USD", value: "USD" },
{ label: "EUR", value: "EUR" },
{ label: "GBP", value: "GBP" },
{ label: "JPY", value: "JPY" },
{ label: "CAD", value: "CAD" },
{ label: "AUD", value: "AUD" },
{ label: "CHF", value: "CHF" },
{ label: "CNY", value: "CNY" },
{ label: "INR", value: "INR" },
{ label: "BRL", value: "BRL" },
];