diff --git a/frontend/src/pages/projects/screens/detail/overview/serverModels/deployedModels/DeployedModelCard.tsx b/frontend/src/pages/projects/screens/detail/overview/serverModels/deployedModels/DeployedModelCard.tsx index c014c2ea54..830c52c5e4 100644 --- a/frontend/src/pages/projects/screens/detail/overview/serverModels/deployedModels/DeployedModelCard.tsx +++ b/frontend/src/pages/projects/screens/detail/overview/serverModels/deployedModels/DeployedModelCard.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import { + Button, CardBody, CardFooter, CardHeader, @@ -11,8 +12,9 @@ import { TextListItem, TextListItemVariants, TextListVariants, + Truncate, } from '@patternfly/react-core'; -import { Link } from 'react-router-dom'; +import { useNavigate } from 'react-router-dom'; import { ProjectObjectType } from '~/concepts/design/utils'; import { InferenceServiceKind, ServingRuntimeKind } from '~/k8sTypes'; import InferenceServiceStatus from '~/pages/modelServing/screens/global/InferenceServiceStatus'; @@ -36,6 +38,7 @@ const DeployedModelCard: React.FC = ({ servingRuntime, }) => { const [modelMetricsEnabled] = useModelMetricsEnabled(); + const navigate = useNavigate(); const kserveMetricsEnabled = useIsAreaAvailable(SupportedArea.K_SERVE_METRICS).status; const modelMesh = isModelMesh(inferenceService); const { currentProject } = React.useContext(ProjectDetailsContext); @@ -61,11 +64,18 @@ const DeployedModelCard: React.FC = ({ {modelMetricsSupported ? ( - { + navigate( + `/projects/${inferenceService.metadata.namespace}/metrics/model/${inferenceService.metadata.name}`, + ); + }} + style={{ fontSize: 'var(--pf-v5-global--FontSize--md)' }} > - {inferenceServiceDisplayName} - + + ) : ( inferenceServiceDisplayName )}