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

Changed inventory vulnerabilities references to links #6960

Merged
merged 13 commits into from
Sep 11, 2024
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ All notable changes to the Wazuh app project will be documented in this file.

- Upgraded the `axios` dependency to `1.7.4` [#6919](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6919)
- Improved MITRE ATT&CK intelligence flyout details readability [#6954](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6954)
- Changed vulnerabilities.reference to links in Vulnerability Detection > Inventory columns [#6960](https://github.com/wazuh/wazuh-dashboard-plugins/pull/6960)

## Wazuh v4.9.0 - OpenSearch Dashboards 2.13.0 - Revision 05

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { EuiText } from '@elastic/eui';
import { EuiText, EuiLink, EuiToolTip } from '@elastic/eui';
import { tDataGridRenderColumn } from '../data-grid';
import {
endpointSummary,
Expand Down Expand Up @@ -79,6 +79,29 @@ export const wzDiscoverRenderColumns: tDataGridRenderColumn[] = [
);
},
},
{
id: 'vulnerability.reference',
render: value => {
const links = (
<>
{value?.split(',').map((link, index) => (
JuanGarriuz marked this conversation as resolved.
Show resolved Hide resolved
<span key={index}>
{!!index && ', '}
<EuiToolTip
position='top'
content='Navigate to the vulnerability reference'
>
<EuiLink href={link} target='_blank'>
{link}
</EuiLink>
JuanGarriuz marked this conversation as resolved.
Show resolved Hide resolved
</EuiToolTip>
</span>
))}
</>
);
return links;
},
},
{
id: 'rule.id',
render: value => (
Expand Down
Loading