Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vulnerability detection card in agent overview #7085

Merged
merged 26 commits into from
Oct 29, 2024

Conversation

Machi3mfl
Copy link
Member

@Machi3mfl Machi3mfl commented Oct 8, 2024

Description

This PR, adds the new vulnerability detection card in the agent overview section.
Also, create the necessary components

Closes #7058

Evidence

Screenshot 2024-10-08 at 5 59 58 PM Screenshot 2024-10-09 at 8 22 20 AM
Screen.Recording.2024-10-09.at.8.25.08.AM.mov
Screen.Recording.2024-10-09.at.8.37.58.AM.mov
Screen.Recording.2024-10-09.at.8.56.58.AM.mov

Test

Test

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned
Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned
Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned
Check the entire agent's overview responsive layout
Change the pinned agent and check if the vulnerability detection panel data change
Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Agent overview. The index pattern must be created
Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Vulnerability detection Dashboard. The index pattern must be created

Check List

  • All tests pass
    • yarn test:jest
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

@Machi3mfl Machi3mfl linked an issue Oct 8, 2024 that may be closed by this pull request
4 tasks
@chantal-kelm chantal-kelm self-requested a review October 14, 2024 18:36
chantal-kelm
chantal-kelm previously approved these changes Oct 14, 2024
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Chrome Firefox Safari
Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned 🟢
Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned 🟢
Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned 🟢
Check the entire agent's overview responsive layout 🟢
Change the pinned agent and check if the vulnerability detection panel data change 🟢

Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned

Grabacion.de.pantalla.2024-10-14.a.la.s.3.56.07.p.m.mov

Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned

Grabacion.de.pantalla.2024-10-14.a.la.s.3.58.32.p.m.mov

Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned

Grabacion.de.pantalla.2024-10-14.a.la.s.3.59.55.p.m.mov

Check the entire agent's overview responsive layout

Grabacion.de.pantalla.2024-10-14.a.la.s.4.03.03.p.m.mov

Change the pinned agent and check if the vulnerability detection panel data change

Grabacion.de.pantalla.2024-10-14.a.la.s.4.16.27.p.m.mov

@guidomodarelli
Copy link
Contributor

If you haven't set a dataSource, the result is undefined.

If you don't have the index or indexPattern, you should handle the error, as the result will be undefined.

image

@guidomodarelli
Copy link
Contributor

guidomodarelli commented Oct 16, 2024

If you have the indexPattern but not the index, the filters are not set.

Peek.2024-10-16.10-21.mp4

@guidomodarelli
Copy link
Contributor

guidomodarelli commented Oct 25, 2024

Test Chrome Firefox Safari
Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned 🟢 🟢
Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned 🟢 🟢
Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned 🟢 🟢
Check the entire agent's overview responsive layout 🟢 🟢
Change the pinned agent and check if the vulnerability detection panel data change 🟢 🟢
🟢 Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned

Chrome - 🟢

Peek.2024-10-25.12-37.mp4

Firefox - 🟢

Peek.2024-10-25.12-39.mp4
🟢 Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned

CHROME - 🟢

Peek.2024-10-25.13-44.mp4

FIREFOX - 🟢

Peek.2024-10-25.13-45.mp4
🟢 Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned

Chrome - 🟢

Peek.2024-10-25.12-44.mp4

FIREFOX - 🟢

Peek.2024-10-25.13-22.mp4
🟢 Check the entire agent's overview responsive layout

CHROME - 🟢

Peek.2024-10-25.13-28.mp4

FIREFOX - 🟢

Peek.2024-10-25.13-40.mp4
🟢 Change the pinned agent and check if the vulnerability detection panel data change

CHROME - 🟢

Peek.2024-10-25.13-41.mp4

FIREFOX - 🟢

Peek.2024-10-25.13-43.mp4

@guidomodarelli
Copy link
Contributor

guidomodarelli commented Oct 28, 2024

Test

Legend:
⚫: none
🟢: pass
🟡: warning
🔴: fail
⚪: not applicable

UI

Test Chrome Firefox Safari
Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Agent overview. The index pattern must be created 🟢
Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Vulnerability detection Dashboard. The index pattern must be created 🟢
🟢 Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Agent overview. The index pattern must be created

CHROME - 🟢

Peek.2024-10-28.11-01.mp4

FIREFOX - ⚫

SAFARI - ⚫

🟢 Remove vulnerabilities index pattern (Dashboard Management > Index Patterns) and enter in Vulnerability detection Dashboard. The index pattern must be created

CHROME - 🟢

Peek.2024-10-28.11-03.mp4

FIREFOX - ⚫

SAFARI - ⚫

chantal-kelm
chantal-kelm previously approved these changes Oct 28, 2024
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test Chrome Firefox Safari
Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned 🟢
Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned 🟢
Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned 🟢
Check the entire agent's overview responsive layout 🟢
Change the pinned agent and check if the vulnerability detection panel data change 🟢

Click on Vulnerability KPIs and check if redirects to the dashboard with filters and agent pinned

Grabacion.de.pantalla.2024-10-28.a.la.s.4.46.06.p.m.mov

Click on the Top Packages table link and check if it redirects to the dashboard with filters and agent pinned

Grabacion.de.pantalla.2024-10-28.a.la.s.4.46.31.p.m.mov

Click on the Vulnerability detection panel link and check if it redirects to the dashboard with the agent pinned

Grabacion.de.pantalla.2024-10-28.a.la.s.4.48.57.p.m.mov

Check the entire agent's overview responsive layout

Grabacion.de.pantalla.2024-10-28.a.la.s.4.52.40.p.m.mov

Change the pinned agent and check if the vulnerability detection panel data change

Grabacion.de.pantalla.2024-10-28.a.la.s.4.54.48.p.m.mov

@chantal-kelm chantal-kelm self-requested a review October 29, 2024 15:52
chantal-kelm
chantal-kelm previously approved these changes Oct 29, 2024
Copy link
Contributor

Wazuh Check Updates plugin code coverage (Jest) test % values
Statements 76.44% ( 172 / 225 )
Branches 58.65% ( 61 / 104 )
Functions 61.7% ( 29 / 47 )
Lines 76.44% ( 172 / 225 )

Copy link
Contributor

Wazuh Core plugin code coverage (Jest) test % values
Statements 45.5% ( 400 / 879 )
Branches 41.09% ( 157 / 382 )
Functions 43.87% ( 136 / 310 )
Lines 45.69% ( 398 / 871 )

@chantal-kelm chantal-kelm self-requested a review October 29, 2024 16:50
Copy link
Member

@chantal-kelm chantal-kelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: ✅
TEST: ✅

Grabacion.de.pantalla.2024-10-29.a.la.s.1.50.04.p.m.mov
Grabacion.de.pantalla.2024-10-29.a.la.s.1.50.27.p.m.mov
Captura de pantalla 2024-10-29 a la(s) 1 50 46 p  m

Copy link
Contributor

Main plugin code coverage (Jest) test % values
Statements 14.71% ( 4372 / 29719 )
Branches 9.7% ( 1870 / 19260 )
Functions 14.47% ( 1038 / 7172 )
Lines 14.91% ( 4264 / 28590 )

Copy link
Member

@asteriscos asteriscos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CR: 🟢
Test: 🟢

Vulnerabilities card links

Peek.2024-10-29.17-58.mp4

Agent dashboard view

localhost_5601_app_endpoints-summary

localhost_5601_app_endpoints-summary (1)

localhost_5601_app_endpoints-summary (2)

@asteriscos asteriscos merged commit 11cb294 into 4.10.0 Oct 29, 2024
5 checks passed
@asteriscos asteriscos deleted the enhancement/7058-vuls-card-agent-overview branch October 29, 2024 17:08
asteriscos added a commit that referenced this pull request Nov 5, 2024
* Bump 4.10.0 rev 03 (#7110)

chore: bump 4.10.0 rev 03

* Substitute warning icon in events view (#7057)

* Sustitude warning icon

* Update Changelog

* Change to iInCircle

* Solve aria-label comments and fixed icon centered with text

* Solve aria-label nitpick

* fix: aria-label in some buttons

* fix: aria-label

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>

* Fix scroll in vulnerabilities inventory table (#7118)

* Remove fixed height in Vulnerabilities Inventory table

* Add changelog

* Fix ability to filter form FIM details (#7119)

* fix(fim): fix ability to filter from flyout details in FIM inventory

- Fix FIM inventory flyout filters for Files and Registry tabs
- Add ability to filter from Last analysis and Last modified fields from
  Registry details
- Add ability to select the visible columns in the Files and Registry
  tables
- Add to Files table the columns: date (hidden), md5 (hidden), sha1 (hidden), sha256 (hidden)
- Add to Registry table the columns: date (hidden)
- Renamed Last Modified to Last modified in the Files table

* chore(changelog): add entry

* Remove processes state column in macOS agents (#7122)

* Refactor process column mapping to use a dedicated function for improved readability and maintainability

* Update CHANGELOG to document removal of processes state column in macOS agents (#7122)

* Refactor process column mapping to use `mapColumns` for consistency across OS implementations and enhance code clarity

* Remove unused 'State' column from inventory snapshot for better clarity in agent rendering tests

* Fix agents chart loading state (#7120)

* Fix agents chart loading state

* Add changelog

* Create agents management menu and move sections (#7112)

* create agents management menu and move sections

* update changelog

* move sections to a different location

* Changes in the categories

* changes in the categories

* changes in the categories

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>

* Bump 4.9.2 rev 00 (#7126)

* chore: bump 4.9.2 rev 00

* chore(changelog): add entry

* feat(bump): add ability to edit the imposter specification file reference on bump script of main plugin

* Fix vulnerability inventory table scroll (#7128)

* Fix vulnerability inventory table scroll

* Add changelog

* Fixed border on cells in events disappear (#7075)

* Overwrite eui styles

* Added changelog

* Solve styles

* Change border per shadow-box

* Fix changelog

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Bump 4.9.2 rev01 (#7134)

chore: bump 4.9.2 rev01

* Redesign inventory, stats and configuration page to use tabs (#7089)

* Add toTitleCase function for changing text to title case

* Update MainModuleAgent component to display section in EuiTabs

* Update module.scss styles for module header agent

* Change stats page to use tabs in Wazuh app

* Refactor useAsyncAction function with TypeScript

* Refactor AgentsWelcome component structure and layout

* Refactor conditional rendering logic for main agent module

* Remove unused EuiTitle import and euiThemeVars

* Add EuiPanel around AgentInfo component in MainModuleAgent

* Update indexPattern access to handle null values safely

* Fix Prettier issue

* Remove global breadcrumb from MainModuleAgent component

* Update AgentStats component with AgentInfo component

* Add AgentInfo component and update configuration options

* Fix Prettier issue

* Update stats and configuration page to use tabs

* feat: add AgentInfo component to display agent details with customizable stats and styling. Includes initial SCSS for layout

* fix: update import path for AgentInfo and adjust EuiSpacer size to improve layout in agent stats component

* style: add overflow-y auto to visualization layout for improved scroll handling on small screens

* refactor: simplify layout in SyscollectorInventory by removing unnecessary EuiFlexGroups for better readability and performance

* refactor: remove unused styles in welcome component for cleaner SCSS and enhanced maintainability

* refactor: update import path for AgentInfo in agents-welcome for improved file organization and clarity

* refactor: remove unused .wz-module-header-agent styles for cleaner SCSS and improved code maintainability

* refactor: remove unused import of Agent in endpoints-summary for cleaner code and improved maintainability

* refactor: simplify MainModuleAgent component by removing unnecessary class for cleaner markup and improved readability

* refactor: enhance SyscollectorInventory with EuiPanel and AgentInfo for improved layout and readability

* refactor: update import path for AgentInfo to improve module structure and clarity in main-agent component

* refactor: use clsx for conditional class assignment in MainModuleAgent component for cleaner markup and improved maintainability

* refactor: adjust margin for .wz-module-header-agent to improve layout consistency in module.scss

* refactor: fine-tune margin for EuiFlexItem in MainModuleOverview to enhance layout consistency and visual alignment

* refactor: refine EuiFlexGroup and EuiFlexItem margins in MainModuleAgent for better layout consistency and visual alignment

* refactor: update SyscollectorInventory to use EuiPage for improved layout structure and consistency in inventory.tsx

* refactor: update Prettier and VSCode settings for consistent formatting and improved layout with adjusted print width and arrow parens

* refactor: adjust font size and weight for .euiTab__content in module.scss to enhance layout and text readability

* refactor: streamline MainModuleAgent component by simplifying conditional rendering and enhancing code readability

* refactor: simplify component structure by removing unnecessary divs and styles related to agent info for cleaner code and UI

* refactor: remove padding and min-height from welcome agent tabs for a cleaner dark theme UI design

* refactor: remove unused variable in AgentsWelcome component for improved code clarity and maintainability

* refactor: add margin-right to ButtonExploreAgent for better alignment in AgentsWelcome component UI

* refactor: simplify import statements and improve code consistency in AgentsWelcome component for better readability and maintainability

* refactor: adjust indentation for improved readability in MainModuleAgent component's JSX structure

* refactor: streamline formatting and improve readability in AgentInfo component's JavaScript logic and JSX structure

* refactor: update marginTop style in MainModuleAgent component for better visual alignment in the rendered output

* feat: add SECTIONS enum to define constants for different sections in the application for improved organization and clarity

* feat: create AgentTabs constants for improved organization of agent-related sections in the application

* refactor: remove unused sections constants from WzMenu for cleaner code and improved maintainability

* feat: integrate AgentTabs constants into AgentsWelcome for consistent tab handling and cleaner code structure

* fix: update Endpoint summary link to use constants for navigation and improve consistency in routing across the application

* feat: enhance routing in AgentView by utilizing AgentTabs constants for improved navigation consistency and cleaner code structure

* refactor: streamline AgentView implementation by consolidating imports and utilizing AgentTabs for cleaner tab management

* refactor: replace hardcoded route paths with SECTIONS constants for improved maintainability and consistency in app-router.tsx

* refactor: update MainModuleAgent to use AgentTabs for improved tab management and clean up loading state handling

* refactor: optimize ButtonExploreAgent rendering and streamline ComplianceTable component usage for cleaner code structure

* feat: add Network component for displaying agent network details, including interfaces, ports, and settings in a structured layout

* feat: introduce Software component to display agent software details, including platform-specific packages and updates management

* feat: enhance AgentView to include MainSyscollector and enable switchTab functionality for improved agent details display

* feat: update MainModuleAgent to support switchTab functionality for improved navigation across agent sections

* feat: refactor SyscollectorInventory to conditionally render Software and Network components based on selected section

* feat: simplify imports and adjust layout in SyscollectorInventory for improved readability and structure

* feat: rename Network and Software components to NetworkTab and SoftwareTab for consistency and clarity in SyscollectorInventory

* feat: add ProcessesTab component to Syscollector for displaying agent processes within the inventory view

* feat: refactor SyscollectorInventory to improve component imports and update layout for better structure and readability

* feat: update CHANGELOG to reflect change of inventory, stats, and configuration pages to use tabs for improved navigation

* feat: clean up SyscollectorInventory layout by removing redundant direction prop in EuiFlexGroup components for better clarity

* feat: streamline component imports and formatting in various files for improved code cleanliness and consistency

* Revert prettier file

* Revert Prettier and .vscode/settings.json

* Revert ,vscode/settings.json

* Fix Prettier issue

* Refactor MainModuleAgent to use inventoryTabs for rendering tabs dynamically

* Update inventory tests to use AgentTabs for network section rendering in SyscollectorInventory

* Update inventory snapshots and tests for network ports table rendering across agents with correct titles and columns

* Update inventory snapshots and tests for network interfaces and settings table rendering with correct titles and columns across agents

* Refactor inventory tests to enhance structure and maintainability for network settings and interfaces rendering across agents

* Update inventory snapshots and tests for software and Windows updates tables, ensuring correct rendering across agents with titles and columns

* Update inventory snapshots and tests for processes table rendering, ensuring correct columns and titles for all agent types

* Add data-test-subj for agent info in snapshots and tests, ensuring accurate rendering for Linux, Windows, and Apple agents

* Refactor agent-stats component by removing redundant statsAgents definition, simplifying header column structure for better clarity

* Add tests for AgentStats component, ensuring it correctly renders agent info and integrates with mock services

* Add tests for WzConfigurationSwitch component, ensuring it correctly renders agent info and integrates with mock services

* Add data-test-subj attributes to multiple table components for improved testing consistency in snapshots

* Fix Prettier issue

* Enhance type annotations in ReportingService for improved clarity and TypeScript compatibility

* Add data-test attributes for improved testing in MainModuleAgent and GenerateReportButton components

* Improve type safety in MainModuleAgent and GenerateReportButton by specifying Agent type for agent prop

* Remove unused imports and instances of ReportingService and FilterHandler in MainModuleAgent for cleaner code

* Remove unused imports in MainModuleAgent for cleaner code and improved maintainability

* Remove unused state property 'switchModule' in MainModuleAgent for cleaner code and improved maintainability

* Remove unused state property 'selectView' in MainModuleAgent for cleaner code and improved maintainability

* Fix optional chaining for renderTabs method in MainModuleAgent to improve code robustness and maintainability

* Refactor tab layout in MainModuleAgent for improved readability and consistent formatting in JSX structure

* Add unit tests for MainModuleAgent to validate tab rendering behavior across sections for better test coverage and reliability

* Add unique key prop to EuiTab in MainModuleAgent for better performance and to prevent React warnings during rendering

* Update MainModuleAgent and tests for dynamic report tab rendering based on section, ensuring accurate content display

* Refactor MainModuleAgent tests to use Testing Library, improving readability and adding click handler verification for tab switching

* Refactor WzConfigurationSwitch tests to use Testing Library, enhancing clarity and ensuring proper agent info rendering

* Refactor MainAgent tests to use constants for report tab identifiers, enhancing readability and maintainability of the tests

* Refactor AgentStats tests to utilize queryDataTestAttr for agent info, enhancing test readability and maintainability

* Refactor AgentStats test to use container and queryDataTestAttr, improving test readability and maintainability

* Fix Prettier issue

* Update report tab constants in main-agent tests for consistency with new naming conventions

* Refactor AgentStats test to use wrapper for querying agent info, enhancing readability and maintainability

* Enhance WzManagementConfiguration to always show agent info and improve conditionals in WzConfigurationSwitch for better clarity

* Add data-test-subj to EuiSpacer and update tests for WzConfigurationSwitch to handle showAgentInfo condition better

* Remove outdated group display logic in WzConfigurationSwitch to improve component clarity and reduce unnecessary complexity

* Fix Prettier issue

* style(visualizations): remove overflow-y property from visualization layout for better responsiveness on small screens

* refactor(configuration-switch): streamline agent grouping display and remove redundant agent info section from component and tests

* refactor(agent-stats): enhance stats display with structured fields and loading spinner, removing old agent info test case

* refactor(main-agent): simplify section checks by limiting tabs to SOFTWARE, NETWORK, and PROCESSES for improved readability and performance

* refactor(main-agent): destructure props for improved readability and simplify tab checks in rendering logic

* test(main-agent): add tests to verify absence of generate report button and agent info ribbon in WzConfigurationSwitch component

* test(inventory): remove STATE column from processes table test for accurate representation of data

* test(agent-stats): add tests to verify absence of generate report button and agent info ribbon in AgentStats component

* test(agent-stats): simplify imports in agent-stats test file for cleaner code organization

* fix(wz-text-with-tooltip): refactor props interface and clean up component for better readability and maintainability

* fix(group-truncate): update filterAction type and simplify action function for improved clarity and type safety

* refactor(agent-info): migrate agents-info.js to TypeScript for improved type safety and maintainability

* refactor(agent-info): rename agents-info to agent-info for consistent naming and improved clarity in imports

* fix(group-truncate): make action type explicit and handle optional filterAction for better clarity and type safety

* refactor(agent-info): rename checkField to renderField for improved clarity in rendering agent information

* refactor(agent-info): simplify getOsName method for clearer logic and improved readability of OS name and version handling

* refactor(agent-status): enhance type safety in AgentStatus props and clarify status handling with TypeScript types

* refactor(agent-info): streamline agent stats structure and replace WzStat with RibbonItem for better component organization

* refactor(agent-info): update labels to use RibbonItemLabel constants for improved consistency and clarity in agent stats display

* refactor(agent-info): simplify agent stats display by replacing specific fields with the entire agent object for consistency

* refactor(api-response): add api_version field to IData interface for better API version management and clarity

* refactor(agent-info): remove direct agent reference from RibbonItem, enhancing component flexibility and consistency

* feat(ribbon-item): implement RibbonItem component for enhanced display of agent information with flexible styling and tooltips

* refactor(ribbon-item): rename renderTitle to renderValue for improved clarity in value rendering logic

* feat(ribbon): add Ribbon component for flexible ribbon layout, enhancing agent info display in the application

* refactor(ribbon-item): rename class from wz-agent-info to wz-ribbon-item for better consistency in styling across components

* refactor(ribbon): rename Ribbon to WzRibbon for consistent naming across components and improve clarity in the codebase

* refactor(syscollector-metrics): simplify rendering by utilizing WzRibbon for improved readability and maintainability

* refactor(inventory): replace AgentInfo with InventoryMetrics to streamline inventory rendering and enhance code clarity

* refactor(ribbon): add loading state and improve structure by wrapping WzRibbon in EuiPanel for better layout management

* refactor(syscollector-metrics): streamline imports and use lodash directly for emptiness checks to enhance code clarity

* refactor(syscollector-metrics): replace static label with constant for improved consistency and maintainability

* refactor(syscollector-metrics): increase maxWidth for CPU styling to improve display consistency in metrics component

* refactor(ribbon-item): enhance OS detection by adding support for Ubuntu in the ribbon item component

* refactor(ribbon-item): adjust styling to incorporate font size constant and optional style for better design adaptability

* refactor(ribbon-item): add optional icon property to ribbon items for improved visual representation in the UI

* refactor(agents-welcome): simplify layout by removing unnecessary EuiPanel wrapper around AgentInfo component

* refactor(main-agent): streamline rendering logic by removing redundant state and simplify component structure for better readability

* refactor(ribbon): add unique keys for ribbon items to enhance rendering performance and avoid React warnings

* refactor(syscollector-metrics): add unique keys to ribbon items for improved rendering and to eliminate React warnings

* refactor(agent-stats): replace panel with WzRibbon for better presentation and streamline loading state rendering logic

* Fix Prettier issue

* refactor(ribbon): add SCSS styling for ribbon item and remove unused agent info styles to streamline components

* refactor(syscollector): replace EuiPanel with EuiPageBody for improved layout and streamline agent status display logic

* style(constants): fix formatting issue in AGENT_STATUS_CODE array to align with code style guidelines

* chore(tests): update snapshots and refactor inventory tests for better consistency and maintainability

* Fix Prettier issue

* feat(tests): enhance WzConfigurationSwitch tests and add CSS selector utility for querying test attributes

* feat(ui): rename report-tabs to agent-tabs for improved clarity in MainModuleAgent component

* feat(tests): update test descriptions and selectors to reflect renaming of report tabs to agent tabs in MainModuleAgent tests

* feat(tests): refine agent-stats and main-agent tests to include checks for generate report button presence and descriptions

* feat(tests): add inventory metrics tests for Debian agent in SyscollectorInventory components across software, network, and processes sections

* feat(tests): improve selector readability in main-agent tests by extracting aria-selected constant for consistency

* feat(tests): enhance main-agent tests with comprehensive coverage for all tab sections and generate report button assertions

* feat(tests): add ribbon rendering tests in AgentStats to ensure accurate display of status and metrics attributes

* fix(tests): correct syntax in AgentStats test for improved readability and maintainability of ribbon item assertions

* feat(tests): add unit tests for InventoryMetrics to validate rendering of syscollector metrics and ribbon items

* fix(wz-agents): change agent parameter type to optional for better flexibility in getAgentOSType function

* fix(agent-info/syscollector): update labels and key assignments for better clarity in metrics display and styling adjustments

* fix(ribbon): adjust padding size and justify content for better layout in the ribbon component

* fix(ribbon): update label formats to lowercase and switch from label to key for item identification in ribbon component

* fix(ribbon): add conditional rendering to prevent empty icon display in ribbon item component

* fix(agent-group-truncate): enhance button styling with specified font weight and size for improved consistency

* fix(snapshot): update ribbon item data-test attribute to reflect correct label for operating system and adjust styles accordingly

* fix(reporting): change default value of agents parameter from string to false in startVis2Png method

* fix(agent): remove unnecessary prop from WzManagementConfiguration in AgentView component

* fix(ribbon): rename STATUS label to AGENT_STATUS in ribbon and agent info components

* fix(agent-info): update label casing for agent status and group in AgentInfo component

---------

Co-authored-by: Chantal Belén kelm <[email protected]>

* Add filter by value to document details fields (#7081)

* Refactor filter button actions in DocViewer

* Add Doc Viewer styles and import to Doc Viewer component

* Refactor cell filter actions to use 'field' instead of 'columnId'

* Refactor filtering logic in DocViewer component

* Add onFilterHandler to DocViewer component

* Add onFilter handler to various components

* Refactor RequirementFlyout component for readability

* Add filter functionality to inventory vulnerabilities dashboard

* Remove unused code related to doc viewer in WazuhDataGrid

* Add setFilters function to FileDetails and RequirementFlyout

* Refactor doc-viewer styles for button display

* Add filter state management to data grid and drilldown panels

* Fix Prettier issue

* Add filter by value to document details fields

* Update defaultColumns to defaultTableColumns in WazuhDataGrid

* Add filter functionality for document viewer

* Swap the order of arguments in filter action test

* Rename button icons to EuiButtonIcon component

* Update component import paths and class names

* Update doc-viewer styles for wzDocViewer classes

* Refactor adding filters to handle array values efficiently

* Add onClose callback to onFilter function in DocViewer

* Refactor DocumentViewTableAndJson component props

* Refactor technique row details component props type

* Add setFilters function to TechniqueRowDetails component

* Refactor closeFlyoutHandler in DashboardTH component

* Add closeFlyoutHandler function for flyout onClose event

* Fix Prettier issue

* fix: add guard clause for undefined value in filter cell actions

* feat: add FilterStateStore enum and update state management in PatternDataSourceFilterManager to use it

* fix: update onFilter function to accept more specific FILTER_OPERATOR types and value types in DocViewer component

* feat: add isNullish utility function and update exports in util index for better nullish checks

* fix: refactor onFilterCellActions to use isNullish for improved handling of FILTER_OPERATOR and value inputs in data grid service

* fix: refactor onFilterCellActions import path for improved structure and maintainability in data-grid and doc-viewer components

* fix: update onFilterCellActions to accept number type in values for enhanced filtering capabilities in data grid component

* test: add unit tests for onFilterCellActions to verify filtering with number values in data grid component

* test: simplify onFilterCellActions tests by removing unused filters array for clearer unit tests in data grid component

* test: enhance onFilterCellActions tests by clarifying filter addition with improved descriptions for number and string values in data grid

* test: refactor buildFilter usage in onFilterCellActions tests for improved clarity on filter creation in data grid component

* test: improve onFilterCellActions tests with clearer descriptions for filters and added date filter cases in data grid component

* test: add tests for single filter actions with string values and 'is'/'is not' operators in onFilterCellActions for data grid

* test: add tests for multiple filters with 'is' and 'is not' operators for rule.groups in onFilterCellActions for data grid

* test: add test for onFilterCellActions with undefined value to ensure appropriate filter behavior in data grid component

* test: update filter negate logic and add test for 'is not' operator with undefined value in onFilterCellActions for data grid

* Fix Prettier issue

* test: refactor filter creation logic in onFilterCellActions tests for improved clarity and consistency in data grid component

* test: unify key usage in filter tests in onFilterCellActions for clearer and more maintainable assertions in data grid component

* test: add filter logic tests for boolean values in onFilterCellActions for better coverage in data grid component

* test: update filter tests in onFilterCellActions to clarify handling of boolean values in data grid component

* test: improve clarity in filter cell action tests by specifying value types in data grid component assertions

* test: refine value type definition in onFilterCellActions to enhance clarity for boolean and numeric filters in data grid component

* Refactor drilldown components to simplify destructuring of props, removing unused variables for cleaner code

* Remove unused `filters` and `setFilters` props from OfficePanel for cleaner code and improved readability

* Fix typos in export button label across data grid components

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Agent view Mitre ATT&CK exception (#7116)

* add a validation to filterParams and filterParams.filters

* add key to map

* update changelog

* change url

* Fix url from endpoint summary to dashboard and events in mitre

* Correction of link to technique in intellicense flyout

* Go to tactics in intellicense, clean code and eui accordion start open

* clean code

* clean code

* update changelog

* clean code

* fix card endpoint summary

* update changelog

* rename function

* rename function goToTechniqueInIntelligence

* rename function goToTechniqueInIntelligence

---------

Co-authored-by: Federico Rodriguez <[email protected]>

* Add vulnerability detection card in agent overview (#7085)

* Add top packages component

* Add vuls severity stat component

* Create vuls panel

* Add vuls panel in agent overview

* Update CHANGELOG

* Apply prettier

* Fix responsive behavior

* Apply prettier

* Change vuls panel style

* Use vuls data source in agent overview panel

* Move vuls panel

* Change redirect in hoc

* Remove unnecessary redirect

* Add HOC to create pattern if not exist

* Apply prettier

* Remove unused imports

Co-authored-by: Guido Modarelli <[email protected]>

* Remove unused imports

Co-authored-by: Guido Modarelli <[email protected]>

* Remove unused code

* Apply prettier

* Resolve conflicts in agents-welcome

* Change agents management menu icon

---------

Co-authored-by: Chantal Belén kelm <[email protected]>
Co-authored-by: Guido Modarelli <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>

* Remove duplicated entry was included in a previous version (#7139)

chore(changelog): remove duplicated entry was included in a previous release

* chore: update imposter specification reference

---------

Co-authored-by: JuanGarriuz <[email protected]>
Co-authored-by: Federico Rodriguez <[email protected]>
Co-authored-by: Guido Modarelli <[email protected]>
Co-authored-by: Chantal Belén kelm <[email protected]>
Co-authored-by: Maximiliano Ibarra <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add vulnerabilities card to Agent details page
4 participants