wazuh / wazuh-dashboard-plugins

Plugins for Wazuh Dashboard
https://wazuh.com/
GNU General Public License v2.0
433 stars 181 forks source link

Improve available columns filter performance #7073

Open guidomodarelli opened 1 month ago

guidomodarelli commented 1 month ago

Description

Improve available columns filter performance

Image

guidomodarelli commented 3 weeks ago

image

image

image

image

https://github.com/user-attachments/assets/178978d2-fbeb-4cd8-8a44-fed64f3dabc6

JuanGarriuz commented 1 week ago

Hardcoding the column values instead of using useMemo does not affect the response time of the popover loading.

https://github.com/user-attachments/assets/2ce5d4ef-f539-4437-8cae-15d1b8aa9082

Additionally, I’ll link to the Datagrid documentation.

https://oui.opensearch.org/1.5/#/tabular-content/data-grid

Desvelao commented 5 days ago

Reducing the count of columns to display in the columns selector enhances the performance of the component rendering.

For another hand, and as last option, the EuiDataGrid component allows to disable the visibility of default columns selector and allows the addition of controls. This could allow creating a custom columns selector and see if this enhances the performance.