@backstage-community/plugin-tekton 3.36.1 → 3.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage-community/plugin-tekton
|
|
2
2
|
|
|
3
|
+
## 3.37.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 701b9e7: Backstage version bump to v1.49.2
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 92e7fe8: Fix horizontal bar stylings so they render properly.
|
|
12
|
+
- Updated dependencies [701b9e7]
|
|
13
|
+
- @backstage-community/plugin-tekton-common@1.20.0
|
|
14
|
+
- @backstage-community/plugin-tekton-react@0.5.0
|
|
15
|
+
|
|
3
16
|
## 3.36.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import * as _backstage_catalog_model from '@backstage/catalog-model';
|
|
3
2
|
import * as react from 'react';
|
|
4
3
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
@@ -39,16 +38,16 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
39
38
|
}>;
|
|
40
39
|
inputs: {};
|
|
41
40
|
params: {
|
|
42
|
-
defaultPath?: [Error:
|
|
41
|
+
defaultPath?: [Error: `Use the 'path' param instead`];
|
|
43
42
|
path: string;
|
|
44
|
-
defaultTitle?: [Error:
|
|
43
|
+
defaultTitle?: [Error: `Use the 'title' param instead`];
|
|
45
44
|
title: string;
|
|
46
|
-
defaultGroup?: [Error:
|
|
47
|
-
group?: (
|
|
48
|
-
icon?: string | react.ReactElement
|
|
45
|
+
defaultGroup?: [Error: `Use the 'group' param instead`];
|
|
46
|
+
group?: ("overview" | "documentation" | "development" | "deployment" | "operation" | "observability") | (string & {});
|
|
47
|
+
icon?: string | react.ReactElement;
|
|
49
48
|
loader: () => Promise<JSX.Element>;
|
|
50
|
-
routeRef?: _backstage_frontend_plugin_api.RouteRef
|
|
51
|
-
filter?: _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean)
|
|
49
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
50
|
+
filter?: string | _backstage_filter_predicates.FilterPredicate | ((entity: _backstage_catalog_model.Entity) => boolean);
|
|
52
51
|
};
|
|
53
52
|
}>;
|
|
54
53
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineBars.esm.js","sources":["../../../src/components/Charts/PipelineBars.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useContext, useState } from 'react';\nimport './PipelineBars.css';\nimport { Tooltip } from '@patternfly/react-core';\n\nimport {\n ComputedStatus,\n getRunStatusColor,\n getTaskRunsForPipelineRun,\n HorizontalStackedBars,\n PipelineRunKind,\n TaskStatusTooltip,\n TaskStatusTypes,\n} from '@backstage-community/plugin-tekton-react';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\nimport { getTaskStatusOfPLR } from '../../utils/tekton-utils';\nimport PipelineRunLogDialog from '../PipelineRunLogs/PipelineRunLogDialog';\n\ntype PipelineBarProps = { pipelineRun: PipelineRunKind };\n\nconst PipelineBars = ({ pipelineRun }: PipelineBarProps) => {\n const { watchResourcesData } = useContext(TektonResourcesContext);\n const [open, setOpen] = useState<boolean>(false);\n const pods = watchResourcesData?.pods?.data || [];\n const taskRuns = watchResourcesData?.taskruns?.data || [];\n const plrTasks = getTaskRunsForPipelineRun(pipelineRun, taskRuns);\n const taskStatus = getTaskStatusOfPLR(pipelineRun, plrTasks);\n\n const openDialog = () => {\n setOpen(true);\n };\n\n const closeDialog = () => {\n setOpen(false);\n };\n\n return (\n <>\n <PipelineRunLogDialog\n open={open}\n closeDialog={closeDialog}\n pods={pods}\n taskRuns={taskRuns}\n pipelineRun={pipelineRun}\n />\n <Tooltip content={<TaskStatusTooltip taskStatus={taskStatus} />}>\n <HorizontalStackedBars\n id={`${pipelineRun?.metadata?.name}`}\n onClick={openDialog}\n height=\"1em\"\n
|
|
1
|
+
{"version":3,"file":"PipelineBars.esm.js","sources":["../../../src/components/Charts/PipelineBars.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { useContext, useState } from 'react';\nimport './PipelineBars.css';\nimport { Tooltip } from '@patternfly/react-core';\n\nimport {\n ComputedStatus,\n getRunStatusColor,\n getTaskRunsForPipelineRun,\n HorizontalStackedBars,\n PipelineRunKind,\n TaskStatusTooltip,\n TaskStatusTypes,\n} from '@backstage-community/plugin-tekton-react';\n\nimport { TektonResourcesContext } from '../../hooks/TektonResourcesContext';\nimport { getTaskStatusOfPLR } from '../../utils/tekton-utils';\nimport PipelineRunLogDialog from '../PipelineRunLogs/PipelineRunLogDialog';\n\ntype PipelineBarProps = { pipelineRun: PipelineRunKind };\n\nconst PipelineBars = ({ pipelineRun }: PipelineBarProps) => {\n const { watchResourcesData } = useContext(TektonResourcesContext);\n const [open, setOpen] = useState<boolean>(false);\n const pods = watchResourcesData?.pods?.data || [];\n const taskRuns = watchResourcesData?.taskruns?.data || [];\n const plrTasks = getTaskRunsForPipelineRun(pipelineRun, taskRuns);\n const taskStatus = getTaskStatusOfPLR(pipelineRun, plrTasks);\n\n const openDialog = () => {\n setOpen(true);\n };\n\n const closeDialog = () => {\n setOpen(false);\n };\n\n return (\n <>\n <PipelineRunLogDialog\n open={open}\n closeDialog={closeDialog}\n pods={pods}\n taskRuns={taskRuns}\n pipelineRun={pipelineRun}\n />\n <Tooltip content={<TaskStatusTooltip taskStatus={taskStatus} />}>\n <HorizontalStackedBars\n id={`${pipelineRun?.metadata?.name}`}\n onClick={openDialog}\n height=\"1em\"\n values={Object.keys(ComputedStatus).map(status => ({\n color: getRunStatusColor(\n ComputedStatus[status as keyof typeof ComputedStatus],\n ).color,\n name: status,\n size: taskStatus[\n ComputedStatus[\n status as keyof typeof ComputedStatus\n ] as keyof TaskStatusTypes\n ],\n }))}\n />\n </Tooltip>\n </>\n );\n};\n\nexport default PipelineBars;\n"],"names":[],"mappings":";;;;;;;;;AAmCA,MAAM,YAAA,GAAe,CAAC,EAAE,WAAA,EAAY,KAAwB;AAC1D,EAAA,MAAM,EAAE,kBAAA,EAAmB,GAAI,UAAA,CAAW,sBAAsB,CAAA;AAChE,EAAA,MAAM,CAAC,IAAA,EAAM,OAAO,CAAA,GAAI,SAAkB,KAAK,CAAA;AAC/C,EAAA,MAAM,IAAA,GAAO,kBAAA,EAAoB,IAAA,EAAM,IAAA,IAAQ,EAAC;AAChD,EAAA,MAAM,QAAA,GAAW,kBAAA,EAAoB,QAAA,EAAU,IAAA,IAAQ,EAAC;AACxD,EAAA,MAAM,QAAA,GAAW,yBAAA,CAA0B,WAAA,EAAa,QAAQ,CAAA;AAChE,EAAA,MAAM,UAAA,GAAa,kBAAA,CAAmB,WAAA,EAAa,QAAQ,CAAA;AAE3D,EAAA,MAAM,aAAa,MAAM;AACvB,IAAA,OAAA,CAAQ,IAAI,CAAA;AAAA,EACd,CAAA;AAEA,EAAA,MAAM,cAAc,MAAM;AACxB,IAAA,OAAA,CAAQ,KAAK,CAAA;AAAA,EACf,CAAA;AAEA,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA;AAAA,MAAC,oBAAA;AAAA,MAAA;AAAA,QACC,IAAA;AAAA,QACA,WAAA;AAAA,QACA,IAAA;AAAA,QACA,QAAA;AAAA,QACA;AAAA;AAAA,KACF;AAAA,wBACC,OAAA,EAAA,EAAQ,OAAA,kBAAS,GAAA,CAAC,iBAAA,EAAA,EAAkB,YAAwB,CAAA,EAC3D,QAAA,kBAAA,GAAA;AAAA,MAAC,qBAAA;AAAA,MAAA;AAAA,QACC,EAAA,EAAI,CAAA,EAAG,WAAA,EAAa,QAAA,EAAU,IAAI,CAAA,CAAA;AAAA,QAClC,OAAA,EAAS,UAAA;AAAA,QACT,MAAA,EAAO,KAAA;AAAA,QACP,QAAQ,MAAA,CAAO,IAAA,CAAK,cAAc,CAAA,CAAE,IAAI,CAAA,MAAA,MAAW;AAAA,UACjD,KAAA,EAAO,iBAAA;AAAA,YACL,eAAe,MAAqC;AAAA,WACtD,CAAE,KAAA;AAAA,UACF,IAAA,EAAM,MAAA;AAAA,UACN,IAAA,EAAM,UAAA,CACJ,cAAA,CACE,MACF,CACF;AAAA,SACF,CAAE;AAAA;AAAA,KACJ,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-tekton",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.0",
|
|
4
4
|
"main": "./dist/index.esm.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -60,16 +60,16 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@aonic-ui/pipelines": "^3.1.0",
|
|
63
|
-
"@backstage-community/plugin-tekton-common": "^1.
|
|
64
|
-
"@backstage-community/plugin-tekton-react": "^0.
|
|
65
|
-
"@backstage/catalog-model": "^1.7.
|
|
66
|
-
"@backstage/core-components": "^0.18.
|
|
67
|
-
"@backstage/core-plugin-api": "^1.12.
|
|
68
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
69
|
-
"@backstage/plugin-catalog-react": "^2.
|
|
63
|
+
"@backstage-community/plugin-tekton-common": "^1.20.0",
|
|
64
|
+
"@backstage-community/plugin-tekton-react": "^0.5.0",
|
|
65
|
+
"@backstage/catalog-model": "^1.7.7",
|
|
66
|
+
"@backstage/core-components": "^0.18.8",
|
|
67
|
+
"@backstage/core-plugin-api": "^1.12.4",
|
|
68
|
+
"@backstage/frontend-plugin-api": "^0.15.1",
|
|
69
|
+
"@backstage/plugin-catalog-react": "^2.1.0",
|
|
70
70
|
"@backstage/plugin-kubernetes-common": "^0.9.10",
|
|
71
|
-
"@backstage/plugin-kubernetes-react": "^0.5.
|
|
72
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
71
|
+
"@backstage/plugin-kubernetes-react": "^0.5.17",
|
|
72
|
+
"@backstage/plugin-permission-react": "^0.4.41",
|
|
73
73
|
"@backstage/theme": "^0.7.2",
|
|
74
74
|
"@kubernetes/client-node": "1.4.0",
|
|
75
75
|
"@material-ui/core": "^4.9.13",
|
|
@@ -94,9 +94,9 @@
|
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@axe-core/playwright": "^4.11.0",
|
|
97
|
-
"@backstage/cli": "^0.
|
|
98
|
-
"@backstage/dev-utils": "^1.1.
|
|
99
|
-
"@backstage/test-utils": "^1.7.
|
|
97
|
+
"@backstage/cli": "^0.36.0",
|
|
98
|
+
"@backstage/dev-utils": "^1.1.21",
|
|
99
|
+
"@backstage/test-utils": "^1.7.16",
|
|
100
100
|
"@playwright/test": "^1.57.0",
|
|
101
101
|
"@testing-library/dom": "^10.4.1",
|
|
102
102
|
"@testing-library/jest-dom": "6.9.1",
|