-
Notifications
You must be signed in to change notification settings - Fork 186
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
Merge 4.10.1 into 4.10.2 #7201
Merge 4.10.1 into 4.10.2 #7201
Conversation
chore: bump 4.10.0 rev 03
* 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 <antonio.gutierrez@wazuh.com>
* Remove fixed height in Vulnerabilities Inventory table * Add changelog
* 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
* 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 * Add changelog
* 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 <antonio.gutierrez@wazuh.com>
* 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 * Add changelog
* Overwrite eui styles * Added changelog * Solve styles * Change border per shadow-box * Fix changelog --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
chore: bump 4.9.2 rev01
* 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 <99441266+chantal-kelm@users.noreply.github.com>
* 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 <federico.rodriguez@wazuh.com>
* 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 <federico.rodriguez@wazuh.com>
* 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 <38738725+guidomodarelli@users.noreply.github.com> * Remove unused imports Co-authored-by: Guido Modarelli <38738725+guidomodarelli@users.noreply.github.com> * Remove unused code * Apply prettier * Resolve conflicts in agents-welcome * Change agents management menu icon --------- Co-authored-by: Chantal Belén kelm <99441266+chantal-kelm@users.noreply.github.com> Co-authored-by: Guido Modarelli <38738725+guidomodarelli@users.noreply.github.com> Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Merge 4.9.2 into 4.10.0
chore(changelog): remove duplicated entry was included in a previous release
…on for consistent functionality (#7135) * feat: integrate ButtonExploreAgent component into MainModuleAgent for enhanced agent interaction and updated layout consistency * feat: add pinned agent mechanic across all pages for improved consistency in functionality and user experience * feat: enhance ButtonPinnedAgent with clsx for dynamic class management and improved background styling * refactor: clean up agent selector styles by removing unnecessary focus and hover states for better maintainability * refactor: update WzButtonProps type to include EUI component properties for better flexibility and maintainability * refactor: improve ButtonPinnedAgent structure by adding data-test attribute and simplifying JSX for cleaner code readability * test: add tests for explore agent button rendering in various agent tabs for improved coverage and verification of UI functionality * test: add tests for explore agent button rendering in various agent tabs for improved coverage and verification of UI functionality refactor: enhance MainModuleAgent layout by adding margin and padding styles to EuiFlexItems for improved UI consistency * refactor: add newline in ButtonPinnedAgent for improved readability and code consistency in explore agent button component * chore: update CHANGELOG to clarify pinned agent mechanic in inventory, stats, and configuration for consistency across pages * refactor: add unPinAgent functionality to agent components for enhanced user interaction and UI consistency across agent views * refactor: remove unused EuiButtonEmpty import for cleaner code in configuration overview component * refactor: update useGenericRequest hook for improved type safety and cleaner data handling in API requests * refactor: enhance type safety in InventoryMetrics and streamline API request handling with updated useGenericRequest usage * refactor: rename ErrorOrchestratorService to ErrorService for improved clarity and type safety in error handling logic * refactor: add JSDoc comments to GenericRequest for improved type safety and better documentation of request parameters * refactor: improve cluster handling logic and error management in WzConfigurationSwitch for better state management and readability * refactor: streamline AgentStats component with improved type safety and error handling for enhanced clarity and maintainability * Fix Prettier issue * refactor: update test descriptions in MainModuleAgent tests to clarify the "Pinned Agent" button functionality across tabs * refactor: remove deprecated Route for syscollector in AgentView to clean up component structure and improve readability * refactor: rename PartialRecordMock to DeepPartialRecordMock for better clarity and maintainability in type definitions * feat: add mock agent data for Debian, Windows, and Darwin to enhance testing and provide a comprehensive environment setup * refactor: replace inline AGENT mock with import from test mocks for improved test organization and maintainability * test: add API call verification in AgentStats tests to ensure correct fetching of agent stats during component rendering * test: enhance AgentStats tests to verify API calls with correct agent IDs and endpoints on component updates * test: refine AgentStats test description to clarify API call behavior when switching agents * test: improve AgentStats tests to ensure correct column structure, titles, and CSV filename updates on rendering changes * refactor: update breadcrumb types in useGlobalBreadcrumb for improved type safety and readability in context management * refactor: enhance withGlobalBreadcrumb HOC for better type handling and maintainability in breadcrumb logic * refactor: replace hardcoded path in agent stats breadcrumb with SECTIONS constant for improved maintainability and readability * refactor: replace hardcoded agents-preview path with SECTIONS constant for improved maintainability and readability in configuration-main.js * refactor: improve agent handling in withGlobalBreadcrumb for better maintainability and readability in configuration-main.js * refactor: add global breadcrumb support in AgentView for better navigation and maintainability in index.tsx * refactor: update unPinAgent to navigate with new URL structure for improved navigation in index.tsx * refactor: add withGlobalBreadcrumb HOC to enhance navigation structure in agent index.tsx * refactor: enhance AgentStats tests with clearer descriptions for column structure and title checks amidst agent changes * refactor: replace jQuery with native DOM method for setting title attribute in breadcrumb configuration component * refactor: improve syscollector metrics tests by adding agent ID handling and verifying data fetching for different agents * refactor: add unit test for SoftwareTab rendering WindowsUpdatesTable on Windows platform in syscollector agent component * refactor: add unit test for WindowsUpdatesTable to verify correct hotfixes endpoint when changing agents in syscollector component * refactor: fix endpoint string in WindowsUpdatesTable test for accurate hotfixes URL when changing agents in syscollector component * refactor: enhance WindowsUpdatesTable test to validate API requests for different agent IDs in syscollector component * refactor: handle potential undefined values in packages-table component for safer access to sorting fields when rendering table * test: add test suite for PackagesTable to validate API requests and table rendering for different agent IDs in syscollector component * refactor: safeguard against undefined values for sorting fields in multiple syscollector table components during rendering * test: add test suite for NetworkInterfacesTable to verify API requests and rendering behavior for changing agent IDs * test: update test descriptions in PackagesTable and WindowsUpdatesTable for clarity on data being fetched for given agent IDs * test: add tests for NetworkPortsTable to verify correct API requests and rendering behavior for different agent IDs * test: rename test suite to NetworkPortsTable for clarity and proper context in related API request tests * test: add NetworkSettingsTable tests to ensure correct rendering and API requests for changing agent IDs * test: add tests for ProcessesTable to validate rendering and API requests when switching between agent IDs * fix: improve optional chaining to direct access for initial sorting fields in network tables for better readability * test: introduce reusable functions for validating agent API requests and endpoint rendering in various system collector tables * refactor(useGenericRequest): rename response state to data and update related logic for clarity --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
* feat: integrate ButtonExploreAgent component into MainModuleAgent for enhanced agent interaction and updated layout consistency * feat: add pinned agent mechanic across all pages for improved consistency in functionality and user experience * feat: enhance ButtonPinnedAgent with clsx for dynamic class management and improved background styling * refactor: clean up agent selector styles by removing unnecessary focus and hover states for better maintainability * refactor: update WzButtonProps type to include EUI component properties for better flexibility and maintainability * refactor: improve ButtonPinnedAgent structure by adding data-test attribute and simplifying JSX for cleaner code readability * test: add tests for explore agent button rendering in various agent tabs for improved coverage and verification of UI functionality * test: add tests for explore agent button rendering in various agent tabs for improved coverage and verification of UI functionality refactor: enhance MainModuleAgent layout by adding margin and padding styles to EuiFlexItems for improved UI consistency * refactor: add newline in ButtonPinnedAgent for improved readability and code consistency in explore agent button component * chore: update CHANGELOG to clarify pinned agent mechanic in inventory, stats, and configuration for consistency across pages * refactor: add unPinAgent functionality to agent components for enhanced user interaction and UI consistency across agent views * refactor: remove unused EuiButtonEmpty import for cleaner code in configuration overview component * refactor: update useGenericRequest hook for improved type safety and cleaner data handling in API requests * refactor: enhance type safety in InventoryMetrics and streamline API request handling with updated useGenericRequest usage * refactor: rename ErrorOrchestratorService to ErrorService for improved clarity and type safety in error handling logic * refactor: add JSDoc comments to GenericRequest for improved type safety and better documentation of request parameters * refactor: improve cluster handling logic and error management in WzConfigurationSwitch for better state management and readability * refactor: streamline AgentStats component with improved type safety and error handling for enhanced clarity and maintainability * Fix Prettier issue * refactor: update test descriptions in MainModuleAgent tests to clarify the "Pinned Agent" button functionality across tabs * refactor: remove deprecated Route for syscollector in AgentView to clean up component structure and improve readability * refactor: rename PartialRecordMock to DeepPartialRecordMock for better clarity and maintainability in type definitions * feat: add mock agent data for Debian, Windows, and Darwin to enhance testing and provide a comprehensive environment setup * refactor: replace inline AGENT mock with import from test mocks for improved test organization and maintainability * test: add API call verification in AgentStats tests to ensure correct fetching of agent stats during component rendering * test: enhance AgentStats tests to verify API calls with correct agent IDs and endpoints on component updates * test: refine AgentStats test description to clarify API call behavior when switching agents * test: improve AgentStats tests to ensure correct column structure, titles, and CSV filename updates on rendering changes * refactor: update breadcrumb types in useGlobalBreadcrumb for improved type safety and readability in context management * refactor: enhance withGlobalBreadcrumb HOC for better type handling and maintainability in breadcrumb logic * refactor: replace hardcoded path in agent stats breadcrumb with SECTIONS constant for improved maintainability and readability * refactor: replace hardcoded agents-preview path with SECTIONS constant for improved maintainability and readability in configuration-main.js * refactor: improve agent handling in withGlobalBreadcrumb for better maintainability and readability in configuration-main.js * refactor: add global breadcrumb support in AgentView for better navigation and maintainability in index.tsx * refactor: update unPinAgent to navigate with new URL structure for improved navigation in index.tsx * refactor: add withGlobalBreadcrumb HOC to enhance navigation structure in agent index.tsx * refactor: enhance AgentStats tests with clearer descriptions for column structure and title checks amidst agent changes * refactor: replace jQuery with native DOM method for setting title attribute in breadcrumb configuration component * refactor: improve syscollector metrics tests by adding agent ID handling and verifying data fetching for different agents * refactor: add unit test for SoftwareTab rendering WindowsUpdatesTable on Windows platform in syscollector agent component * refactor: add unit test for WindowsUpdatesTable to verify correct hotfixes endpoint when changing agents in syscollector component * refactor: fix endpoint string in WindowsUpdatesTable test for accurate hotfixes URL when changing agents in syscollector component * refactor: enhance WindowsUpdatesTable test to validate API requests for different agent IDs in syscollector component * refactor: handle potential undefined values in packages-table component for safer access to sorting fields when rendering table * test: add test suite for PackagesTable to validate API requests and table rendering for different agent IDs in syscollector component * refactor: safeguard against undefined values for sorting fields in multiple syscollector table components during rendering * test: add test suite for NetworkInterfacesTable to verify API requests and rendering behavior for changing agent IDs * test: update test descriptions in PackagesTable and WindowsUpdatesTable for clarity on data being fetched for given agent IDs * test: add tests for NetworkPortsTable to verify correct API requests and rendering behavior for different agent IDs * test: rename test suite to NetworkPortsTable for clarity and proper context in related API request tests * test: add NetworkSettingsTable tests to ensure correct rendering and API requests for changing agent IDs * test: add tests for ProcessesTable to validate rendering and API requests when switching between agent IDs * fix: improve optional chaining to direct access for initial sorting fields in network tables for better readability * test: introduce reusable functions for validating agent API requests and endpoint rendering in various system collector tables * ci: update GitHub Actions workflows to use actions/upload-artifact@v4 and clean up formatting across YAML files * ci: upgrade actions/checkout to v4 across multiple workflows for consistency and improved features * ci: upgrade Node.js setup to actions/setup-node@v4 in eslint and prettier workflows for enhanced performance and consistency * ci: update manual-build workflow to use actions/download-artifact@v4 for improved functionality and consistency with other workflows * ci: upgrade actions/dependency-review-action to v4 for enhanced functionality and consistency in dependency review process * ci: add overwrite option in Cypress report workflows for improved file handling and consistency across all test configurations * ci: standardize YAML formatting in workflows for better readability and consistency across all templates and steps --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
* Fix styles issue * Restore styles to original location
* Fix styles * Add changelog
* feat(configuration): allow to edit the wazuh.updates.disabled setting from UI - Side changes: - Enhance description for wazuh.updates.disabled setting * fix(check-updates): fix a problem when the wazuh.updates.disabled setting was disabled the UI was displayed * fix: fix an error related to a conflict of useKbnLoadingIndicator custom hook with the platform loadingCount * chore(changelog): add entry) * fix(changelog): fix pull request number * fix: tests * test: add tests related to WzUpdatesNotification component * fix: comment --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
* Change register agent styles * Add changelog * Remove back button
* Fix apply date and mtime filter on fim details * Applied prettier * Update CHANGELOG * Create new getFilterValue method * Update CHANGELOG --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
reorder sections and rename endpoint groups Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com>
* Move fim data values to a common file * Change order * Add changelog and solve registry windows * Solve comments * Resolve comments * Add comments * Resolve permisions render filter * Order suggestions alphabetically * Added optional chaining operator to agents.os.platform access
…7167) * Fix error message to prevent pass no strings to the wazuh logger * Fix when error is undefined * Update CHANGELOG
chore: bump 4.10.0 rev 05
* Fix actions artifact plugins name * Add plugins packages to plugins folder * Unzip package zips
…ts (#7177) * Sample data(vulnerabilities): Change data.vulnerability.references(array) to data.vulnerability.reference(string) * Events(render-columns: Render data.vulnerability.reference correctly * Changelog: Add entry
* Add install unzip command * Fix unzip command * Escalate root user privileges * Fix unzip command path * Unzip in dockefile * Change for loop * Change for loop * add ls -la * Change test plugins path * change ls * change folder name * Comment the unzip process * Clean code * Format artifact name with slash * Implement githubReference * Test set -e * Remove set -e test
chore(bump): 4.10.0 rev 06
* move command column from process table * modify column width in table processes * modify column width in table processes * update snapshot * update changelog * update changelog * modify order of argvs and commands * update snapshot * update changelog * update test * add comments to the code
* style(top_packages_table): increase padding size in EuiPanel for improved layout consistency and visual appearance * style(vuls_welcome_panel): align text to the left for better readability in vulnerability panel component * refactor(agents-welcome): update malware detection to vulnerability detection for better alignment with application terminology * feat(ribbon): add condensed prop to IRibbonItem and implement logic for displaying condensed items in the ribbon component * fix(dashboard_panels): adjust height of panel '1' from 12 to 7 for improved layout consistency in dashboard panels * chore(changelog): document changes to agent details page for better readability and layout consistency * fix(vuls_panel): change padding size of EuiPanel from 's' to 'm' for improved layout consistency in the welcome panel * fix(agent_info): update IP address style to set min and max width for improved layout consistency in agent info display * Add euiFlexGroup element to inventory test snapshot * fix(agent_details): refine layout of agent details view for improved readability and consistency [#7193] * feat(wz-text-tooltip): implement text truncation with tooltip for improved text display in component [#7194] * style(ribbon-item): adjust max-width for mobile responsiveness in ribbon-item component [#7200] * style(agent-info): update minWidth and maxWidth for better layout in agent info component [#7201] * style(wz-text-tooltip): add anchorClassName for full width in tooltip component [#7195] * feat(ribbon-item): enhance rendering logic and add render prop for dynamic content * style(wz-ribbon-item): prevent growth of ribbon item for consistent layout [#7202] * style(wz-ribbon-item): set font size and prevent growth for consistent layout across inventory components [#7206] * style(agent-info): remove min-width for agent status to enhance layout consistency [#7207] * style(agent-status): add custom margin for icon tip to improve alignment [#7208] * style(agent-info): modify IP address styling to support IPv6 with adjusted min/max widths [#7209] * style(ribbon): reduce group length in GroupTruncate to enhance display [#7210] * style(agent-info): streamline styling by removing minWidth properties for cleaner display within agent info component [#7211] * style(wz-text-tooltip): enhance text display responsiveness with word-break and white-space adjustments for smaller screens [#7212] * Update lifecycle method from componentDidMount to componentDidUpdate * Increase group truncate length to 30 characters * style(agent-info): make 'Group' value condensed and remove maxWidth for 'Operating system' display * fix(ribbon-item): rename elementStyle to contentStyle for clarity in WzTextWithTooltipIfTruncated component * refactor(wz-text-tooltip): rename buildContent to renderContent for improved readability in WzTextWithTooltipIfTruncated component * refactor(wz-text-tooltip): extract createClone method for cleaner code and improved readability in WzTextWithTooltipIfTruncated component * refactor(ribbon-item): change item.style to contentStyle for improved clarity in WzRibbonItem component * feat(platform): add getPlatformIcon and getOsName functions for improved agent OS representation in the application * feat(agent-info): enhance OS display by integrating platform icon and name in InventoryMetrics and AgentInfo components * refactor(ribbon-item): update WzTextWithTooltipIfTruncated to use contentStyle for cleaner code in ribbon-item component * refactor(ribbon-item): use contentStyle instead of item.style for improved clarity in ribbon-item component rendering * refactor(wz-text-with-tooltip): convert class to functional component with hooks for cleaner state management and rendering logic * refactor(agent-info): add minWidth style to registration and last keep-alive fields for better layout consistency * refactor(agent-status): update tooltip class name for improved styling consistency in status indicators --------- Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
Merge 4.10.0 into 4.10.1
…to merge-4.10.1-into-4.10.2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legend:
⚫ 🠆 The test hasn't started yet.
🟢 🠆 All checks passed.
🟡 🠆 There is at least one expected fail or skipped test and no failures.
🔴 🠆 There is at least one failed check.
⚪ 🠆 Doesn't apply.
🔧 🠆 Request changes.
CR 🟢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Legend:
⚫ 🠆 The test hasn't started yet.
🟢 🠆 All checks passed.
🟡 🠆 There is at least one expected fail or skipped test and no failures.
🔴 🠆 There is at least one failed check.
⚪ 🠆 Doesn't apply.
🔧 🠆 Request changes.
CR 🟢
|
|
|
Merge 4.10.1 into 4.10.2
Caution
Merge PR strategy: Create a merge commit