@devtron-labs/devtron-fe-common-lib 1.6.12-beta-1 → 1.6.13-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/{@code-editor-CrBxjFGI.js → @code-editor-BhNQeqfi.js} +9110 -8840
- package/dist/{@common-rjsf-EHYp-ATI.js → @common-rjsf-BtFJNVqQ.js} +1 -1
- package/dist/Common/AppStatus/utils.d.ts +1 -0
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +8 -6
- package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +5 -0
- package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -3
- package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +38 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +89 -25
- package/dist/Shared/Components/CICDHistory/utils.d.ts +9 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -1
- package/dist/Shared/Helpers.d.ts +3 -1
- package/dist/Shared/Providers/types.d.ts +2 -0
- package/dist/Shared/Services/common.service.d.ts +3 -1
- package/dist/Shared/Services/constants.d.ts +1 -0
- package/dist/Shared/Services/types.d.ts +16 -1
- package/dist/Shared/constants.d.ts +0 -24
- package/dist/Shared/types.d.ts +19 -3
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-aws-codecommit.43f0dd23.svg +26 -0
- package/dist/assets/ic-bitbucket.ffe914a0.svg +30 -0
- package/dist/assets/ic-calendar.1d9c66d2.svg +19 -0
- package/dist/assets/ic-environment.e639b8f3.svg +4 -0
- package/dist/assets/ic-git.89f79adf.svg +17 -0
- package/dist/assets/ic-github.bb1f1753.svg +3 -0
- package/dist/assets/ic-gitlab.de184b7f.svg +31 -0
- package/dist/assets/ic-help-filled.4468cdf1.svg +4 -0
- package/dist/assets/ic-person.d066bc6d.svg +19 -0
- package/dist/assets/{ic-pulsate-status.cc755b3f.svg → ic-pulsate-status.2ca548fd.svg} +0 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +558 -545
- package/package.json +1 -1
- package/dist/assets/ic-calendar.984accc5.svg +0 -19
- package/dist/assets/ic-person.f78738ac.svg +0 -22
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as t, O as E } from "./@vendor-CWh7bjwl.js";
|
2
2
|
import P, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as D } from "@rjsf/core";
|
4
|
-
import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-
|
4
|
+
import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-BhNQeqfi.js";
|
5
5
|
import J, { components as C } from "react-select";
|
6
6
|
import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
7
7
|
import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
|
@@ -55,7 +55,6 @@ export declare const URLS: {
|
|
55
55
|
DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
|
56
56
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
57
57
|
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
58
|
-
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
|
59
58
|
NETWORK_STATUS_INTERFACE: string;
|
60
59
|
RESOURCE_BROWSER: string;
|
61
60
|
COMPARE_CLUSTERS: string;
|
@@ -79,6 +78,7 @@ export declare const ROUTES: {
|
|
79
78
|
TELEMETRY_EVENT: string;
|
80
79
|
SERVER_INFO_API: string;
|
81
80
|
ATTRIBUTES_USER: string;
|
81
|
+
GET: string;
|
82
82
|
UPDATE: string;
|
83
83
|
ENVIRONMENT_LIST_MIN: string;
|
84
84
|
CLUSTER: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SegmentedControlProps } from './types';
|
2
|
-
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, }: SegmentedControlProps) => JSX.Element;
|
2
|
+
declare const SegmentedControl: ({ tabs, initialTab, onChange, tooltips, disabled, rootClassName, name, variant, size, isControlled, }: SegmentedControlProps) => JSX.Element;
|
3
3
|
export default SegmentedControl;
|
@@ -1,16 +1,18 @@
|
|
1
|
-
|
1
|
+
export type DeploymentChartListDTO = Array<{
|
2
2
|
id: number;
|
3
3
|
chartDescription?: string;
|
4
4
|
isUserUploaded: boolean;
|
5
5
|
name: string;
|
6
6
|
version: string;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
}>;
|
8
|
+
interface DeploymentChartVersionsType {
|
9
|
+
id: number;
|
10
|
+
version: string;
|
11
11
|
description: string;
|
12
12
|
}
|
13
|
-
export interface DeploymentChartType
|
13
|
+
export interface DeploymentChartType {
|
14
|
+
name: string;
|
15
|
+
isUserUploaded: boolean;
|
14
16
|
versions: DeploymentChartVersionsType[];
|
15
17
|
}
|
16
18
|
export declare enum DEVTRON_DEPLOYMENT_CHART_NAMES {
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { BuildAndTaskSummaryTooltipCardProps } from './types';
|
2
|
+
declare const BuildAndTaskSummaryTooltipCard: import('react').MemoExoticComponent<({ workflowExecutionStages, triggeredByEmail, namespace, podName, stage, gitTriggers, ciMaterials, }: BuildAndTaskSummaryTooltipCardProps) => JSX.Element>;
|
3
|
+
export default BuildAndTaskSummaryTooltipCard;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { DeploymentSummaryTooltipCardType } from './types';
|
2
|
+
declare const GitTriggerList: import('react').MemoExoticComponent<({ ciMaterials, gitTriggers, addMarginTop, }: Pick<DeploymentSummaryTooltipCardType, "ciMaterials" | "gitTriggers"> & {
|
3
|
+
addMarginTop?: boolean;
|
4
|
+
}) => JSX.Element>;
|
5
|
+
export default GitTriggerList;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { TriggerDetailsType } from './types';
|
2
|
+
declare const TriggerDetails: import('react').MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, workflowExecutionStages, namespace, }: TriggerDetailsType) => JSX.Element>;
|
3
|
+
export default TriggerDetails;
|
@@ -1,5 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
3
|
-
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
1
|
+
import { TriggerOutputProps } from './types';
|
4
2
|
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, appName, }: TriggerOutputProps) => JSX.Element;
|
5
3
|
export default TriggerOutput;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { WorkerStatusType } from './types';
|
2
|
+
declare const WorkerStatus: import('react').MemoExoticComponent<({ message, podStatus, stage, workerPodName, finishedOn, clusterId, namespace, workerMessageContainerClassName, titleClassName, viewWorkerPodClassName, hideShowMoreMessageButton, }: WorkerStatusType) => JSX.Element | null>;
|
3
|
+
export default WorkerStatus;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { WorkflowStageStatusType } from './types';
|
1
2
|
export declare const HISTORY_LABEL: {
|
2
3
|
APPLICATION: string;
|
3
4
|
ENVIRONMENT: string;
|
@@ -29,6 +30,7 @@ export declare const TERMINAL_STATUS_MAP: {
|
|
29
30
|
CANCELLED: string;
|
30
31
|
UNABLE_TO_FETCH: string;
|
31
32
|
TIMED_OUT: string;
|
33
|
+
WAITING_TO_START: string;
|
32
34
|
};
|
33
35
|
export declare const EVENT_STREAM_EVENTS_MAP: {
|
34
36
|
MESSAGE: string;
|
@@ -40,10 +42,45 @@ export declare const POD_STATUS: {
|
|
40
42
|
PENDING: string;
|
41
43
|
};
|
42
44
|
export declare const TIMEOUT_VALUE = "1";
|
43
|
-
export declare const
|
45
|
+
export declare const DEFAULT_CLUSTER_ID = 1;
|
46
|
+
export declare const DEFAULT_NAMESPACE = "devtron-ci";
|
44
47
|
export declare const DEFAULT_ENV = "devtron-ci";
|
45
48
|
export declare const LOGS_RETRY_COUNT = 3;
|
46
49
|
export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
|
47
50
|
export declare const MANIFEST_STATUS_HEADERS: string[];
|
48
51
|
export declare const LOGS_STAGE_IDENTIFIER = "STAGE_INFO";
|
49
52
|
export declare const LOGS_STAGE_STREAM_SEPARATOR = "|";
|
53
|
+
export declare const statusColor: {
|
54
|
+
[x: string]: string;
|
55
|
+
suspended: string;
|
56
|
+
unknown: string;
|
57
|
+
queued: string;
|
58
|
+
degraded: string;
|
59
|
+
healthy: string;
|
60
|
+
notdeployed: string;
|
61
|
+
missing: string;
|
62
|
+
progressing: string;
|
63
|
+
initiating: string;
|
64
|
+
starting: string;
|
65
|
+
succeeded: string;
|
66
|
+
running: string;
|
67
|
+
failed: string;
|
68
|
+
error: string;
|
69
|
+
cancelled: string;
|
70
|
+
aborted: string;
|
71
|
+
timedout: string;
|
72
|
+
unabletofetch: string;
|
73
|
+
hibernating: string;
|
74
|
+
};
|
75
|
+
export declare const PULSATING_STATUS_MAP: {
|
76
|
+
[key in keyof typeof statusColor]?: boolean;
|
77
|
+
};
|
78
|
+
export declare const WORKFLOW_STAGE_STATUS_TO_TEXT_MAP: Record<WorkflowStageStatusType, string>;
|
79
|
+
export declare const EXECUTION_FINISHED_TEXT_MAP: Partial<Record<WorkflowStageStatusType, string>>;
|
80
|
+
export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
|
81
|
+
readonly [x: string]: "cr-5" | "cg-5" | "co-5";
|
82
|
+
};
|
83
|
+
export declare const PROGRESSING_STATUS: {
|
84
|
+
readonly [x: string]: "progressing" | "starting" | "initiating" | "queued" | "running";
|
85
|
+
};
|
86
|
+
export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
export { default as Sidebar } from './Sidebar';
|
2
2
|
export { default as Artifacts } from './Artifacts';
|
3
3
|
export { default as TriggerOutput } from './TriggerOutput';
|
4
|
+
export { default as TriggerDetails } from './TriggerDetails';
|
4
5
|
export { default as CDEmptyState } from './CDEmptyState';
|
5
6
|
export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
|
6
7
|
export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
|
@@ -9,8 +10,8 @@ export * from './types';
|
|
9
10
|
export * from './service';
|
10
11
|
export * from './History.components';
|
11
12
|
export * from './utils';
|
12
|
-
export * from './TriggerOutput';
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
14
14
|
export * from './DeploymentHistoryConfigDiff';
|
15
15
|
export * from './CiPipelineSourceConfig';
|
16
16
|
export * from './StatusFilterButtonComponent';
|
17
|
+
export { statusColor } from './constants';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties, ReactElement } from 'react';
|
1
|
+
import { CSSProperties, ReactElement, ReactNode } from 'react';
|
2
2
|
import { SupportedKeyboardKeysType } from '@Common/Hooks/UseRegisterShortcut/types';
|
3
3
|
import { OptionType, UserApprovalMetadataType, ReleaseTag, ImageComment, PromotionApprovalMetadataType, FilterConditionsListType, DeploymentAppTypes, ResponseType, PaginationProps, useScrollable } from '../../../Common';
|
4
4
|
import { DeploymentStageType } from '../../constants';
|
@@ -67,7 +67,39 @@ export interface TargetConfigType {
|
|
67
67
|
releaseChannelId?: string;
|
68
68
|
releaseChannelName?: string;
|
69
69
|
}
|
70
|
-
export
|
70
|
+
export declare enum WorkflowExecutionStageType {
|
71
|
+
WORKFLOW = "workflow",
|
72
|
+
POD = "pod"
|
73
|
+
}
|
74
|
+
export declare enum WorkflowStageStatusType {
|
75
|
+
NOT_STARTED = "NOT_STARTED",
|
76
|
+
RUNNING = "RUNNING",
|
77
|
+
SUCCEEDED = "SUCCEEDED",
|
78
|
+
FAILED = "FAILED",
|
79
|
+
ABORTED = "ABORTED",
|
80
|
+
TIMEOUT = "TIMEOUT",
|
81
|
+
UNKNOWN = "UNKNOWN"
|
82
|
+
}
|
83
|
+
export declare enum WorkflowExecutionStageNameType {
|
84
|
+
PREPARATION = "Preparation",
|
85
|
+
EXECUTION = "Execution"
|
86
|
+
}
|
87
|
+
interface WorkflowExecutionStageCommonDTO {
|
88
|
+
status: WorkflowStageStatusType;
|
89
|
+
stageName: WorkflowExecutionStageNameType;
|
90
|
+
startTime: string;
|
91
|
+
endTime: string;
|
92
|
+
message: string;
|
93
|
+
}
|
94
|
+
export interface PodExecutionStageDTO extends WorkflowExecutionStageCommonDTO {
|
95
|
+
metadata: {
|
96
|
+
clusterId?: number;
|
97
|
+
};
|
98
|
+
}
|
99
|
+
export interface WorkflowExecutionStagesMapDTO {
|
100
|
+
workflowExecutionStages: Record<WorkflowExecutionStageType.WORKFLOW, WorkflowExecutionStageCommonDTO[]> & Record<WorkflowExecutionStageType.POD, PodExecutionStageDTO[]>;
|
101
|
+
}
|
102
|
+
export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'>, WorkflowExecutionStagesMapDTO {
|
71
103
|
id: number;
|
72
104
|
name: string;
|
73
105
|
status: string;
|
@@ -103,6 +135,27 @@ export interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
|
|
103
135
|
runSource?: RunSourceType;
|
104
136
|
targetConfig?: TargetConfigType;
|
105
137
|
}
|
138
|
+
export interface ExecutionInfoType {
|
139
|
+
/**
|
140
|
+
* Triggered is assumed to be true always, so status will be Succeeded
|
141
|
+
* Extracted from Preparation start time, if there, in case of old data this will be execution start time
|
142
|
+
* If triggeredOn is not there will not show startTime next to Triggered label but will show other details if possible like commit info, etc.
|
143
|
+
* and capture error on sentry
|
144
|
+
*/
|
145
|
+
triggeredOn: string;
|
146
|
+
/**
|
147
|
+
* Extracted from startTime from Execution stage (since will work in both old and new format)
|
148
|
+
* If this is not given then, we won't be showing Execution started field
|
149
|
+
* If preparation field has failed, then we will be using finishedOn field to show the status
|
150
|
+
*/
|
151
|
+
executionStartedOn: string;
|
152
|
+
/**
|
153
|
+
* Will be the endTime of Execution stage.
|
154
|
+
*/
|
155
|
+
finishedOn?: string;
|
156
|
+
currentStatus: Exclude<WorkflowStageStatusType, WorkflowStageStatusType.NOT_STARTED>;
|
157
|
+
workerDetails: Pick<PodExecutionStageDTO, 'message' | 'status' | 'endTime'> & Pick<PodExecutionStageDTO['metadata'], 'clusterId'>;
|
158
|
+
}
|
106
159
|
export interface DeploymentHistoryResultObject {
|
107
160
|
cdWorkflows: History[];
|
108
161
|
appReleaseTagNames: string[];
|
@@ -129,7 +182,7 @@ export interface SidebarType extends RenderRunSourceType {
|
|
129
182
|
children?: React.ReactNode;
|
130
183
|
resourceId?: number;
|
131
184
|
}
|
132
|
-
export interface HistorySummaryCardType extends RenderRunSourceType {
|
185
|
+
export interface HistorySummaryCardType extends RenderRunSourceType, Pick<History, 'workflowExecutionStages' | 'podName' | 'namespace'> {
|
133
186
|
id: number;
|
134
187
|
status: string;
|
135
188
|
startedOn: string;
|
@@ -147,7 +200,7 @@ export interface HistorySummaryCardType extends RenderRunSourceType {
|
|
147
200
|
*/
|
148
201
|
resourceId?: number;
|
149
202
|
}
|
150
|
-
export interface
|
203
|
+
export interface DeploymentSummaryTooltipCardType {
|
151
204
|
status: string;
|
152
205
|
startedOn: string;
|
153
206
|
triggeredBy: number;
|
@@ -155,6 +208,8 @@ export interface SummaryTooltipCardType {
|
|
155
208
|
ciMaterials: CiMaterial[];
|
156
209
|
gitTriggers: Map<number, GitTriggers>;
|
157
210
|
}
|
211
|
+
export interface BuildAndTaskSummaryTooltipCardProps extends Pick<History, 'workflowExecutionStages' | 'triggeredByEmail' | 'namespace' | 'podName' | 'stage'>, Pick<HistorySummaryCardType, 'gitTriggers' | 'ciMaterials'> {
|
212
|
+
}
|
158
213
|
export interface DeploymentTemplateList {
|
159
214
|
id: number;
|
160
215
|
name: string;
|
@@ -166,6 +221,7 @@ export interface CurrentStatusType {
|
|
166
221
|
artifact: string;
|
167
222
|
stage: DeploymentStageType;
|
168
223
|
type: HistoryComponentType;
|
224
|
+
executionInfo: ExecutionInfoType;
|
169
225
|
}
|
170
226
|
export interface StartDetailsType {
|
171
227
|
startedOn: string;
|
@@ -176,16 +232,13 @@ export interface StartDetailsType {
|
|
176
232
|
artifact: string;
|
177
233
|
type: HistoryComponentType;
|
178
234
|
environmentName?: string;
|
179
|
-
isJobView?: boolean;
|
180
|
-
triggerMetadata?: string;
|
181
|
-
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
|
182
235
|
/**
|
183
236
|
* Callback handler for showing the target config
|
184
237
|
*/
|
185
238
|
renderTargetConfigInfo?: () => ReactElement;
|
186
239
|
stage: DeploymentStageType;
|
187
240
|
}
|
188
|
-
export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'> {
|
241
|
+
export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTargetConfigInfo'>, Pick<History, 'workflowExecutionStages' | 'namespace'> {
|
189
242
|
status: string;
|
190
243
|
startedOn: string;
|
191
244
|
finishedOn: string;
|
@@ -202,29 +255,46 @@ export interface TriggerDetailsType extends Pick<StartDetailsType, 'renderTarget
|
|
202
255
|
isJobView?: boolean;
|
203
256
|
workerPodName?: string;
|
204
257
|
triggerMetadata?: string;
|
205
|
-
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string) => JSX.Element;
|
258
|
+
renderDeploymentHistoryTriggerMetaText: (triggerMetaData: string, onlyRenderIcon?: boolean) => JSX.Element;
|
206
259
|
}
|
207
|
-
export
|
208
|
-
status: string;
|
260
|
+
export type ProgressingStatusType = {
|
209
261
|
stage: DeploymentStageType;
|
210
262
|
type: HistoryComponentType;
|
263
|
+
/**
|
264
|
+
* @default 'In progress''
|
265
|
+
*/
|
266
|
+
label?: string;
|
267
|
+
};
|
268
|
+
export interface CurrentStatusIconProps {
|
269
|
+
status: string;
|
270
|
+
executionInfoCurrentStatus: WorkflowStageStatusType;
|
211
271
|
}
|
212
|
-
export interface WorkerStatusType {
|
272
|
+
export interface WorkerStatusType extends Pick<ExecutionInfoType['workerDetails'], 'clusterId'>, Pick<TriggerDetailsType, 'namespace'> {
|
213
273
|
message: string;
|
214
274
|
podStatus: string;
|
215
275
|
stage: DeploymentStageType;
|
216
276
|
finishedOn?: string;
|
217
277
|
workerPodName?: string;
|
278
|
+
workerMessageContainerClassName?: string;
|
279
|
+
titleClassName?: string;
|
280
|
+
viewWorkerPodClassName?: string;
|
281
|
+
/**
|
282
|
+
* @default false
|
283
|
+
*/
|
284
|
+
hideShowMoreMessageButton?: boolean;
|
218
285
|
}
|
219
|
-
export
|
220
|
-
status: string;
|
221
|
-
finishedOn: string;
|
286
|
+
export type FinishedType = {
|
222
287
|
artifact: string;
|
223
288
|
type: HistoryComponentType;
|
224
|
-
}
|
225
|
-
export interface TriggerDetailsStatusIconType {
|
289
|
+
} & ({
|
226
290
|
status: string;
|
227
|
-
|
291
|
+
finishedOn: string;
|
292
|
+
executionInfo?: never;
|
293
|
+
} | {
|
294
|
+
executionInfo: ExecutionInfoType;
|
295
|
+
status?: never;
|
296
|
+
finishedOn?: never;
|
297
|
+
});
|
228
298
|
export interface SyncStageResourceDetail {
|
229
299
|
id: number;
|
230
300
|
cdWorkflowRunnerId: number;
|
@@ -255,12 +325,6 @@ export interface DeploymentStatusDetailsType {
|
|
255
325
|
export interface DeploymentStatusDetailsResponse extends ResponseType {
|
256
326
|
result?: DeploymentStatusDetailsType;
|
257
327
|
}
|
258
|
-
export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
|
259
|
-
[x: string]: string;
|
260
|
-
};
|
261
|
-
export declare const PROGRESSING_STATUS: {
|
262
|
-
[x: string]: string;
|
263
|
-
};
|
264
328
|
interface DeploymentStatusDetailRow {
|
265
329
|
icon: string;
|
266
330
|
displayText: string;
|
@@ -323,7 +387,7 @@ export interface VirtualHistoryArtifactProps {
|
|
323
387
|
export type CIListItemType = Pick<History, 'promotionApprovalMetadata'> & {
|
324
388
|
userApprovalMetadata?: UserApprovalMetadataType;
|
325
389
|
triggeredBy?: string;
|
326
|
-
children:
|
390
|
+
children: ReactNode;
|
327
391
|
appliedFilters?: FilterConditionsListType[];
|
328
392
|
appliedFiltersTimestamp?: string;
|
329
393
|
selectedEnvironmentName?: string;
|
@@ -1,12 +1,20 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
1
2
|
import { Node } from '../../types';
|
2
|
-
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType, NodeStatus, NodeFilters } from './types';
|
3
|
+
import { TriggerHistoryFilterCriteriaProps, DeploymentHistoryResultObject, TriggerHistoryFilterCriteriaType, StageStatusType, WorkflowExecutionStagesMapDTO, ExecutionInfoType, WorkflowStageStatusType, NodeStatus, NodeFilters } from './types';
|
3
4
|
export declare const getTriggerHistoryFilterCriteria: ({ appId, envId, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryFilterCriteriaProps) => TriggerHistoryFilterCriteriaType;
|
4
5
|
export declare const getParsedTriggerHistory: (result: any) => DeploymentHistoryResultObject;
|
5
6
|
export declare const buildHoverHtmlForWebhook: (eventName: any, condition: any, selectors: any) => JSX.Element;
|
6
7
|
export declare const renderIcon: (iconState: string) => JSX.Element;
|
7
8
|
export declare const getStageStatusIcon: (status: StageStatusType) => JSX.Element;
|
9
|
+
export declare const renderProgressingTriggerIcon: (baseClass?: string) => JSX.Element;
|
8
10
|
export declare const getTriggerStatusIcon: (triggerDetailStatus: string) => JSX.Element;
|
9
11
|
export declare const getLogSearchIndex: ({ stageIndex, lineNumberInsideStage, }: Record<"stageIndex" | "lineNumberInsideStage", number>) => string;
|
12
|
+
export declare const sanitizeWorkflowExecutionStages: (workflowExecutionStages: WorkflowExecutionStagesMapDTO["workflowExecutionStages"]) => ExecutionInfoType | null;
|
13
|
+
export declare const getIconFromWorkflowStageStatusType: (status: WorkflowStageStatusType, baseClass?: string) => ReactElement;
|
14
|
+
export declare const getHistoryItemStatusIconFromWorkflowStages: (workflowExecutionStages: WorkflowExecutionStagesMapDTO["workflowExecutionStages"]) => ReactElement;
|
15
|
+
export declare const getWorkerPodBaseUrl: (clusterId?: number, podNamespace?: string) => string;
|
16
|
+
export declare const getWorkflowNodeStatusTitle: (status: string) => string;
|
17
|
+
export declare const getFormattedTriggerTime: (time: string) => string;
|
10
18
|
export declare const getNodesCount: (nodes: Node[]) => {
|
11
19
|
allNodeCount: number;
|
12
20
|
healthyNodeCount: number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
|
2
2
|
import { SEVERITIES } from './constants';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
|
-
color: "var(--
|
4
|
+
color: "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)" | "var(--G500)";
|
5
5
|
label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
|
6
6
|
value: number;
|
7
7
|
}[];
|
@@ -1,6 +1,8 @@
|
|
1
1
|
interface ShowMoreTextProps {
|
2
2
|
text: string;
|
3
3
|
textClass?: string;
|
4
|
+
containerClass?: string;
|
5
|
+
hideShowMore?: boolean;
|
4
6
|
}
|
5
|
-
declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
|
7
|
+
declare const ShowMoreText: ({ text, textClass, containerClass, hideShowMore }: ShowMoreTextProps) => JSX.Element;
|
6
8
|
export default ShowMoreText;
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
+
import { PromptProps } from 'react-router-dom';
|
2
3
|
import { Pair } from 'yaml';
|
3
4
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
4
5
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
5
|
-
import { PromptProps } from 'react-router-dom';
|
6
6
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType, ApprovalConfigDataType, UserApprovalInfo } from '../Common';
|
7
7
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
8
8
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
@@ -93,4 +93,6 @@ export declare const getUniqueId: (size?: number) => string;
|
|
93
93
|
*/
|
94
94
|
export declare const checkIfPathIsMatching: (currentPathName: string, customMessage?: string) => PromptProps["message"];
|
95
95
|
export declare const sanitizeTargetPlatforms: (targetPlatforms: TargetPlatformsDTO["targetPlatforms"]) => TargetPlatformItemDTO[];
|
96
|
+
export declare const isAWSCodeCommitURL: (url?: string) => boolean;
|
97
|
+
export declare const renderMaterialIcon: (url?: string) => JSX.Element;
|
96
98
|
export {};
|
@@ -23,6 +23,8 @@ export interface MainContext {
|
|
23
23
|
isAirgapped: boolean;
|
24
24
|
isSuperAdmin: boolean;
|
25
25
|
isManifestScanningEnabled: boolean;
|
26
|
+
isOrgLevelRBACViewEnforced: boolean;
|
27
|
+
viewIsPipelineRBACConfiguredNode: ReactNode;
|
26
28
|
}
|
27
29
|
export interface MainContextProviderProps {
|
28
30
|
children: ReactNode;
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import { GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
1
|
+
import { GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
|
2
2
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
3
3
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
4
4
|
export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
|
5
|
+
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
6
|
+
export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const USER_PREFERENCES_ATTRIBUTE_KEY = "userPreferences";
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { getUrlWithSearchParams } from '../../Common';
|
2
|
-
import { PolicyKindType, ResourceKindType, ResourceVersionType } from '../types';
|
2
|
+
import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
|
3
|
+
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
3
4
|
export interface ClusterType {
|
4
5
|
id: number;
|
5
6
|
name: string;
|
@@ -28,4 +29,18 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
|
|
28
29
|
}
|
29
30
|
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
30
31
|
}
|
32
|
+
export interface GetUserPreferencesQueryParamsType {
|
33
|
+
key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
|
34
|
+
}
|
35
|
+
export interface GetUserPreferencesParsedDTO {
|
36
|
+
viewPermittedEnvOnly?: boolean;
|
37
|
+
}
|
38
|
+
export interface UpdateUserPreferencesParsedValueType extends GetUserPreferencesParsedDTO {
|
39
|
+
}
|
40
|
+
export interface UpdateUserPreferencesPayloadType extends Pick<GetUserPreferencesQueryParamsType, 'key'> {
|
41
|
+
value: string;
|
42
|
+
}
|
43
|
+
export interface UserPreferencesType {
|
44
|
+
pipelineRBACViewSelectedTab: ViewIsPipelineRBACConfiguredRadioTabs;
|
45
|
+
}
|
31
46
|
export {};
|
@@ -327,30 +327,6 @@ export declare const statusIcon: {
|
|
327
327
|
timedout: string;
|
328
328
|
unabletofetch: string;
|
329
329
|
};
|
330
|
-
export declare const statusColor: {
|
331
|
-
suspended: string;
|
332
|
-
unknown: string;
|
333
|
-
queued: string;
|
334
|
-
degraded: string;
|
335
|
-
healthy: string;
|
336
|
-
notdeployed: string;
|
337
|
-
missing: string;
|
338
|
-
progressing: string;
|
339
|
-
initiating: string;
|
340
|
-
starting: string;
|
341
|
-
succeeded: string;
|
342
|
-
running: string;
|
343
|
-
failed: string;
|
344
|
-
error: string;
|
345
|
-
cancelled: string;
|
346
|
-
aborted: string;
|
347
|
-
timedout: string;
|
348
|
-
unabletofetch: string;
|
349
|
-
hibernating: string;
|
350
|
-
};
|
351
|
-
export declare const PULSATING_STATUS_MAP: {
|
352
|
-
[key in keyof typeof statusColor]?: boolean;
|
353
|
-
};
|
354
330
|
export declare const APP_STATUS_HEADERS: string[];
|
355
331
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
356
332
|
export declare const AppListConstants: {
|
package/dist/Shared/types.d.ts
CHANGED
@@ -796,6 +796,17 @@ export interface TargetPlatformItemDTO {
|
|
796
796
|
export interface TargetPlatformsDTO {
|
797
797
|
targetPlatforms: TargetPlatformItemDTO[];
|
798
798
|
}
|
799
|
+
/**
|
800
|
+
* These status are expected to be present in workflow nodes like ci node, linked ci node, job overview, etc.
|
801
|
+
*/
|
802
|
+
export declare enum WorkflowStatusEnum {
|
803
|
+
STARTING = "Starting",
|
804
|
+
RUNNING = "Running",
|
805
|
+
PROGRESSING = "Progressing",
|
806
|
+
WAITING_TO_START = "WaitingToStart",
|
807
|
+
TIMED_OUT = "TimedOut",
|
808
|
+
CANCELLED = "CANCELLED"
|
809
|
+
}
|
799
810
|
export declare enum CIPipelineNodeType {
|
800
811
|
EXTERNAL_CI = "EXTERNAL-CI",
|
801
812
|
CI = "CI",
|
@@ -813,8 +824,13 @@ export declare const TriggerType: {
|
|
813
824
|
readonly Auto: "AUTOMATIC";
|
814
825
|
readonly Manual: "MANUAL";
|
815
826
|
};
|
816
|
-
export
|
817
|
-
|
818
|
-
|
827
|
+
export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
|
828
|
+
ALL_ENVIRONMENTS = "All environments",
|
829
|
+
ACCESS_ONLY = "Access only"
|
830
|
+
}
|
831
|
+
export interface EnvironmentDataValuesDTO {
|
832
|
+
isAirGapEnvironment: boolean;
|
833
|
+
isManifestScanningEnabled: boolean;
|
834
|
+
canOnlyViewPermittedEnvOrgLevel: boolean;
|
819
835
|
}
|
820
836
|
export {};
|