Skip to content

Commit b9a8571

Browse files
Add tekton & topology dependencies utils, hooks, types and components
1 parent 053ed8e commit b9a8571

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+3619
-61
lines changed

.changeset/ninety-news-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@aonic-ui/pipelines": major
3+
---
4+
5+
Added tekton and topology types, utils, hooks & components

packages/core/Readme.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
21
# @aonic-ui/pipelines
32

43
@aonic-core UI component library provides a set of customizable and easy-to-use components for building modern web applications with React.
54

65
## Getting Started
76

8-
9-
10-
117
### Installation
128

139
```bash
1410
npm install @aonic-ui/core
1511
```
1612

17-
1813
### Usage
1914

20-
2115
```bash
2216
import { Button } from '@aonic-ui/core';
2317

packages/pipelines/Readme.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,19 @@
1-
21
# @aonic-ui/pipelines
32

43
@aonic-pipelines UI component library provides a set of customizable and easy-to-use components for building modern web applications with React. It contains UI components, utilities and types which can be used in tekton based web console.
54

65
## Getting Started
76

8-
9-
10-
117
### Installation
128

139
```bash
1410
npm install @aonic-ui/pipelines
1511
```
1612

17-
1813
### Usage
1914

20-
2115
Basic
16+
2217
```bash
2318
import { Output, usePipelineRunOutput } from '@aonic-ui/pipelines';
2419

@@ -31,14 +26,15 @@ import { Output, usePipelineRunOutput } from '@aonic-ui/pipelines';
3126
```
3227
3328
Using helper functions
29+
3430
```bash
3531
import { Output, usePipelineRunOutput } from '@aonic-ui/pipelines';
3632

3733
const output = usePipelineRunOutput(
3834
mockData.pipelineRun as PipelineRunKind,
3935
mockData.taskRuns,
4036
getLogs);
41-
37+
4238
const getLogs = (podName, containerName): Promise<string> => {
4339

4440
// fetching the pod logs code goes here.

packages/pipelines/package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,18 @@
3434
},
3535
"homepage": "https://github.com/redhat-developer/aonic-ui#readme",
3636
"dependencies": {
37+
"@backstage/catalog-model": "^1.7.3",
38+
"@backstage/core-plugin-api": "^1.10.3",
39+
"@backstage/plugin-kubernetes-common": "^0.9.2",
40+
"@backstage/plugin-kubernetes-react": "^0.5.3",
41+
"@material-ui/core": "^4.12.4",
42+
"@mui/icons-material": "5.15.17",
43+
"@mui/material": "^5.15.17",
3744
"@patternfly/react-table": "^6.0.0",
38-
"js-yaml": "^4.1.0"
45+
"classnames": "^2.3.2",
46+
"js-yaml": "^4.1.0",
47+
"react-router-dom": "^6.0.0",
48+
"react-use": "^17.5.0"
3949
},
4050
"devDependencies": {
4151
"@aonic-ui/eslint-config": "*",

packages/pipelines/src/components/Output/Tabs/AdvancedClusterSecurity/DeploymentCheck/DeploymentCheckTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const DeploymentCheckTitle: React.FC = () => {
77
return (
88
<Content
99
style={{
10-
marginBottom: "var(--pf-t--global--spacer--sm)",
10+
marginBottom: 'var(--pf-t--global--spacer--sm)',
1111
}}
1212
>
1313
<Content component={ContentVariants.p}>

packages/pipelines/src/components/Output/Tabs/AdvancedClusterSecurity/ImageCheck/ImageCheckTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ImageCheckTitle = () => {
77
return (
88
<Content
99
style={{
10-
marginBottom: "var(--pf-t--global--spacer--sm)",
10+
marginBottom: 'var(--pf-t--global--spacer--sm)',
1111
}}
1212
>
1313
<Content component={ContentVariants.p}>

packages/pipelines/src/components/Output/Tabs/AdvancedClusterSecurity/ImageCheck/ImageCheckToolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const ImageCheckToolbar: React.FC = () => {
2323

2424
return (
2525
<Toolbar
26-
style={{ marginTop: "var(--pf-t--global--spacer--sm)" }}
26+
style={{ marginTop: 'var(--pf-t--global--spacer--sm)' }}
2727
className="pf-m-toggle-group-container"
2828
clearAllFilters={() => onClearAllFilters(SubTab.imageCheck)}
2929
data-testid="image-check-toolbar"

packages/pipelines/src/components/Output/Tabs/AdvancedClusterSecurity/ImageCheck/__tests__/ImageCheckTable.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ describe('ImageCheckTable', () => {
3939
});
4040
});
4141

42-
4342
test('should render the ImageCheckTable even if the results are not available', async () => {
4443
render(
4544
<ACSContextProvider
@@ -50,7 +49,7 @@ describe('ImageCheckTable', () => {
5049
</ACSContextProvider>,
5150
);
5251

53-
await waitFor(() => {
52+
await waitFor(() => {
5453
screen.getByTestId('image-check-table');
5554
});
5655
});

packages/pipelines/src/components/Output/Tabs/AdvancedClusterSecurity/ImageScan/ImageScanTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const ImageScanTitle = () => {
77
return (
88
<Content
99
style={{
10-
marginBottom: "var(--pf-t--global--spacer--sm)",
10+
marginBottom: 'var(--pf-t--global--spacer--sm)',
1111
}}
1212
>
1313
<Content component={ContentVariants.p}>

packages/pipelines/src/components/Output/Tabs/EnterpriseContract/EnterpriseContractTitle.tsx

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const EnterpriseContractTitle = () => {
55
return (
66
<Content
77
style={{
8-
marginBottom: "var(--pf-t--global--spacer--sm)",
8+
marginBottom: 'var(--pf-t--global--spacer--sm)',
99
}}
1010
>
1111
<Content component={ContentVariants.p}>
@@ -18,7 +18,9 @@ const EnterpriseContractTitle = () => {
1818
isInline
1919
iconPosition="right"
2020
icon={
21-
<ExternalLinkAltIcon style={{ fontSize: "var(--pf-t--global--icon--size--font--xs)" }} />
21+
<ExternalLinkAltIcon
22+
style={{ fontSize: 'var(--pf-t--global--icon--size--font--xs)' }}
23+
/>
2224
}
2325
component={(props) => (
2426
<a
@@ -36,7 +38,9 @@ const EnterpriseContractTitle = () => {
3638
variant="link"
3739
style={{ padding: 0 }}
3840
icon={
39-
<ExternalLinkAltIcon style={{ fontSize: "var(--pf-t--global--icon--size--font--xs)" }} />
41+
<ExternalLinkAltIcon
42+
style={{ fontSize: 'var(--pf-t--global--icon--size--font--xs)' }}
43+
/>
4044
}
4145
iconPosition="right"
4246
component={(props) => (
@@ -58,7 +62,9 @@ const EnterpriseContractTitle = () => {
5862
padding: 0,
5963
}}
6064
icon={
61-
<ExternalLinkAltIcon style={{ fontSize: "var(--pf-t--global--icon--size--font--xs)" }} />
65+
<ExternalLinkAltIcon
66+
style={{ fontSize: 'var(--pf-t--global--icon--size--font--xs)' }}
67+
/>
6268
}
6369
iconPosition="right"
6470
>

0 commit comments

Comments
 (0)