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

[UI] Replaced as the full and partial scan dates are displayed in the Details panel in Vulnerabilites/Inventory #4169

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the Wazuh app project will be documented in this file.

## Wazuh v4.3.4 - Kibana 7.10.2, 7.16.x, 7.17.x - Revision 4305

### Changed

- Replaced how the full and partial scan dates are displayed in the `Details` panel of `Vulnerabilities/Inventory` [#4169](https://github.com/wazuh/wazuh-kibana-app/pull/4169)

### Fixed

- Fixed a toast message with a successful process appeared when removing an agent of a group in `Management/Groups` and the agent appears in the agent list after refreshing the table [#4167](https://github.com/wazuh/wazuh-kibana-app/pull/4167)
Expand Down
19 changes: 13 additions & 6 deletions public/components/agents/vuls/inventory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import {
import { ICustomBadges } from '../../wz-search-bar/components';
import { formatUIDate } from '../../../react-services';
import { VisualizationBasicWidgetSelector, VisualizationBasicWidget } from '../../common/charts/visualizations/basic';
import { WzStat } from '../../wz-stat';

interface Aggregation { title: number, description: string, titleColor: string }
interface pieStats { id: string, label: string, value: number }
Expand Down Expand Up @@ -243,14 +244,20 @@ export class Inventory extends Component {
</EuiFlexGroup>
<EuiFlexGroup style={{ marginTop: 'auto' }}>
<EuiFlexItem>
<EuiText>
<EuiIcon type="calendar" color={'primary'} /> Last full scan: {last_full_scan}
</EuiText>
<WzStat
title={last_full_scan}
description="Last full scan"
textAlign='center'
titleSize='xs'
/>
</EuiFlexItem>
<EuiFlexItem>
<EuiText>
<EuiIcon type="calendar" color={'primary'} /> Last partial scan: {last_partial_scan}
</EuiText>
<WzStat
title={last_partial_scan}
description="Last partial scan"
textAlign='center'
titleSize='xs'
/>
</EuiFlexItem>
</EuiFlexGroup>
</EuiFlexItem>
Expand Down