@devtron-labs/devtron-fe-common-lib 1.6.12 → 1.6.13-beta-2

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.
Files changed (38) hide show
  1. package/dist/{@code-editor-DIEO6-uF.js → @code-editor-DiVd86iC.js} +9132 -8863
  2. package/dist/{@common-rjsf-DLkOjCX0.js → @common-rjsf-9xc9WFKe.js} +1 -1
  3. package/dist/Common/AppStatus/utils.d.ts +1 -0
  4. package/dist/Common/Types.d.ts +2 -1
  5. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +4 -0
  6. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -1
  7. package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +3 -0
  8. package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +5 -0
  9. package/dist/Shared/Components/CICDHistory/TriggerDetails.d.ts +3 -0
  10. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -3
  11. package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +3 -0
  12. package/dist/Shared/Components/CICDHistory/constants.d.ts +38 -1
  13. package/dist/Shared/Components/CICDHistory/index.d.ts +2 -1
  14. package/dist/Shared/Components/CICDHistory/types.d.ts +97 -25
  15. package/dist/Shared/Components/CICDHistory/utils.d.ts +9 -1
  16. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  17. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +18 -5
  18. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  19. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -1
  20. package/dist/Shared/Helpers.d.ts +3 -1
  21. package/dist/Shared/Providers/types.d.ts +11 -0
  22. package/dist/Shared/constants.d.ts +0 -24
  23. package/dist/Shared/types.d.ts +11 -0
  24. package/dist/assets/@code-editor.css +1 -1
  25. package/dist/assets/ic-aws-codecommit.43f0dd23.svg +26 -0
  26. package/dist/assets/ic-bitbucket.ffe914a0.svg +30 -0
  27. package/dist/assets/ic-calendar.1d9c66d2.svg +19 -0
  28. package/dist/assets/ic-environment.e639b8f3.svg +4 -0
  29. package/dist/assets/ic-git.89f79adf.svg +17 -0
  30. package/dist/assets/ic-github.bb1f1753.svg +3 -0
  31. package/dist/assets/ic-gitlab.de184b7f.svg +31 -0
  32. package/dist/assets/ic-help-filled.4468cdf1.svg +4 -0
  33. package/dist/assets/ic-person.d066bc6d.svg +19 -0
  34. package/dist/assets/{ic-pulsate-status.cc755b3f.svg → ic-pulsate-status.2ca548fd.svg} +0 -1
  35. package/dist/index.js +528 -515
  36. package/package.json +1 -1
  37. package/dist/assets/ic-calendar.984accc5.svg +0 -19
  38. 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-DIEO6-uF.js";
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-DiVd86iC.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";
@@ -1 +1,2 @@
1
1
  export declare const triggerStatus: (triggerDetailStatus: string) => string;
2
+ export declare const parseJobStatus: (status: string) => string;
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
@@ -158,6 +158,7 @@ interface InfoColourBarTextConfigType {
158
158
  * If given would be shown below the heading (if given)
159
159
  */
160
160
  description: string;
161
+ actionButtonConfig?: ButtonProps;
161
162
  }
162
163
  type InfoColourBarMessageProp = {
163
164
  message: ReactNode;
@@ -96,6 +96,10 @@ export interface SelectedChartDetailsType {
96
96
  selectedChartRefId: number;
97
97
  selectedChart: DeploymentChartVersionType;
98
98
  }
99
+ export declare enum PipelineMigratedFromType {
100
+ HELM_RELEASE = "helmRelease",
101
+ ARGO_APPLICATION = "argoApplication"
102
+ }
99
103
  interface EnvironmentConfigType {
100
104
  id: number;
101
105
  status: number;
@@ -28,7 +28,7 @@ export interface CustomTagType {
28
28
  }
29
29
  export declare enum ReleaseMode {
30
30
  NEW_DEPLOYMENT = "create",
31
- MIGRATE_HELM = "link"
31
+ MIGRATE_EXTERNAL_APPS = "link"
32
32
  }
33
33
  export interface CDFormType {
34
34
  name: string;
@@ -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 { default as React } from 'react';
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 WORKER_POD_BASE_URL = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup";
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 interface History extends Pick<TargetPlatformsDTO, 'targetPlatforms'> {
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 SummaryTooltipCardType {
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 interface ProgressingStatusType {
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 interface FinishedType {
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: any;
390
+ children: ReactNode;
327
391
  appliedFilters?: FilterConditionsListType[];
328
392
  appliedFiltersTimestamp?: string;
329
393
  selectedEnvironmentName?: string;
@@ -454,6 +518,14 @@ export interface StatusFilterButtonType {
454
518
  handleFilterClick?: (selectedFilter: string) => void;
455
519
  maxInlineFiltersCount?: number;
456
520
  }
521
+ export declare enum NodeStatusDTO {
522
+ Healthy = "Healthy",
523
+ Progressing = "Progressing",
524
+ Unknown = "Unknown",
525
+ Suspended = "Suspended",
526
+ Degraded = "Degraded",
527
+ Missing = "Missing"
528
+ }
457
529
  export declare enum NodeStatus {
458
530
  Degraded = "degraded",
459
531
  Healthy = "healthy",
@@ -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,3 +1,3 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
2
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
3
3
  export default GenericSectionErrorState;
@@ -1,4 +1,6 @@
1
- export interface GenericSectionErrorStateProps {
1
+ import { ReactNode } from 'react';
2
+ import { ProgressingProps } from '../../../Common/Types';
3
+ export type GenericSectionErrorStateProps = {
2
4
  /**
3
5
  * Handler for reloading the section
4
6
  */
@@ -16,11 +18,11 @@ export interface GenericSectionErrorStateProps {
16
18
  /**
17
19
  * @default 'We could not load the information on this page.'
18
20
  */
19
- subTitle?: string;
21
+ subTitle?: ReactNode;
20
22
  /**
21
23
  * @default 'Please reload or try again later'
22
24
  */
23
- description?: string;
25
+ description?: ReactNode;
24
26
  /**
25
27
  * @default 'Reload'
26
28
  */
@@ -29,10 +31,21 @@ export interface GenericSectionErrorStateProps {
29
31
  * to be applied on parent div
30
32
  */
31
33
  rootClassName?: string;
34
+ } & ({
35
+ /**
36
+ * If provided, would render the Progressing component with given props instead of error icon
37
+ */
38
+ progressingProps: ProgressingProps;
39
+ useInfoIcon?: never;
40
+ } | {
41
+ progressingProps?: never;
32
42
  /**
33
43
  * If true, info icon would be used instead of error
34
44
  *
35
45
  * @default false
36
46
  */
37
- useInfoIcon?: boolean;
38
- }
47
+ useInfoIcon: boolean;
48
+ } | {
49
+ progressingProps?: never;
50
+ useInfoIcon?: never;
51
+ });
@@ -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(--Y500)" | "var(--R500)" | "var(--G500)" | "var(--O500)" | "var(--N300)" | "var(--R700)";
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;
@@ -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 {};
@@ -22,6 +22,17 @@ export interface MainContext {
22
22
  };
23
23
  isAirgapped: boolean;
24
24
  isSuperAdmin: boolean;
25
+ featureGitOpsFlags: {
26
+ isFeatureGitOpsEnabled: boolean;
27
+ /**
28
+ *
29
+ */
30
+ isFeatureUserDefinedGitOpsEnabled: boolean;
31
+ /**
32
+ * Feature flag for Migrate to devtron from argo cd
33
+ */
34
+ isFeatureArgoCdMigrationEnabled: boolean;
35
+ };
25
36
  isManifestScanningEnabled: boolean;
26
37
  }
27
38
  export interface MainContextProviderProps {
@@ -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: {
@@ -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",