diff --git a/catalog/helm/values.yaml b/catalog/helm/values.yaml index ba2dfd9e..3b3383ba 100644 --- a/catalog/helm/values.yaml +++ b/catalog/helm/values.yaml @@ -34,7 +34,7 @@ ui: name: # default use chart name + '-ui' image: #override: - tag: v0.32.10 + tag: v0.32.11 repository: quay.io/redhat-gpte/babylon-catalog-ui pullPolicy: IfNotPresent replicaCount: 1 diff --git a/catalog/ui/src/app/Admin/CatalogIncidentsAlertList.tsx b/catalog/ui/src/app/Admin/CatalogIncidentsAlertList.tsx index 5e650b37..737c9d41 100644 --- a/catalog/ui/src/app/Admin/CatalogIncidentsAlertList.tsx +++ b/catalog/ui/src/app/Admin/CatalogIncidentsAlertList.tsx @@ -1,15 +1,14 @@ import React, { useMemo } from 'react'; -import { Label, Panel, PanelMain, Title } from '@patternfly/react-core'; +import { Badge, Label, Panel, PanelMain, Title } from '@patternfly/react-core'; import useSWR from 'swr'; import { apiPaths, fetcher } from '@app/api'; import { CatalogItem, CatalogItemIncidents } from '@app/types'; import { Table /* data-codemods */, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table'; import TimeInterval from '@app/components/TimeInterval'; import { fetchCatalog } from '@app/Catalog/Catalog'; -import useSWRImmutable from 'swr/immutable'; import useSession from '@app/utils/useSession'; import { BABYLON_DOMAIN, displayName, getStageFromK8sObject } from '@app/util'; -import { getStatus } from '@app/Catalog/catalog-utils'; +import { getStage, getStatus } from '@app/Catalog/catalog-utils'; import StatusPageIcons from '@app/components/StatusPageIcons'; import './admin.css'; @@ -72,6 +71,13 @@ const CatalogIncidentsAlertList: React.FC = () => { {displayName(ci)} + { getStage(ci) === 'dev' ? ( + development + ) : getStage(ci) === 'test' ? ( + test + ) : getStage(ci) === 'event' ? ( + event + ) : null}