Skip to content

Commit

Permalink
Merge pull request opendatahub-io#2935 from Gkrumbach07/v2.24.0-fixes
Browse files Browse the repository at this point in the history
remove artifact preview
  • Loading branch information
openshift-merge-bot[bot] authored Jun 20, 2024
2 parents 37bd8c7 + d3c109d commit 310dfdd
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
DescriptionListGroup,
DescriptionListTerm,
DescriptionListDescription,
StackItem,
} from '@patternfly/react-core';

import { Artifact } from '~/third_party/mlmd';
Expand All @@ -21,7 +20,6 @@ import PipelinesTableRowTime from '~/concepts/pipelines/content/tables/Pipelines
import PipelineRunDrawerRightContent from '~/concepts/pipelines/content/pipelinesDetails/pipelineRun/PipelineRunDrawerRightContent';
import { SupportedArea, useIsAreaAvailable } from '~/concepts/areas';
import { ArtifactUriLink } from '~/concepts/pipelines/content/artifacts/ArtifactUriLink';
import ArtifactPreview from '~/concepts/pipelines/content/pipelinesDetails/taskDetails/ArtifactPreview';

type ArtifactNodeDetailsProps = Pick<
React.ComponentProps<typeof PipelineRunDrawerRightContent>,
Expand Down Expand Up @@ -90,14 +88,7 @@ export const ArtifactNodeDetails: React.FC<ArtifactNodeDetailsProps> = ({
<DescriptionListGroup>
<DescriptionListTerm>{artifactName}</DescriptionListTerm>
<DescriptionListDescription>
<Stack hasGutter>
<StackItem>
<ArtifactUriLink uri={artifact.getUri()} />
</StackItem>
<StackItem>
<ArtifactPreview artifact={artifact} />
</StackItem>
</Stack>
<ArtifactUriLink uri={artifact.getUri()} />
</DescriptionListDescription>
</DescriptionListGroup>
</DescriptionList>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import TaskDetailsSection from '~/concepts/pipelines/content/pipelinesDetails/ta
import TaskDetailsPrintKeyValues from '~/concepts/pipelines/content/pipelinesDetails/taskDetails/TaskDetailsPrintKeyValues';
import { PipelineTaskArtifact } from '~/concepts/pipelines/topology';
import { ArtifactUriLink } from '~/concepts/pipelines/content/artifacts/ArtifactUriLink';
import ArtifactPreview from './ArtifactPreview';

type TaskDetailsInputOutputProps = {
type: 'Input' | 'Output';
Expand All @@ -29,7 +28,6 @@ const TaskDetailsInputOutput: React.FC<TaskDetailsInputOutputProps> = ({
return {
label: artifactInputOutput.label,
value: <ArtifactUriLink uri={artifact.getUri()} />,
preview: <ArtifactPreview artifact={artifact} />,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Grid, GridItem, Truncate } from '@patternfly/react-core';

type TaskDetailsPrintKeyValuesProps = {
items: { label: string; value: React.ReactNode; preview?: React.ReactNode }[];
items: { label: string; value: React.ReactNode }[];
};

const TaskDetailsPrintKeyValues: React.FC<TaskDetailsPrintKeyValuesProps> = ({ items }) => (
Expand All @@ -15,7 +15,6 @@ const TaskDetailsPrintKeyValues: React.FC<TaskDetailsPrintKeyValuesProps> = ({ i
</b>
</GridItem>
<GridItem span={6}>{result.value}</GridItem>
{result.preview && <GridItem span={12}>{result.preview}</GridItem>}
</React.Fragment>
))}
</Grid>
Expand Down

0 comments on commit 310dfdd

Please sign in to comment.