Currently, we are using the native OpenSearch search bar, and because we need to extend its functions, we are altering its functionality and appearance.
For example, there are filters that are fixed and should not be removable by the user, such as the manager/cluster or the pinned agent. To prevent users from removing these filters, we are modifying the displayed component to hide the remove button. However, in some specific cases, our modification is overwritten, resulting in unexpected behavior.
To address this and provide a more robust solution, we aim to create a new Wazuh Searchbar component that internally handles both fixed and user-added filters and displays them correctly.
Tasks
[x] Create WzSearchbar component
[x] Modify useSearchBar hook to return fixed and user filters
Description
Currently, we are using the native OpenSearch search bar, and because we need to extend its functions, we are altering its functionality and appearance.
For example, there are filters that are fixed and should not be removable by the user, such as the
manager/cluster
or thepinned agent
. To prevent users from removing these filters, we are modifying the displayed component to hide the remove button. However, in some specific cases, our modification is overwritten, resulting in unexpected behavior.To address this and provide a more robust solution, we aim to create a new Wazuh Searchbar component that internally handles both fixed and user-added filters and displays them correctly.
Tasks
WzSearchbar
componentuseSearchBar
hook to return fixed and user filtersWzDiscover
Threat Hunting
Malware Detection
FIM
Mitre Att&ct
Vulnerability Detection
Virus Total
PCI DSS
GDPR
HIPAA
NIST
TSC
Docker
AWS
GC
GH
Office 365
CustomSearchBar
CustomSearchBar