@devtron-labs/devtron-fe-common-lib 1.16.0-pre-4 → 1.16.0-pre-6
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-D-BZS9zn.js → @code-editor-DTcvYvJ3.js} +5865 -5830
- package/dist/{@common-rjsf-DyacdRIT.js → @common-rjsf-82zFxNP8.js} +1 -1
- package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +1 -1
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +18 -2
- package/dist/Common/Hooks/useUrlFilters/index.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal.d.ts +1 -0
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -0
- package/dist/Common/PopupMenu.d.ts +1 -2
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -12
- package/dist/Pages/ResourceBrowser/constants.d.ts +12 -0
- package/dist/Pages/ResourceBrowser/types.d.ts +17 -0
- package/dist/Shared/Components/AppStatusModal/service.d.ts +1 -1
- package/dist/Shared/Components/AppStatusModal/types.d.ts +2 -1
- package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
- package/dist/Shared/Components/BulkSelection/types.d.ts +3 -0
- package/dist/Shared/Components/Button/Button.component.d.ts +376 -2
- package/dist/Shared/Components/Button/types.d.ts +4 -1
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -0
- package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +2 -1
- package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +7 -2
- package/dist/Shared/Components/Table/useTableWithKeyboardShortcuts.d.ts +6 -1
- package/dist/Shared/Hooks/useStickyEvent/constants.d.ts +3 -2
- package/dist/Shared/types.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +749 -742
- package/package.json +1 -1
@@ -1,20 +1,25 @@
|
|
1
|
+
import { DeploymentAppTypes } from '../../../Common/Types';
|
1
2
|
import { DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType } from '../../types';
|
2
3
|
/**
|
3
4
|
* @description
|
4
5
|
* This function processes the deployment status details data and returns a breakdown of the deployment status.
|
5
6
|
* Cases it handles:
|
6
7
|
* 1. If timelines are not present, say the case of helm deployment, we will parse the wfrStatus and put the status and basic deployment info [triggeredBy, deploymentStartedOn, deploymentFinishedOn] into the breakdown data and return it.
|
7
|
-
* 2. In case of
|
8
|
+
* 2. In case of argo_cd:
|
8
9
|
* - There are five timelines in chronological order:
|
9
10
|
* - Deployment Initiated
|
10
11
|
* - Git commit
|
11
12
|
* - ArgoCD Sync
|
12
13
|
* - Kubectl Apply
|
13
14
|
* - App Health
|
15
|
+
* In case of flux_cd
|
16
|
+
* - Deployment Initiated
|
17
|
+
* - Git commit
|
18
|
+
* - App Health
|
14
19
|
* - Basic flow is we traverse the timelines in order, if find the last status for that specific timeline from response by traversing the timelines in reverse order.
|
15
20
|
* - If element is found, we will parse the status and set the icon, display text, time, etc. for that timeline and set the next timeline to inprogress.
|
16
21
|
* - If element is not found, we will parse on basis of factors like:
|
17
22
|
* - If this timeline is not inprogress and deploymentStatus is progressing, we will set the current timeline to waiting.
|
18
23
|
* - In similar fashion based on the deploymentStatus we will set the icon and display text for the timeline.
|
19
24
|
*/
|
20
|
-
export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
25
|
+
export declare const processDeploymentStatusDetailsData: (deploymentAppType: DeploymentAppTypes, data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
|
@@ -1,6 +1,11 @@
|
|
1
1
|
import { InternalTableProps, RowsType } from './types';
|
2
|
-
declare const useTableWithKeyboardShortcuts: ({ bulkSelectionConfig, handleToggleBulkSelectionOnRow, bulkSelectionReturnValue, }: Pick<InternalTableProps, "bulkSelectionConfig" | "bulkSelectionReturnValue" | "handleToggleBulkSelectionOnRow">, visibleRows: RowsType, showPagination: boolean, bulkSelectionButtonRef: React.RefObject<
|
2
|
+
declare const useTableWithKeyboardShortcuts: ({ bulkSelectionConfig, handleToggleBulkSelectionOnRow, bulkSelectionReturnValue, }: Pick<InternalTableProps, "bulkSelectionConfig" | "bulkSelectionReturnValue" | "handleToggleBulkSelectionOnRow">, visibleRows: RowsType, showPagination: boolean, bulkSelectionButtonRef: React.RefObject<HTMLLabelElement>) => {
|
3
3
|
activeRowIndex: number;
|
4
4
|
setActiveRowIndex: import('react').Dispatch<import('react').SetStateAction<number>>;
|
5
|
+
shortcutContainerProps: {
|
6
|
+
onKeyDown: (event: import('react').KeyboardEvent<HTMLElement>) => void;
|
7
|
+
onKeyUp: (event: import('react').KeyboardEvent<HTMLElement>) => void;
|
8
|
+
onBlur: (event: import('react').FocusEvent<HTMLElement>) => void;
|
9
|
+
};
|
5
10
|
};
|
6
11
|
export default useTableWithKeyboardShortcuts;
|
@@ -1,3 +1,4 @@
|
|
1
|
-
export declare const
|
1
|
+
export declare const SENTINEL_HEIGHT_BUFFER = 2;
|
2
|
+
export declare const FALLBACK_SENTINEL_HEIGHT = "2px";
|
2
3
|
export declare const OBSERVER_THRESHOLD = 1;
|
3
|
-
export declare const OBSERVER_ROOT_MARGIN = "
|
4
|
+
export declare const OBSERVER_ROOT_MARGIN = "1px";
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1054,6 +1054,7 @@ export interface DeploymentStatusDetailsType {
|
|
1054
1054
|
timelines: DeploymentStatusDetailsTimelineType[];
|
1055
1055
|
wfrStatus?: WorkflowRunnerStatusDTO;
|
1056
1056
|
isDeploymentWithoutApproval: boolean;
|
1057
|
+
deploymentAppType: DeploymentAppTypes;
|
1057
1058
|
}
|
1058
1059
|
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;
|
1059
1060
|
export type DeploymentStatusBreakdownItemIconType = 'success' | 'failed' | 'unknown' | 'inprogress' | 'unreachable' | 'loading' | 'disconnect' | 'timed_out' | '';
|
@@ -1098,6 +1099,7 @@ export interface DeploymentStatusDetailsBreakdownDataType {
|
|
1098
1099
|
deploymentErrorMessage: string;
|
1099
1100
|
nextTimelineToProcess: DeploymentStatusTimelineType;
|
1100
1101
|
} | null;
|
1102
|
+
deploymentAppType: DeploymentAppTypes;
|
1101
1103
|
}
|
1102
1104
|
export interface IntelligenceConfig {
|
1103
1105
|
clusterId: number;
|
package/dist/index.d.ts
CHANGED
@@ -149,9 +149,14 @@ export interface customEnv {
|
|
149
149
|
*/
|
150
150
|
FEATURE_MANAGE_TRAFFIC_ENABLE?: boolean;
|
151
151
|
FEATURE_INFRA_PROVISION_INFO_BLOCK_HIDE?: boolean;
|
152
|
+
/**
|
153
|
+
* If true, will add flux option to deployment types in devtron apps and devtron charts
|
154
|
+
* @default false
|
155
|
+
*/
|
156
|
+
FEATURE_FLUX_DEPLOYMENTS_ENABLE?: boolean;
|
157
|
+
FEATURE_LINK_EXTERNAL_FLUX_ENABLE?: boolean;
|
152
158
|
/**
|
153
159
|
* If true, online/offline connectivity banner is enabled
|
154
|
-
*
|
155
160
|
* @default true
|
156
161
|
*/
|
157
162
|
FEATURE_INTERNET_CONNECTIVITY_ENABLE?: boolean;
|