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 8, 2024
1 parent d857dec commit 5bcfb0e
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import * as React from 'react';
import {
ClipboardCopy,
DrawerActions,
DrawerCloseButton,
DrawerHead,
DrawerPanelBody,
DrawerPanelContent,
Text,
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 { ArtifactNodeDrawerContent } from './artifacts';

type PipelineRunDrawerRightContentProps = {
Expand Down Expand Up @@ -48,7 +51,19 @@ 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 && (
<>
<ClipboardCopy hoverTip="Copy" clickTip="Copied" variant="inline-compact">
{task.status.podName}
</ClipboardCopy>
<Popover bodyContent="This is the pod name of the run execution in OpenShift">
<DashboardPopupIconButton
icon={<OutlinedQuestionCircleIcon />}
aria-label="More info"
/>
</Popover>
</>
)}
<DrawerActions>
<DrawerCloseButton onClick={onClose} />
</DrawerActions>
Expand Down

0 comments on commit 5bcfb0e

Please sign in to comment.