Skip to content

Commit

Permalink
Add explanation and copy action for the Pod name in the Pipeline run …
Browse files Browse the repository at this point in the history
…graph execution node drawer
  • Loading branch information
dpanshug committed Oct 16, 2024
1 parent a15a69c commit 3cec451
Showing 1 changed file with 23 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ import {
DrawerHead,
DrawerPanelBody,
DrawerPanelContent,
Text,
Flex,
Popover,
Title,
} from '@patternfly/react-core';
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons';
import PipelineRunDrawerRightTabs from '~/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightTabs';
import './PipelineRunDrawer.scss';
import { PipelineTask } from '~/concepts/pipelines/topology';
import { Execution } from '~/third_party/mlmd';
import DashboardPopupIconButton from '~/concepts/dashboard/DashboardPopupIconButton';
import InlineTruncatedClipboardCopy from '~/components/InlineTruncatedClipboardCopy';
import { ArtifactNodeDrawerContent } from './artifacts';

type PipelineRunDrawerRightContentProps = {
Expand Down Expand Up @@ -48,7 +52,24 @@ const PipelineRunDrawerRightContent: React.FC<PipelineRunDrawerRightContentProps
<Title headingLevel="h2" size="xl">
{task.name}
</Title>
{task.status?.podName && <Text component="small">{task.status.podName}</Text>}
{task.status?.podName && (
<Flex
display={{ default: 'inlineFlex' }}
spaceItems={{ default: 'spaceItemsXs' }}
flexWrap={{ default: 'nowrap' }}
>
<InlineTruncatedClipboardCopy
testId="podname-copy"
textToCopy={task.status.podName}
/>
<Popover bodyContent="This is the pod name of the run execution in OpenShift">
<DashboardPopupIconButton
icon={<OutlinedQuestionCircleIcon />}
aria-label="More info"
/>
</Popover>
</Flex>
)}
<DrawerActions>
<DrawerCloseButton onClick={onClose} />
</DrawerActions>
Expand Down

0 comments on commit 3cec451

Please sign in to comment.