Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explanation and copy action for the Pod name in the Pipeline run graph execution node drawer #3312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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