diff --git a/packages/console/src/components/Executions/CacheStatus.tsx b/packages/console/src/components/Executions/CacheStatus.tsx index 2a6a43823..830ad47a5 100644 --- a/packages/console/src/components/Executions/CacheStatus.tsx +++ b/packages/console/src/components/Executions/CacheStatus.tsx @@ -1,6 +1,7 @@ import { SvgIconProps, Tooltip, Typography } from '@material-ui/core'; import { makeStyles, Theme } from '@material-ui/core/styles'; import CachedOutlined from '@material-ui/icons/CachedOutlined'; +import DeleteOutlinedIcon from '@material-ui/icons/DeleteOutlined'; import ErrorOutlined from '@material-ui/icons/ErrorOutlined'; import InfoOutlined from '@material-ui/icons/InfoOutlined'; import SmsFailedOutlinedIcon from '@material-ui/icons/SmsFailedOutlined'; @@ -50,6 +51,11 @@ const NodeExecutionCacheStatusIcon: React.ComponentType< case CatalogCacheStatus.CACHE_HIT: { return ; } + case CatalogCacheStatus.CACHE_EVICTED: { + return ( + + ); + } case CatalogCacheStatus.CACHE_POPULATED: { return ( CacheStatus', () => { ${CatalogCacheStatus.CACHE_MISS} | ${cacheStatusMessages[CatalogCacheStatus.CACHE_MISS]} ${CatalogCacheStatus.CACHE_POPULATED} | ${cacheStatusMessages[CatalogCacheStatus.CACHE_POPULATED]} ${CatalogCacheStatus.CACHE_PUT_FAILURE} | ${cacheStatusMessages[CatalogCacheStatus.CACHE_PUT_FAILURE]} + ${CatalogCacheStatus.CACHE_EVICTED} | ${cacheStatusMessages[CatalogCacheStatus.CACHE_EVICTED]} `('for each case', ({ cacheStatus, expected }) => { it(`renders correct text ${expected} for status ${cacheStatus}`, async () => { const { queryByText } = renderComponent({ cacheStatus }); diff --git a/packages/console/src/components/flytegraph/__stories__/CustomNodes.stories.tsx b/packages/console/src/components/flytegraph/__stories__/CustomNodes.stories.tsx index 05e4f9602..c591ee2a1 100644 --- a/packages/console/src/components/flytegraph/__stories__/CustomNodes.stories.tsx +++ b/packages/console/src/components/flytegraph/__stories__/CustomNodes.stories.tsx @@ -69,6 +69,7 @@ const CACHE_STATUSES = [ { status: CatalogCacheStatus.CACHE_MISS, text: 'cache miss' }, { status: CatalogCacheStatus.CACHE_POPULATED, text: 'cache populated' }, { status: CatalogCacheStatus.CACHE_PUT_FAILURE, text: 'cache put failure' }, + { status: CatalogCacheStatus.CACHE_EVICTED, text: 'cache evicted' }, ]; stories.add('Task Node by Cache Status', () => (