diff --git a/awx/ui/src/screens/Host/HostList/HostList.js b/awx/ui/src/screens/Host/HostList/HostList.js index 0d4b0bd..424765e 100644 --- a/awx/ui/src/screens/Host/HostList/HostList.js +++ b/awx/ui/src/screens/Host/HostList/HostList.js @@ -167,6 +167,7 @@ function HostList() { headerRow={ {t`Name`} + {t`Activity`} {t`Description`} {t`Inventory`} {t`Actions`} diff --git a/awx/ui/src/screens/Host/HostList/HostListItem.js b/awx/ui/src/screens/Host/HostList/HostListItem.js index 991ab47..a0a3e1d 100644 --- a/awx/ui/src/screens/Host/HostList/HostListItem.js +++ b/awx/ui/src/screens/Host/HostList/HostListItem.js @@ -4,13 +4,12 @@ import { string, bool, func } from 'prop-types'; import { t } from '@lingui/macro'; import { Button } from '@patternfly/react-core'; -import { Tr, Td, ExpandableRowContent } from '@patternfly/react-table'; +import { Tr, Td } from '@patternfly/react-table'; import { Link } from 'react-router-dom'; import { PencilAltIcon } from '@patternfly/react-icons'; import { ActionsTd, ActionItem, TdBreakWord } from 'components/PaginatedTable'; import { Host } from 'types'; import HostToggle from 'components/HostToggle'; -import { DetailList, Detail } from 'components/DetailList'; import Sparkline from 'components/Sparkline'; function HostListItem({ @@ -19,8 +18,6 @@ function HostListItem({ onSelect, detailUrl, rowIndex, - isExpanded, - onExpand, }) { const labelId = `check-action-${host.id}`; @@ -29,15 +26,7 @@ function HostListItem({ } = host; return ( - <> - {host.name} + + {recentJobs.length > 0 ? () : (t`No job data available`)} + - - - - - - 0 ? ( - - ) : ( - t`No job data available` - ) - } - /> - - - - - ); } diff --git a/awx/ui/src/screens/Inventory/InventoryHosts/InventoryHostItem.js b/awx/ui/src/screens/Inventory/InventoryHosts/InventoryHostItem.js index 3b84a80..894e786 100644 --- a/awx/ui/src/screens/Inventory/InventoryHosts/InventoryHostItem.js +++ b/awx/ui/src/screens/Inventory/InventoryHosts/InventoryHostItem.js @@ -13,6 +13,7 @@ import HostToggle from 'components/HostToggle'; import { ActionsTd, ActionItem, TdBreakWord } from 'components/PaginatedTable'; import useRequest, { useDismissableError } from 'hooks/useRequest'; import { Host } from 'types'; +import Sparkline from 'components/Sparkline'; function InventoryHostItem({ detailUrl, @@ -28,6 +29,10 @@ function InventoryHostItem({ count: 0, }; + const { + summary_fields: { recent_jobs: recentJobs = [] }, + } = host; + const { error, request: fetchRelatedGroups, @@ -65,6 +70,9 @@ function InventoryHostItem({ {host.name} + + {recentJobs.length > 0 ? () : (t`No job data available`)} + {t`Name`} + {t`Activity`} {t`Description`} {t`Related Groups`} {t`Actions`}