-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add error state when pipeline version is deleted
- Loading branch information
Showing
10 changed files
with
142 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
frontend/src/concepts/pipelines/content/pipelinesDetails/PipelineVersionError.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { | ||
EmptyState, | ||
EmptyStateBody, | ||
EmptyStateHeader, | ||
EmptyStateIcon, | ||
EmptyStateVariant, | ||
PageSection, | ||
} from '@patternfly/react-core'; | ||
import { ExclamationTriangleIcon } from '@patternfly/react-icons'; | ||
import React from 'react'; | ||
|
||
type PipelineVersionErrorProps = { | ||
title?: string; | ||
description?: string; | ||
testId?: string; | ||
}; | ||
|
||
const PipelineVersionError: React.FC<PipelineVersionErrorProps> = ({ | ||
title, | ||
description, | ||
testId, | ||
}) => ( | ||
<PageSection className="pf-v5-u-h-100"> | ||
<EmptyState variant={EmptyStateVariant.lg} isFullHeight> | ||
<EmptyStateHeader | ||
data-testid={testId} | ||
titleText={title} | ||
icon={ | ||
<EmptyStateIcon | ||
color="var(--pf-v5-global--warning-color--100)" | ||
icon={ExclamationTriangleIcon} | ||
/> | ||
} | ||
headingLevel="h2" | ||
/> | ||
<EmptyStateBody>{description}</EmptyStateBody> | ||
</EmptyState> | ||
</PageSection> | ||
); | ||
|
||
export default PipelineVersionError; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters