@devtron-labs/devtron-fe-common-lib 1.12.0-pre-9 → 1.13.0-beta-1
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/dist/{@common-rjsf-DBdet7YO.js → @common-rjsf-DHa4CNIm.js} +13638 -12979
- package/dist/{@framer-motion-CR14HVwJ.js → @framer-motion-Hh5HoZEj.js} +1 -1
- package/dist/{@react-dates-z_WnuIha.js → @react-dates-RAg1eRYJ.js} +1 -1
- package/dist/{@react-select-C1KOG39W.js → @react-select-Cyc43HrK.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DE3LznCK.js → @react-virtualized-sticky-tree-Cby7tsJ8.js} +1 -1
- package/dist/{@vendor-0Z6AwxJy.js → @vendor-BZpoz8Ez.js} +12042 -12042
- package/dist/Common/Checkbox/Checkbox.d.ts +2 -0
- package/dist/Common/Checkbox/index.d.ts +1 -0
- package/dist/Common/Constants.d.ts +2 -2
- package/dist/Common/Drawer/index.d.ts +1 -0
- package/dist/Common/EmptyState/index.d.ts +2 -0
- package/dist/Common/Helper.d.ts +5 -1
- package/dist/Common/Toggle/Toggle.d.ts +4 -1
- package/dist/Common/Types.d.ts +2 -0
- package/dist/Common/index.d.ts +2 -3
- package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +2 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/constants.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/index.d.ts +3 -0
- package/dist/Shared/Components/AppStatusModal/service.d.ts +4 -0
- package/dist/Shared/Components/AppStatusModal/types.d.ts +78 -0
- package/dist/Shared/Components/AppStatusModal/utils.d.ts +8 -0
- package/dist/Shared/Components/Button/types.d.ts +3 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +9 -76
- package/dist/Shared/Components/CICDHistory/utils.d.ts +7 -3
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +10 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +22 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +20 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
- package/dist/Shared/Components/Error/types.d.ts +4 -0
- package/dist/Shared/Components/Error/utils.d.ts +1 -0
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +0 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +23 -0
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/types.d.ts +2 -1
- package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
- package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/License/index.d.ts +1 -1
- package/dist/Shared/Components/License/utils.d.ts +2 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +33 -7
- package/dist/Shared/Components/index.d.ts +2 -1
- package/dist/Shared/Helpers.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +11 -1
- package/dist/Shared/constants.d.ts +18 -24
- package/dist/Shared/types.d.ts +101 -2
- package/dist/assets/@common-rjsf.css +1 -1
- package/dist/assets/ic-amazon-eks.13404569.svg +5 -0
- package/dist/assets/ic-arrow-square-out.59bb549a.svg +3 -0
- package/dist/assets/ic-azure-aks.a9e437d5.svg +46 -0
- package/dist/assets/{ic-timeout-red.5eda1010.svg → ic-bulk-check.0f698efa.svg} +4 -4
- package/dist/assets/ic-bulk-check.99e92f7a.svg +21 -0
- package/dist/assets/ic-caret-down-small.7c4f88bf.svg +3 -0
- package/dist/assets/ic-caret-right.0ff813c2.svg +3 -0
- package/dist/assets/ic-celebration.77350694.svg +238 -0
- package/dist/assets/ic-checkbox-hover.0151d832.svg +20 -0
- package/dist/assets/ic-checkbox-hover.93e8d66a.svg +20 -0
- package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +22 -0
- package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +22 -0
- package/dist/assets/ic-checkbox-selected.47444fab.svg +20 -0
- package/dist/assets/ic-checkbox-selected.c5539d6f.svg +20 -0
- package/dist/assets/{ic-check-grey.f556e371.svg → ic-checkbox-unselected.8054e3d7.svg} +2 -4
- package/dist/assets/ic-checkbox-unselected.ab91cdba.svg +19 -0
- package/dist/assets/ic-cloud-vms.27ea954e.svg +5 -0
- package/dist/assets/ic-disconnect.26bad827.svg +3 -0
- package/dist/assets/ic-expand-right-sm.9b347d49.svg +3 -0
- package/dist/assets/ic-expand-sm.a9a724f8.svg +3 -0
- package/dist/assets/ic-gift-gradient.7690a246.svg +9 -0
- package/dist/assets/ic-gift.9b048fc7.svg +3 -0
- package/dist/assets/ic-gitlab.ac331d67.svg +31 -0
- package/dist/assets/ic-google-gke.07314724.svg +9 -0
- package/dist/assets/ic-install.28c3beec.svg +3 -0
- package/dist/assets/ic-k3s.7f4bf72d.svg +3 -0
- package/dist/assets/ic-kind.bd8ee992.svg +9 -0
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-man-on-rocket.7f67e914.svg +94 -0
- package/dist/assets/ic-megaphone-left.6b2a00b7.svg +3 -0
- package/dist/assets/ic-minikube.d9ff1575.svg +9 -0
- package/dist/assets/ic-mobile.7c649251.svg +4 -0
- package/dist/assets/ic-sparkle-color.01c0be88.svg +1 -0
- package/dist/assets/ic-ubuntu.fa47508f.svg +4 -0
- package/dist/assets/ic-user-circle.7d7152fa.svg +3 -0
- package/dist/assets/ic-wifi-slash.d0390749.svg +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +876 -850
- package/package.json +1 -1
- package/dist/Common/Checkbox.d.ts +0 -5
- package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +0 -6
- package/dist/Shared/Components/AnnouncementBanner/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +0 -3
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +0 -2
- package/dist/assets/ic-disconnected.551d6161.svg +0 -29
- package/dist/assets/ic-megaphone.b9f9a901.svg +0 -19
@@ -3,12 +3,15 @@ export declare const iconMap: {
|
|
3
3
|
'ic-73strings': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
4
4
|
'ic-aborted': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
5
5
|
'ic-add': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
|
+
'ic-amazon-eks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
6
7
|
'ic-apica': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
8
|
'ic-app-group': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
9
|
'ic-arrow-clockwise': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
10
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
|
+
'ic-arrow-square-out': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
12
|
'ic-arrows-left-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
13
|
'ic-ather': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
|
+
'ic-azure-aks': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
15
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
16
|
'ic-bg-cluster': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
17
|
'ic-bharatpe': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -19,7 +22,9 @@ export declare const iconMap: {
|
|
19
22
|
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
20
23
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
24
|
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
|
+
'ic-caret-down-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
26
|
'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
|
+
'ic-caret-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
28
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
29
|
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
30
|
'ic-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -30,6 +35,7 @@ export declare const iconMap: {
|
|
30
35
|
'ic-clock': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
36
|
'ic-close-large': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
32
37
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
38
|
+
'ic-cloud-vms': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
33
39
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
34
40
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
35
41
|
'ic-cookr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -42,19 +48,25 @@ export declare const iconMap: {
|
|
42
48
|
'ic-delhivery': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
43
49
|
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
44
50
|
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
|
+
'ic-disconnect': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
45
52
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
46
53
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
47
54
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
48
55
|
'ic-error': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
|
+
'ic-expand-right-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
|
+
'ic-expand-sm': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
49
58
|
'ic-failure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
50
59
|
'ic-file-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
60
|
'ic-folder-user': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
61
|
'ic-gear': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
|
+
'ic-gift-gradient': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
|
+
'ic-gift': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
64
|
'ic-git': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
65
|
'ic-github': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
66
|
'ic-gitlab': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
67
|
'ic-google-artifact-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
57
68
|
'ic-google-container-registry': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
|
+
'ic-google-gke': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
58
70
|
'ic-google': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
71
|
'ic-grid-view': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
72
|
'ic-hand-pointing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -68,9 +80,13 @@ export declare const iconMap: {
|
|
68
80
|
'ic-in-progress': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
81
|
'ic-info-filled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
82
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
|
+
'ic-install': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
84
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
|
+
'ic-k3s': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
86
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
87
|
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
88
|
+
'ic-kind': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
89
|
+
'ic-laptop': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
90
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
91
|
'ic-lightning-fill': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
92
|
'ic-lightning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -79,9 +95,12 @@ export declare const iconMap: {
|
|
79
95
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
80
96
|
'ic-medium-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
81
97
|
'ic-medium-paintbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
98
|
+
'ic-megaphone-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
82
99
|
'ic-memory': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
83
100
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
101
|
+
'ic-minikube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
84
102
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
|
+
'ic-mobile': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
85
104
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
86
105
|
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
87
106
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -101,6 +120,7 @@ export declare const iconMap: {
|
|
101
120
|
'ic-sort-ascending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
102
121
|
'ic-sort-descending': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
103
122
|
'ic-sortable': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
123
|
+
'ic-sparkle-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
104
124
|
'ic-spinny': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
105
125
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
106
126
|
'ic-stamp': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -113,10 +133,13 @@ export declare const iconMap: {
|
|
113
133
|
'ic-timeout-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
114
134
|
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
115
135
|
'ic-travclan': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
136
|
+
'ic-ubuntu': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
116
137
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
138
|
+
'ic-user-circle': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
117
139
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
118
140
|
'ic-users': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
119
141
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
142
|
+
'ic-wifi-slash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
120
143
|
};
|
121
144
|
export type IconName = keyof typeof iconMap;
|
122
145
|
export interface IconsProps extends Omit<IconBaseProps, 'name' | 'iconMap'> {
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color }: IconBaseProps) => JSX.Element;
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color, dataTestId }: IconBaseProps) => JSX.Element;
|
@@ -11,7 +11,7 @@ export interface IconBaseProps {
|
|
11
11
|
* The size of the icon in pixels.
|
12
12
|
* @default 16
|
13
13
|
*/
|
14
|
-
size?: IconBaseSizeType;
|
14
|
+
size?: IconBaseSizeType | null;
|
15
15
|
/** Props to configure the tooltip when hovering over the icon. */
|
16
16
|
tooltipProps?: TooltipProps;
|
17
17
|
/**
|
@@ -20,5 +20,6 @@ export interface IconBaseProps {
|
|
20
20
|
* @example `'B500'`, `'N200'`, `'G50'`, `'R700'`
|
21
21
|
*/
|
22
22
|
color: IconBaseColorType;
|
23
|
+
dataTestId?: string;
|
23
24
|
}
|
24
25
|
export {};
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { InfoBlockVariant } from '../../constants';
|
1
2
|
import { ButtonProps } from '../Button';
|
2
3
|
import { InfoBlockProps } from './types';
|
3
|
-
export declare const
|
4
|
-
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockProps['variant'], InfoBlockProps['customIcon']>;
|
4
|
+
export declare const VARIANT_TO_ICON_MAP: Record<InfoBlockVariant, InfoBlockProps['customIcon']>;
|
5
5
|
export declare const CONTAINER_SIZE_TO_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
6
6
|
export declare const SIZE_TO_ICON_CLASS_MAP: Record<InfoBlockProps['size'], string>;
|
7
7
|
export declare const CONTAINER_SIZE_TO_BUTTON_SIZE: Record<InfoBlockProps['size'], ButtonProps['size']>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ReactElement, ReactNode } from 'react';
|
2
|
-
import { ComponentSizeType } from '../../constants';
|
2
|
+
import { ComponentSizeType, InfoBlockVariantType } from '../../constants';
|
3
3
|
import { BorderConfigType, ComponentLayoutType } from '../../types';
|
4
4
|
import { ButtonComponentType, ButtonProps } from '../Button';
|
5
5
|
export type InfoBlockProps = {
|
@@ -10,7 +10,7 @@ export type InfoBlockProps = {
|
|
10
10
|
/**
|
11
11
|
* @default 'information'
|
12
12
|
*/
|
13
|
-
variant?:
|
13
|
+
variant?: InfoBlockVariantType;
|
14
14
|
/**
|
15
15
|
* @default ComponentSizeType.large
|
16
16
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { InfoIconTippyProps } from '../../../Common/Types';
|
2
|
-
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, }: InfoIconTippyProps) => JSX.Element;
|
2
|
+
declare const InfoIconTippy: ({ heading, infoText, iconClass, documentationLink, documentationLinkText, additionalContent, iconClassName, placement, dataTestid, children, headingInfo, buttonPadding, }: InfoIconTippyProps) => JSX.Element;
|
3
3
|
export default InfoIconTippy;
|
@@ -2,4 +2,4 @@ export { default as ActivateLicenseDialog } from './ActivateLicenseDialog';
|
|
2
2
|
export { default as DevtronLicenseCard } from './DevtronLicenseCard';
|
3
3
|
export { ICDevtronWithBorder, default as InstallationFingerprintInfo } from './License.components';
|
4
4
|
export * from './types';
|
5
|
-
export { parseDevtronLicenseData } from './utils';
|
5
|
+
export { parseDevtronLicenseData, parseDevtronLicenseDTOIntoLicenseCardData } from './utils';
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { DevtronLicenseDTO } from '../../types';
|
2
|
-
import { DevtronLicenseInfo, LicenseStatus } from './types';
|
2
|
+
import { DevtronLicenseCardProps, DevtronLicenseInfo, LicenseStatus } from './types';
|
3
3
|
export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
|
4
4
|
bgColor: string;
|
5
5
|
textColor: string;
|
6
6
|
};
|
7
|
+
export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
|
7
8
|
export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
|
8
9
|
export declare const getGateKeeperUrl: (fingerprint: string) => string;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SEVERITIES } from './constants';
|
2
2
|
import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--
|
4
|
+
color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
|
5
5
|
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TabGroupProps, TabProps } from './TabGroup.types';
|
2
|
-
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
|
2
|
+
export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, iconElement, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active" | "iconElement"> & Pick<TabGroupProps, "size"> & {
|
3
3
|
className: string;
|
4
4
|
}) => JSX.Element;
|
5
5
|
export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
|
@@ -65,6 +65,38 @@ type TabTooltipProps = {
|
|
65
65
|
shouldWrapTooltip?: never;
|
66
66
|
tooltipProps?: never;
|
67
67
|
};
|
68
|
+
/**
|
69
|
+
* Represents the properties for defining an icon in a tab group.
|
70
|
+
* This type allows for three configurations:
|
71
|
+
*
|
72
|
+
* 1. **Icon as a functional component or string**:
|
73
|
+
* - Use the `icon` property to specify either a functional component that renders an SVG or a string representing the name of the icon.
|
74
|
+
* - The `iconElement` property must not be provided in this case.
|
75
|
+
*
|
76
|
+
* 2. **Icon as a JSX element**:
|
77
|
+
* - Use the `iconElement` property to specify a JSX element representing the icon.
|
78
|
+
* - The `icon` property must not be provided in this case.
|
79
|
+
*
|
80
|
+
* 3. **No icon**:
|
81
|
+
* - Neither `icon` nor `iconElement` is provided, resulting in no icon being displayed.
|
82
|
+
*
|
83
|
+
*/
|
84
|
+
type TabGroupIconProp = {
|
85
|
+
/**
|
86
|
+
* A functional component rendering an SVG or a string representing the icon name. Mutually exclusive with `iconElement`.
|
87
|
+
*/
|
88
|
+
icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
89
|
+
iconElement?: never;
|
90
|
+
} | {
|
91
|
+
icon?: never;
|
92
|
+
/**
|
93
|
+
* A JSX element representing the icon. Mutually exclusive with `icon`.
|
94
|
+
*/
|
95
|
+
iconElement: JSX.Element;
|
96
|
+
} | {
|
97
|
+
icon?: never;
|
98
|
+
iconElement?: never;
|
99
|
+
};
|
68
100
|
export type TabProps = {
|
69
101
|
/**
|
70
102
|
* Unique identifier for the tab.
|
@@ -79,12 +111,6 @@ export type TabProps = {
|
|
79
111
|
* @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
|
80
112
|
*/
|
81
113
|
description?: string | string[];
|
82
|
-
/**
|
83
|
-
* Icon to be displayed in the tab.
|
84
|
-
* This can either be a functional component that renders a SVG
|
85
|
-
* or a string representing the name of the icon to be rendered by the Icon component.
|
86
|
-
*/
|
87
|
-
icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
|
88
114
|
/**
|
89
115
|
* Badge number to be displayed on the tab, typically for notifications.
|
90
116
|
*/
|
@@ -107,7 +133,7 @@ export type TabProps = {
|
|
107
133
|
* Disables the tab, preventing interaction and indicating an inactive state.
|
108
134
|
*/
|
109
135
|
disabled?: boolean;
|
110
|
-
} & ConditionalTabType & TabTooltipProps;
|
136
|
+
} & ConditionalTabType & TabTooltipProps & TabGroupIconProp;
|
111
137
|
export interface TabGroupProps {
|
112
138
|
/**
|
113
139
|
* Array of tabs to be rendered.
|
@@ -3,8 +3,8 @@ export * from './ActionMenu';
|
|
3
3
|
export * from './ActivityIndicator';
|
4
4
|
export * from './AnimatedDeployButton';
|
5
5
|
export * from './AnimatedTimer';
|
6
|
-
export * from './AnnouncementBanner';
|
7
6
|
export * from './APIResponseHandler';
|
7
|
+
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
10
|
export * from './BulkOperations';
|
@@ -24,6 +24,7 @@ export * from './CountrySelect';
|
|
24
24
|
export * from './CustomInput';
|
25
25
|
export * from './DatePicker';
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
|
+
export * from './DeploymentStatusBreakdown';
|
27
28
|
export * from './DetectBottom';
|
28
29
|
export * from './DiffViewer';
|
29
30
|
export * from './DynamicDataTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -4,7 +4,7 @@ import { StrictRJSFSchema } from '@rjsf/utils';
|
|
4
4
|
import { Pair } from 'yaml';
|
5
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
|
-
import { AggregatedNodes,
|
7
|
+
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
9
9
|
interface HighlightSearchTextProps {
|
10
10
|
/**
|
@@ -36,7 +36,6 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
36
36
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
37
37
|
export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
|
38
38
|
export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
|
39
|
-
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
40
39
|
export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
|
41
40
|
export declare const decode: (data: any, isEncoded?: boolean) => {};
|
42
41
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
@@ -101,4 +100,5 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
101
100
|
}) => string;
|
102
101
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
103
102
|
export declare const clearCookieOnLogout: () => void;
|
103
|
+
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
104
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export type { MainContext } from './types';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
5
5
|
export * from './UserEmailProvider';
|
@@ -1,7 +1,16 @@
|
|
1
1
|
import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
|
2
2
|
import { SERVER_MODE } from '../../Common';
|
3
3
|
import { ServerInfo } from '../Components/Header/types';
|
4
|
-
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType } from '..';
|
4
|
+
import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '..';
|
5
|
+
export interface ReloadVersionConfigTypes {
|
6
|
+
bgUpdated: boolean;
|
7
|
+
handleAppUpdate: () => void;
|
8
|
+
doesNeedRefresh: boolean;
|
9
|
+
updateServiceWorker: () => Promise<void>;
|
10
|
+
handleControllerChange: () => void;
|
11
|
+
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
|
+
isRefreshing: boolean;
|
13
|
+
}
|
5
14
|
export interface MainContext {
|
6
15
|
serverMode: SERVER_MODE;
|
7
16
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
@@ -46,6 +55,7 @@ export interface MainContext {
|
|
46
55
|
licenseData: DevtronLicenseInfo;
|
47
56
|
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
48
57
|
canFetchHelmAppStatus: boolean;
|
58
|
+
reloadVersionConfig: ReloadVersionConfigTypes;
|
49
59
|
intelligenceConfig: IntelligenceConfig;
|
50
60
|
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
51
61
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { OptionType } from '../Common/Types';
|
2
|
-
import {
|
1
|
+
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
|
+
import { InfoBlockProps } from './Components';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
3
4
|
export declare const ARTIFACT_STATUS: {
|
4
5
|
PROGRESSING: string;
|
5
6
|
DEGRADED: string;
|
@@ -50,28 +51,6 @@ export declare enum EnvironmentTypeEnum {
|
|
50
51
|
production = "Production",
|
51
52
|
nonProduction = "Non-Production"
|
52
53
|
}
|
53
|
-
export declare enum TIMELINE_STATUS {
|
54
|
-
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
55
|
-
GIT_COMMIT = "GIT_COMMIT",
|
56
|
-
GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
|
57
|
-
ARGOCD_SYNC = "ARGOCD_SYNC",
|
58
|
-
ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
|
59
|
-
KUBECTL_APPLY = "KUBECTL_APPLY",
|
60
|
-
KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
|
61
|
-
KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
|
62
|
-
HEALTHY = "HEALTHY",
|
63
|
-
APP_HEALTH = "APP_HEALTH",
|
64
|
-
DEPLOYMENT_FAILED = "FAILED",
|
65
|
-
FETCH_TIMED_OUT = "TIMED_OUT",
|
66
|
-
UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
|
67
|
-
DEGRADED = "DEGRADED",
|
68
|
-
DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
|
69
|
-
ABORTED = "ABORTED",
|
70
|
-
INPROGRESS = "INPROGRESS",
|
71
|
-
HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
|
72
|
-
HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
|
73
|
-
HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
|
74
|
-
}
|
75
54
|
/**
|
76
55
|
* Constants for NO MATCHING result
|
77
56
|
*/
|
@@ -435,3 +414,18 @@ export declare const Routes: {
|
|
435
414
|
};
|
436
415
|
export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
|
437
416
|
export declare const INVALID_LICENSE_KEY = "inValid";
|
417
|
+
export declare enum InfoBlockVariant {
|
418
|
+
ERROR = "error",
|
419
|
+
HELP = "help",
|
420
|
+
INFORMATION = "information",
|
421
|
+
SUCCESS = "success",
|
422
|
+
WARNING = "warning",
|
423
|
+
NEUTRAL = "neutral"
|
424
|
+
}
|
425
|
+
export type InfoBlockVariantType = 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
|
426
|
+
export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
|
427
|
+
export declare const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], IconBaseColorType>;
|
428
|
+
export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], string>;
|
429
|
+
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
|
+
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
|
+
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,9 +1,11 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
1
2
|
import { ParsedCountry } from 'react-international-phone';
|
2
3
|
import { Dayjs } from 'dayjs';
|
3
4
|
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
5
|
+
import { ReleaseMode } from '../Pages/index';
|
4
6
|
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
5
|
-
import { SelectPickerOptionType } from './Components';
|
6
|
-
import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
7
|
+
import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
|
8
|
+
import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
7
9
|
export declare enum EnvType {
|
8
10
|
CHART = "helm_charts",
|
9
11
|
APPLICATION = "apps"
|
@@ -111,6 +113,7 @@ export interface Node {
|
|
111
113
|
canBeHibernated: boolean;
|
112
114
|
isHibernated: boolean;
|
113
115
|
hasDrift?: boolean;
|
116
|
+
status?: string;
|
114
117
|
}
|
115
118
|
export interface iNodes extends Array<iNode> {
|
116
119
|
}
|
@@ -127,6 +130,7 @@ export interface ResourceTree {
|
|
127
130
|
podMetadata: Array<PodMetaData>;
|
128
131
|
status: string;
|
129
132
|
resourcesSyncResult?: Record<string, string>;
|
133
|
+
wfrId?: number;
|
130
134
|
}
|
131
135
|
export declare enum AppType {
|
132
136
|
DEVTRON_APP = "devtron_app",
|
@@ -197,6 +201,12 @@ export interface AppDetails {
|
|
197
201
|
chartAvatar?: string;
|
198
202
|
fluxTemplateType?: string;
|
199
203
|
FluxAppStatusDetail?: FluxAppStatusDetail;
|
204
|
+
isPipelineTriggered?: boolean;
|
205
|
+
releaseMode?: ReleaseMode;
|
206
|
+
}
|
207
|
+
export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
|
208
|
+
envId: number;
|
209
|
+
handleCloseModal?: () => void;
|
200
210
|
}
|
201
211
|
export declare enum RegistryType {
|
202
212
|
GIT = "git",
|
@@ -955,6 +965,95 @@ export declare enum RegistryCredentialsType {
|
|
955
965
|
USERNAME_PASSWORD = "username_password",
|
956
966
|
ANONYMOUS = "anonymous"
|
957
967
|
}
|
968
|
+
export interface SyncStageResourceDetail {
|
969
|
+
id: number;
|
970
|
+
cdWorkflowRunnerId: number;
|
971
|
+
resourceGroup: string;
|
972
|
+
resourceKind: string;
|
973
|
+
resourceName: string;
|
974
|
+
resourcePhase: string;
|
975
|
+
resourceStatus: string;
|
976
|
+
statusMessage: string;
|
977
|
+
}
|
978
|
+
export declare enum TIMELINE_STATUS {
|
979
|
+
DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
|
980
|
+
GIT_COMMIT = "GIT_COMMIT",
|
981
|
+
GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
|
982
|
+
ARGOCD_SYNC = "ARGOCD_SYNC",
|
983
|
+
ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
|
984
|
+
KUBECTL_APPLY = "KUBECTL_APPLY",
|
985
|
+
KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
|
986
|
+
KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
|
987
|
+
HEALTHY = "HEALTHY",
|
988
|
+
APP_HEALTH = "APP_HEALTH",
|
989
|
+
DEPLOYMENT_FAILED = "FAILED",
|
990
|
+
FETCH_TIMED_OUT = "TIMED_OUT",
|
991
|
+
UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
|
992
|
+
DEGRADED = "DEGRADED",
|
993
|
+
DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
|
994
|
+
ABORTED = "ABORTED",
|
995
|
+
INPROGRESS = "INPROGRESS",
|
996
|
+
HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
|
997
|
+
HELM_PACKAGE_GENERATION_FAILED = "HELM_PACKAGE_GENERATION_FAILED",
|
998
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
|
999
|
+
HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
|
1000
|
+
}
|
1001
|
+
export interface DeploymentStatusDetailsTimelineType extends Pick<SyncStageResourceDetail, 'id' | 'cdWorkflowRunnerId'> {
|
1002
|
+
status: TIMELINE_STATUS;
|
1003
|
+
statusDetail: string;
|
1004
|
+
statusTime: string;
|
1005
|
+
resourceDetails?: SyncStageResourceDetail[];
|
1006
|
+
}
|
1007
|
+
export interface DeploymentStatusDetailsType {
|
1008
|
+
deploymentFinishedOn: string;
|
1009
|
+
deploymentStartedOn: string;
|
1010
|
+
triggeredBy: string;
|
1011
|
+
statusFetchCount: number;
|
1012
|
+
statusLastFetchedAt: string;
|
1013
|
+
timelines: DeploymentStatusDetailsTimelineType[];
|
1014
|
+
wfrStatus?: WorkflowRunnerStatusDTO;
|
1015
|
+
isDeploymentWithoutApproval: boolean;
|
1016
|
+
}
|
1017
|
+
export type DeploymentStatusTimelineType = TIMELINE_STATUS.DEPLOYMENT_INITIATED | TIMELINE_STATUS.GIT_COMMIT | TIMELINE_STATUS.ARGOCD_SYNC | TIMELINE_STATUS.KUBECTL_APPLY | TIMELINE_STATUS.APP_HEALTH | TIMELINE_STATUS.HELM_PACKAGE_GENERATED | TIMELINE_STATUS.HELM_MANIFEST_PUSHED_TO_HELM_REPO;
|
1018
|
+
export type DeploymentStatusBreakdownItemIconType = 'success' | 'failed' | 'unknown' | 'inprogress' | 'unreachable' | 'loading' | 'disconnect' | 'timed_out' | '';
|
1019
|
+
export declare enum DeploymentPhaseType {
|
1020
|
+
PRE_SYNC = "PreSync",
|
1021
|
+
SYNC = "Sync",
|
1022
|
+
POST_SYNC = "PostSync",
|
1023
|
+
SKIP = "Skip",
|
1024
|
+
SYNC_FAIL = "SyncFail"
|
1025
|
+
}
|
1026
|
+
export interface DeploymentStatusBreakdownItemType {
|
1027
|
+
icon: DeploymentStatusBreakdownItemIconType;
|
1028
|
+
displayText: ReactNode;
|
1029
|
+
displaySubText: string;
|
1030
|
+
time: string;
|
1031
|
+
/**
|
1032
|
+
* Shown in accordion details if type is TIMELINE_STATUS.KUBECTL_APPLY to display resource details
|
1033
|
+
*/
|
1034
|
+
resourceDetails?: SyncStageResourceDetail[];
|
1035
|
+
isCollapsed?: boolean;
|
1036
|
+
/**
|
1037
|
+
* Sub-Steps in accordion details in case type is TIMELINE_STATUS.KUBECTL_APPLY
|
1038
|
+
*/
|
1039
|
+
subSteps?: {
|
1040
|
+
icon: DeploymentStatusBreakdownItemIconType;
|
1041
|
+
message: string;
|
1042
|
+
phase?: DeploymentPhaseType;
|
1043
|
+
}[];
|
1044
|
+
/**
|
1045
|
+
* To be shown in accordion details below heading tile
|
1046
|
+
*/
|
1047
|
+
timelineStatus?: ReactNode;
|
1048
|
+
showHelmManifest?: boolean;
|
1049
|
+
}
|
1050
|
+
export interface DeploymentStatusDetailsBreakdownDataType {
|
1051
|
+
deploymentStatus: (typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS];
|
1052
|
+
deploymentTriggerTime: string;
|
1053
|
+
deploymentEndTime: string;
|
1054
|
+
triggeredBy: string;
|
1055
|
+
deploymentStatusBreakdown: Partial<Record<DeploymentStatusTimelineType, DeploymentStatusBreakdownItemType>>;
|
1056
|
+
}
|
958
1057
|
export interface IntelligenceConfig {
|
959
1058
|
clusterId: number;
|
960
1059
|
metadata: Record<string, string>;
|