Current behaviour:
The Audit Type Register has no filter functionality other than a generic free-text search box.
Required changes:
Implement structured filters on the Audit Type Register, modeled after the Audit Schedule filters.
Filters to add: Audit Type Name, Audit Area, Class, Audit.
Each filter should be a multi-select checkbox list.
Include “Select all” and “Clear all” actions within each filter.
For long lists, add type-ahead search and consider virtualised lists.
Persist filter selections across visits.
On returning to the Audit Type Register, previously selected filters should auto-apply.
Persistence should survive page reloads and normal navigation.
Provide a visible “Reset to default” to clear persisted filters.
Filtering logic:
Within a single filter: OR (any selected value matches).
Across different filters: AND (records must satisfy all selected filter groups).
Confirm this logic matches Audit Schedule behaviour for consistency.
Acceptance criteria:
The Audit Type Register displays filter controls for Audit Type Name, Audit Area, Class.
Users can select multiple values per filter via checkboxes.
Results update correctly according to OR-within/AND-across logic.
Selections persist after reload and navigation; “Clear all” resets current selections; “Reset to default” clears persisted state.
Notes:
Define default state when no persisted filters exist (e.g., no filters applied).
Ensure parity with Audit Schedule components to maximize reuse and consistency.