Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/devtron-labs/dashboard i…
Browse files Browse the repository at this point in the history
…nto feat/revamp-deployment-charts
arunjaindev committed Jan 27, 2025
2 parents 78da7fe + 0ee22f8 commit 1882cc8
Showing 240 changed files with 3,901 additions and 837 deletions.
2 changes: 0 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -61,9 +61,7 @@ src/components/ClusterNodes/ClusterEvents.tsx
src/components/ClusterNodes/ClusterManifest.tsx
src/components/ClusterNodes/ClusterNodeEmptyStates.tsx
src/components/ClusterNodes/ClusterOverview.tsx
src/components/ClusterNodes/NodeActions/CordonNodeModal.tsx
src/components/ClusterNodes/NodeActions/DeleteNodeModal.tsx
src/components/ClusterNodes/NodeActions/DrainNodeModal.tsx
src/components/ClusterNodes/NodeActions/EditTaintsModal.tsx
src/components/ClusterNodes/NodeActions/NodeActionsMenu.tsx
src/components/ClusterNodes/NodeActions/validationRules.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
"private": true,
"homepage": "/dashboard",
"dependencies": {
"@devtron-labs/devtron-fe-common-lib": "1.5.9",
"@devtron-labs/devtron-fe-common-lib": "1.5.11",
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
"@rjsf/core": "^5.13.3",
"@rjsf/utils": "^5.13.3",
16 changes: 16 additions & 0 deletions src/Pages/App/Details/ExternalFlux/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as ExternalFluxAppDetailsRoute } from './ExternalFluxAppDetailsRoute'
16 changes: 16 additions & 0 deletions src/Pages/App/Details/ExternalFlux/service.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { get, getUrlWithSearchParams } from '@devtron-labs/devtron-fe-common-lib'
import { Routes } from '../../../../config'

16 changes: 16 additions & 0 deletions src/Pages/App/Details/ExternalFlux/types.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export interface ExternalFluxAppDetailParams {
clusterId: string
appName: string
16 changes: 16 additions & 0 deletions src/Pages/App/Details/ExternalFlux/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { EXTERNAL_FLUX_APP_STATUS } from './types'

// In case of FluxCD Apps True means app is Ready and False denotes app is not ready
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { BASE_CONFIGURATION_ENV_ID, EnvResourceType } from '@devtron-labs/devtron-fe-common-lib'

export const BASE_CONFIGURATIONS = {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
Button,
ButtonComponentType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { importComponentFromFELibrary } from '@Components/common'
import { ReactComponent as ICCheck } from '@Icons/ic-check.svg'
import { ReactComponent as ICFileEdit } from '@Icons/ic-file-edit.svg'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useParams } from 'react-router-dom'
import {
abortPreviousRequests,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.config-header {
&__tab:hover {
color: var(--B500) !important;
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
ActivityIndicator,
CONFIG_HEADER_TAB_VALUES,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Fragment } from 'react'
import {
Button,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useMemo, useRef, useState } from 'react'
import { generatePath, useHistory, useLocation, useRouteMatch } from 'react-router-dom'

Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './DeploymentConfigCompare'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
AppEnvDeploymentConfigDTO,
AppEnvDeploymentConfigType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { getAppEnvDeploymentConfig, TemplateListDTO } from '@devtron-labs/devtron-fe-common-lib'
import { getManifestData } from './service.utils'
import { AppEnvDeploymentConfigQueryParamsType } from '../../AppConfig.types'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { GroupBase, OptionsOrGroups } from 'react-select'
import moment from 'moment'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useState } from 'react'
import { useParams } from 'react-router-dom'
import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.deployment-template {
&__comments-view {
display: grid;
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, SyntheticEvent, useMemo, useReducer, Reducer, useRef } from 'react'
import ReactGA from 'react-ga4'
import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
BaseURLParams,
Button,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CodeEditor, ConfigurationType, MarkDown, MODES, noop } from '@devtron-labs/devtron-fe-common-lib'
import { ReactComponent as ICBookOpen } from '@Icons/ic-book-open.svg'
import { ReactComponent as ICPencil } from '@Icons/ic-pencil.svg'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
ConfigurationType,
InvalidYAMLTippyWrapper,
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as GUIView } from './GUIView.component'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { DeploymentChartVersionType, GUIViewError } from '@devtron-labs/devtron-fe-common-lib'
import { DeploymentTemplateFormProps } from '../types'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { GUIViewProps } from './types'

export const getRenderActionButton =
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { DOCUMENTATION } from '@Config/constants'

export const PROTECT_BASE_DEPLOYMENT_TEMPLATE_IDENTIFIER_DTO = 'BaseDeploymentTemplate' as const
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import YAML from 'yaml'
import {
CompareFromApprovalOptionsValuesType,
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as DeploymentTemplate } from './DeploymentTemplate'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Routes } from '@Config/constants'
import { BaseURLParams, get, post, put, ResponseType, trash } from '@devtron-labs/devtron-fe-common-lib'
import { getChartReferencesForAppAndEnv } from '@Services/service'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { SyntheticEvent } from 'react'
import { Operation } from 'fast-json-patch'
import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
applyCompareDiffOnUneditedDocument,
DryRunEditorMode,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

// FIXME: When issue for svg button height is fixed, remove this file
.no-override-empty-state-container {
.empty-state svg {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
Button,
ButtonVariantType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { GenericEmptyState } from '@devtron-labs/devtron-fe-common-lib'
import noArtifact from '@Images/no-artifact.webp'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
InfoIconTippy,
OverrideMergeStrategyType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { importComponentFromFELibrary } from '@Components/common'
import { EnterpriseTag, OverrideMergeStrategyType, SelectPickerOptionType } from '@devtron-labs/devtron-fe-common-lib'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './DeploymentTemplate'
export { default as ConfigDryRun } from './ConfigDryRun'
export { default as ConfigToolbar } from './ConfigToolbar'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
CompareFromApprovalOptionsValuesType,
ConfigHeaderTabType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
ConfigHeaderTabType,
ConfigToolbarPopupMenuConfigType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { MouseEvent, useEffect, useMemo, useState } from 'react'
import { useRouteMatch, useLocation, NavLink, useHistory, generatePath } from 'react-router-dom'
import Tippy from '@tippyjs/react'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { NavLink, generatePath } from 'react-router-dom'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CollapsibleListItem } from '@devtron-labs/devtron-fe-common-lib'
import { ResourceConfigState } from '@Pages/Applications/DevtronApps/service.types'
import { ReactComponent as ICStamp } from '@Icons/ic-stamp.svg'
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './MainContent'
16 changes: 16 additions & 0 deletions src/Pages/Applications/DevtronApps/Details/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './AppConfigurations'
16 changes: 16 additions & 0 deletions src/Pages/Applications/DevtronApps/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './Details'
16 changes: 16 additions & 0 deletions src/Pages/Applications/DevtronApps/service.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
16 changes: 16 additions & 0 deletions src/Pages/Applications/DevtronApps/service.types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
16 changes: 16 additions & 0 deletions src/Pages/Applications/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './DevtronApps'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* eslint-disable react/prop-types */
/*
* Copyright (c) 2024. Devtron Inc.
16 changes: 16 additions & 0 deletions src/Pages/GlobalConfigurations/BuildInfra/BuildInfraCMCSForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { BuildInfraCMCSFormProps } from '@devtron-labs/devtron-fe-common-lib'
import { ConfigMapSecretForm } from '@Pages/Shared/ConfigMapSecret/ConfigMapSecretForm'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useMemo } from 'react'
import { BuildInfraUtilityContext, BuildInfraUtilityContextType } from '@devtron-labs/devtron-fe-common-lib'
import BuildInfraCMCSForm from './BuildInfraCMCSForm'
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './ClusterEnvironmentDrawer'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { UseFormValidations } from '@devtron-labs/devtron-fe-common-lib'

import { ClusterEnvironmentDrawerFormProps } from './types'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { TagType } from '@devtron-labs/devtron-fe-common-lib'

export interface ClusterEnvironmentDrawerFormProps {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ClusterNamespacesDTO, GetClusterEnvironmentUpdatePayloadType } from './types'

export const getClusterEnvironmentUpdatePayload = ({
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Redirect, Route, Switch } from 'react-router-dom'
import { ERROR_STATUS_CODE, ErrorScreenManager, useMainContext, URLS } from '@devtron-labs/devtron-fe-common-lib'
import { importComponentFromFELibrary } from '@Components/common'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CUSTOM_CHART_TITLE_DESCRIPTION_CONTENT, DOCUMENTATION } from '@Config/constants'
import { InfoIconTippy, SearchBar } from '@devtron-labs/devtron-fe-common-lib'
import UploadButton from './UploadButton'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useRef } from 'react'
import Tippy, { TippyProps } from '@tippyjs/react'
import { Progressing, Tooltip, useDownload } from '@devtron-labs/devtron-fe-common-lib'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ReactComponent as Upload } from '@Icons/ic-upload.svg'
import { Button, ComponentSizeType } from '@devtron-labs/devtron-fe-common-lib'
import { UploadButtonProps } from '../types'
16 changes: 16 additions & 0 deletions src/Pages/GlobalConfigurations/DeploymentCharts/List/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as DeploymentChartsList } from './DeploymentChartsList.component'
16 changes: 16 additions & 0 deletions src/Pages/GlobalConfigurations/DeploymentCharts/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default } from './DeploymentChartsRouter.component'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useHistory, useLocation, useRouteMatch } from 'react-router-dom'
import { APIResponseHandler, GenericEmptyState, ImageType, noop, useAsync } from '@devtron-labs/devtron-fe-common-lib'
import noOffendingPipelineImg from '@Images/no-offending-pipeline.svg'
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as OffendingPipelineModalAppView } from './OfflinePipelineModalAppView'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { PolicyKindType } from '@devtron-labs/devtron-fe-common-lib'

export interface OffendingPipelineModalAppViewProps {
16 changes: 16 additions & 0 deletions src/Pages/Releases/Detail/Configurations/Configurations.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useMemo } from 'react'
import { generatePath, Redirect, Route, Switch, useRouteMatch } from 'react-router-dom'

16 changes: 16 additions & 0 deletions src/Pages/Releases/Detail/Configurations/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './Configurations'
16 changes: 16 additions & 0 deletions src/Pages/Releases/Detail/Configurations/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.release-configurations {
grid-template-columns: 280px 1fr;
}
16 changes: 16 additions & 0 deletions src/Pages/Releases/Detail/Configurations/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { SelectPickerOptionType } from '@devtron-labs/devtron-fe-common-lib'

import {
16 changes: 16 additions & 0 deletions src/Pages/Releases/Detail/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './Configurations'
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecret.wrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useRef } from 'react'
import { useParams } from 'react-router-dom'

16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useMemo, useRef, useState } from 'react'
import { generatePath, Prompt, useHistory, useLocation, useRouteMatch } from 'react-router-dom'
import ReactGA from 'react-ga4'
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretData.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ChangeEvent, useState } from 'react'

import {
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretDeleteModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useState } from 'react'

import {
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretDryRun.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useMemo, useRef } from 'react'
import { Prompt, useLocation, useParams } from 'react-router-dom'

16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretForm.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Prompt, useLocation } from 'react-router-dom'

import {
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretNullState.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { generatePath, useRouteMatch } from 'react-router-dom'

import { Button, ButtonComponentType, GenericEmptyState, ImageType } from '@devtron-labs/devtron-fe-common-lib'
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/ConfigMapSecretProtected.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useMemo, useState } from 'react'
import YAML from 'yaml'

16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CMSecretComponentType } from '@devtron-labs/devtron-fe-common-lib'
import { ConfigMapSecretNullStateProps } from './types'

16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/helpers.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Link } from 'react-router-dom'

import { CMSecretExternalType, InfoColourBar, CMSecretComponentType } from '@devtron-labs/devtron-fe-common-lib'
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './ConfigMapSecret.wrapper'

export type { CMSecretWrapperProps } from './types'
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/styles.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.configmap-secret-form {
&__name-container {
grid-template-columns: 300px 1fr;
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Dispatch, MutableRefObject, SetStateAction } from 'react'

import {
16 changes: 16 additions & 0 deletions src/Pages/Shared/ConfigMapSecret/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import YAML from 'yaml'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const EnvironmentOverviewTableHeaderFixedKeys = {
STATUS: 'status',
NAME: 'name',
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ChangeEvent, Fragment, useMemo, useState } from 'react'
import { Link } from 'react-router-dom'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.environment-overview-table {
$parent-selector: &;

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { FunctionComponent, MouseEvent, ReactElement, SVGProps } from 'react'
import { EnvironmentOverviewTableHeaderKeys } from './EnvironmentOverview.constants'

16 changes: 16 additions & 0 deletions src/Pages/Shared/EnvironmentOverviewTable/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './EnvironmentOverviewTable.component'
export * from './EnvironmentOverviewTable.types'
export { EnvironmentOverviewTableSortableKeys } from './EnvironmentOverview.constants'
16 changes: 16 additions & 0 deletions src/Pages/Shared/OrganizationFrame/organizationFrame.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.organization-frame {
&__logo {
> path:first-child {
16 changes: 16 additions & 0 deletions src/assets/gif/ic-no-eligible-commit.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-bulk-check.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-checkbox-hover.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-checkbox-intermediate.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-checkbox-selected.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-checkbox-unselected.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/dark/ic-github.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-arrow-square-in.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-arrow-up-circle.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-asterisk.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-camera.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-caret-left-small.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-chart-line-up.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-check-circle-dots.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-checkbox-hover.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-choices-dropdown.svg

Unable to render rich display

4 changes: 2 additions & 2 deletions src/assets/icons/ic-clean-brush.svg

Unable to render rich display

19 changes: 0 additions & 19 deletions src/assets/icons/ic-cordon-medium.svg

This file was deleted.

16 changes: 16 additions & 0 deletions src/assets/icons/ic-datadog.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-dot.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-file-edit.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-file-play.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-fluxcd-app.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-fluxcd.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-lego-block.svg

Unable to render rich display

16 changes: 16 additions & 0 deletions src/assets/icons/ic-newrelic.svg
19 changes: 0 additions & 19 deletions src/assets/icons/ic-play-medium.svg
Diff not rendered.
16 changes: 16 additions & 0 deletions src/assets/icons/ic-play-outline.svg
16 changes: 16 additions & 0 deletions src/assets/icons/ic-select-cluster.svg
16 changes: 16 additions & 0 deletions src/assets/icons/ic-sliders-vertical.svg
16 changes: 16 additions & 0 deletions src/assets/icons/ic-sparkles.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/icons/ic-stamp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/img/app-not-deployed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/img/ic-empty-scanner-disabled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/assets/img/no-offending-pipeline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions src/components/ApplicationGroup/Details/TriggerView/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const BULK_ERROR_MESSAGES = {
CHANGE_SIDEBAR_TAB: 'Please resolve all the errors before switching tabs',
CHANGE_APPLICATION: 'Please resolve all the errors before switching application',
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import './loadingShimmerList.scss'
16 changes: 16 additions & 0 deletions src/components/ApplicationGroup/List/LoadingShimmer/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './LoadingShimmerList'
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.shimmer-loading-list__row {
12 changes: 12 additions & 0 deletions src/components/ApplicationGroup/List/LoadingShimmer/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export interface LoadingShimmerListType {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
APIResponseHandler,
ComponentSizeType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { SyntheticEvent, useCallback } from 'react'
import { CustomInput } from '@devtron-labs/devtron-fe-common-lib'
import { ReactComponent as ICWarning } from '@Icons/ic-warning.svg'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Toggle } from '@devtron-labs/devtron-fe-common-lib'
import { ReactComponent as ICAsterisk } from '@Icons/ic-asterisk.svg'
import { CreatePluginActionType, CreatePluginInputVariableContainerProps, InputVariableItemProps } from './types'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useContext, useEffect, useRef, useState } from 'react'
import { useParams } from 'react-router-dom'
import ReactGA from 'react-ga4'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.create-plugin-modal {
.create-plugin-form {
&__input-variable-container {
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/CreatePluginModal/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CreatePluginFormErrorType, CreatePluginFormType, CreatePluginFormViewType } from './types'

export const CREATE_PLUGIN_DEFAULT_FORM: CreatePluginFormType = {
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/CreatePluginModal/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as CreatePluginModal } from './CreatePluginModal.component'
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/CreatePluginModal/service.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
getParentPluginList as getParentPluginListService,
getUrlWithSearchParams,
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/CreatePluginModal/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
CustomInputProps,
EditImageFormFieldProps,
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/CreatePluginModal/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
InlineStepDetailType,
PluginImageContainer,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useContext, useState } from 'react'
import ReactGA from 'react-ga4'
import Tippy from '@tippyjs/react'
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useContext } from 'react'
import {
TippyCustomized,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useContext } from 'react'
import {
SelectPicker,
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/PluginDetailHeader/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export { default as PluginDetailHeader } from './PluginDetailHeader.component'
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/PluginDetailHeader/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { SelectPickerOptionType } from '@devtron-labs/devtron-fe-common-lib'

export const getPluginVersionSelectOption = (
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ChangeEvent, useEffect, useState } from 'react'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ChangeEvent } from 'react'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useContext, useMemo, useRef } from 'react'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useRef, useState } from 'react'

import {
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/VariableDataTable/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
DynamicDataTableHeaderType,
FilePropertyTypeSizeUnit,
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/VariableDataTable/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './VariableDataTable.component'
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/VariableDataTable/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { PluginVariableType } from '@Components/ciPipeline/types'
import { PipelineContext } from '@Components/workflowEditor/types'
import {
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/VariableDataTable/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
ConditionType,
DynamicDataTableCellErrorType,
16 changes: 16 additions & 0 deletions src/components/CIPipelineN/VariableDataTable/validations.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
DynamicDataTableCellValidationState,
PATTERNS as FE_COMMON_LIB_PATTERNS,
16 changes: 16 additions & 0 deletions src/components/ClusterNodes/ClusterMapInitialStatus.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ReactComponent as Error } from '@Icons/ic-error-cross.svg'
import { ReactComponent as Success } from '@Icons/appstatus/healthy.svg'
import { Tooltip } from '@devtron-labs/devtron-fe-common-lib'
111 changes: 67 additions & 44 deletions src/components/ClusterNodes/NodeActions/CordonNodeModal.tsx
Original file line number Diff line number Diff line change
@@ -16,16 +16,25 @@

import { useState } from 'react'
import { useParams } from 'react-router-dom'
import { showError, Progressing, ConfirmationDialog, ToastVariantType, ToastManager } from '@devtron-labs/devtron-fe-common-lib'
import CordonIcon from '../../../assets/icons/ic-cordon-medium.svg'
import UncordonIcon from '../../../assets/icons/ic-play-medium.svg'
import {
showError,
ToastVariantType,
ToastManager,
cordonNodeCapacity,
ButtonVariantType,
ButtonStyleType,
ConfirmationModal,
CORDON_NODE_MODAL_MESSAGING,
ConfirmationModalVariantType,
ConfirmationModalProps,
} from '@devtron-labs/devtron-fe-common-lib'
import { CordonNodeModalType } from '../types'
import { cordonNodeCapacity } from '../clusterNodes.service'
import { CORDON_NODE_MODAL_MESSAGING } from '../constants'

export default function CordonNodeModal({ name, version, kind, unschedulable, closePopup }: CordonNodeModalType) {
const CordonNodeModal = ({ name, version, kind, unschedulable, closePopup }: CordonNodeModalType) => {
const { clusterId } = useParams<{ clusterId: string }>()
const [apiCallInProgress, setAPICallInProgress] = useState(false)
// NOTE: if node is unschedulable it means the node is already cordoned
const isCordonButton = !unschedulable

const onClose = (): void => {
closePopup()
@@ -58,44 +67,58 @@ export default function CordonNodeModal({ name, version, kind, unschedulable, cl
}
}

const { CordonIcon, UncordonIcon } = CORDON_NODE_MODAL_MESSAGING

const getButtonConfig = (): ConfirmationModalProps['buttonConfig'] => {
const secondaryButtonConfig = {
dataTestId: 'cancel-button',
text: CORDON_NODE_MODAL_MESSAGING.cancel,
variant: ButtonVariantType.secondary,
disabled: apiCallInProgress,
onClick: onClose,
}
const commonPrimaryButtonConfig = {
variant: ButtonVariantType.primary,
isLoading: apiCallInProgress,
onClick: cordonAPI,
}

if (isCordonButton) {
return {
primaryButtonConfig: {
text: CORDON_NODE_MODAL_MESSAGING.cordon,
style: ButtonStyleType.negative,
...commonPrimaryButtonConfig,
},
secondaryButtonConfig,
} as const
}

return {
primaryButtonConfig: {
text: CORDON_NODE_MODAL_MESSAGING.uncordon,
style: ButtonStyleType.default,
...commonPrimaryButtonConfig,
},
secondaryButtonConfig,
} as const
}

return (
<ConfirmationDialog className="confirmation-dialog__body--w-400">
{unschedulable ? (
<>
<ConfirmationDialog.Icon src={UncordonIcon} />
<ConfirmationDialog.Body title={`${CORDON_NODE_MODAL_MESSAGING.uncordon}${name}’ ?`} />
<p className="fs-14 fw-4 lh-20">{CORDON_NODE_MODAL_MESSAGING.uncordonInfoText.lineOne}</p>
<br />
<p className="fs-14 fw-4 lh-20">{CORDON_NODE_MODAL_MESSAGING.uncordonInfoText.lineTwo}</p>
</>
) : (
<>
<ConfirmationDialog.Icon src={CordonIcon} />
<ConfirmationDialog.Body title={`${CORDON_NODE_MODAL_MESSAGING.cordon}${name}’ ?`} />
<p className="fs-14 fw-4 lh-20">{CORDON_NODE_MODAL_MESSAGING.cordonInfoText.lineOne}</p>
<br />
<p className="fs-14 fw-4 lh-20">{CORDON_NODE_MODAL_MESSAGING.cordonInfoText.lineTwo}</p>
</>
)}
<ConfirmationDialog.ButtonGroup>
<button type="button" className="flex cta cancel h-36" disabled={apiCallInProgress} onClick={onClose}>
{CORDON_NODE_MODAL_MESSAGING.cancel}
</button>
<button
type="button"
className={`flex cta ${unschedulable ? '' : 'delete'} h-36`}
disabled={apiCallInProgress}
onClick={cordonAPI}
>
{apiCallInProgress ? (
<Progressing />
) : unschedulable ? (
CORDON_NODE_MODAL_MESSAGING.uncordon
) : (
CORDON_NODE_MODAL_MESSAGING.cordon
)}
</button>
</ConfirmationDialog.ButtonGroup>
</ConfirmationDialog>
<ConfirmationModal
variant={ConfirmationModalVariantType.custom}
Icon={isCordonButton ? <CordonIcon /> : <UncordonIcon />}
title={`${CORDON_NODE_MODAL_MESSAGING[isCordonButton ? 'cordon' : 'uncordon']} node '${name}'`}
handleClose={onClose}
showConfirmationModal
subtitle={
isCordonButton
? CORDON_NODE_MODAL_MESSAGING.cordonInfoText
: CORDON_NODE_MODAL_MESSAGING.uncordonInfoText
}
buttonConfig={getButtonConfig()}
/>
)
}

export default CordonNodeModal
190 changes: 42 additions & 148 deletions src/components/ClusterNodes/NodeActions/DrainNodeModal.tsx
Original file line number Diff line number Diff line change
@@ -15,89 +15,37 @@
*/

import { useState } from 'react'
import Tippy from '@tippyjs/react'
import {
showError,
Progressing,
ConfirmationDialog,
Checkbox,
CHECKBOX_VALUE,
ToastVariantType,
ToastManager,
drainNodeCapacity,
DRAIN_NODE_MODAL_MESSAGING,
NodeDrainRequest,
ConfirmationModal,
ButtonStyleType,
ConfirmationModalVariantType,
NodeDrainOptions,
} from '@devtron-labs/devtron-fe-common-lib'
import { useParams } from 'react-router-dom'
import DrainIcon from '../../../assets/icons/ic-clean-brush-medium.svg'
import { ReactComponent as QuestionIcon } from '../../v2/assets/icons/ic-question.svg'
import { ReactComponent as TimerIcon } from '../../../assets/icons/ic-timer.svg'
import { DRAIN_NODE_MODAL_MESSAGING } from '../constants'
import { NodeActionModalPropType } from '../types'
import { drainNodeCapacity } from '../clusterNodes.service'

export default function DrainNodeModal({ name, version, kind, closePopup }: NodeActionModalPropType) {
const DrainNodeModal = ({ name, version, kind, closePopup }: NodeActionModalPropType) => {
const { clusterId } = useParams<{ clusterId: string }>()
const [gracePeriod, setGracePeriod] = useState('-1')
const [deleteEmptyDirData, setDeleteEmptyDirData] = useState(false)
const [disableEviction, setDisableEviction] = useState(false)
const [forceDrain, setForceDrain] = useState(false)
const [ignoreDaemonSets, setIgnoreDaemonSets] = useState(false)
const [nodeDrainOptions, setNodeDrainOptions] = useState<NodeDrainRequest['nodeDrainOptions']>({
gracePeriodSeconds: -1,
deleteEmptyDirData: false,
disableEviction: false,
force: false,
ignoreAllDaemonSets: false,
})
const [apiCallInProgress, setAPICallInProgress] = useState(false)
const DRAIN_NODE_OPTIONS = [
{
isChecked: deleteEmptyDirData,
onChange: () => {
setDeleteEmptyDirData((prevState) => !prevState)
},
heading: DRAIN_NODE_MODAL_MESSAGING.DeleteEmptyDirectoryData.heading,
infoText: DRAIN_NODE_MODAL_MESSAGING.DeleteEmptyDirectoryData.infoText,
},
{
isChecked: disableEviction,
onChange: () => {
setDisableEviction((prevState) => !prevState)
},
heading: DRAIN_NODE_MODAL_MESSAGING.DisableEviction.heading,
infoText: DRAIN_NODE_MODAL_MESSAGING.DisableEviction.infoText,
},
{
isChecked: forceDrain,
onChange: () => {
setForceDrain((prevState) => !prevState)
},
heading: DRAIN_NODE_MODAL_MESSAGING.ForceDrain.heading,
infoText: DRAIN_NODE_MODAL_MESSAGING.ForceDrain.infoText,
},
{
isChecked: ignoreDaemonSets,
onChange: () => {
setIgnoreDaemonSets((prevState) => !prevState)
},
heading: DRAIN_NODE_MODAL_MESSAGING.IgnoreDaemonSets.heading,
infoText: DRAIN_NODE_MODAL_MESSAGING.IgnoreDaemonSets.infoText,
},
]

const onClose = (): void => {
closePopup()
}

const handleInputValue = (e) => {
const inputValue = e.target.value
setGracePeriod(Number(inputValue) < -1 ? '-1' : inputValue)
}

const handleInputOnBlur = (e) => {
if (!e.target.value) {
setGracePeriod('-1')
} else {
handleInputValue(e)
}
}

const handleKeyDown = (e) => {
if (e.key === 'Enter') {
handleInputOnBlur(e)
}
}
const { DrainIcon } = DRAIN_NODE_MODAL_MESSAGING

const drainAPI = async () => {
try {
@@ -107,13 +55,7 @@ export default function DrainNodeModal({ name, version, kind, closePopup }: Node
name,
version,
kind,
nodeDrainOptions: {
gracePeriodSeconds: Number(gracePeriod),
deleteEmptyDirData,
disableEviction,
force: forceDrain,
ignoreAllDaemonSets: ignoreDaemonSets,
},
nodeDrainOptions,
}
await drainNodeCapacity(payload)
ToastManager.showToast({
@@ -129,78 +71,30 @@ export default function DrainNodeModal({ name, version, kind, closePopup }: Node
}

return (
<ConfirmationDialog className="confirmation-dialog__body--w-400 dc__user-select-none">
<ConfirmationDialog.Icon src={DrainIcon} />
<ConfirmationDialog.Body title={`${DRAIN_NODE_MODAL_MESSAGING.Actions.drain}${name}’ ?`} />
<p className="fs-14 fw-4 lh-20 mb-18">{DRAIN_NODE_MODAL_MESSAGING.Actions.infoText}</p>
<div className="drain-node-options-container fs-14">
<div className="flex left mb-8">
<TimerIcon className="grace-period-timer-icon icon-dim-20 scn-6" />
<span className="ml-5">{DRAIN_NODE_MODAL_MESSAGING.GracePeriod.heading}</span>
<span className="grace-period-input-wrapper flex left ml-8">
<input
name="grace-period"
type="number"
autoComplete="off"
min={-1}
className="grace-period-input h-28 en-2 bw-1 dc__left-radius-4"
value={gracePeriod}
onChange={handleInputValue}
onBlur={handleInputOnBlur}
onKeyDown={handleKeyDown}
disabled={apiCallInProgress}
/>
<span className="grace-period-input-unit flex fs-13 fw-4 cn-9 h-28 en-2 bw-1 dc__right-radius-4">
sec
</span>
</span>
<Tippy
className="default-tt"
arrow={false}
placement="top"
content={DRAIN_NODE_MODAL_MESSAGING.GracePeriod.infoText}
maxWidth={250}
>
<button className="dc__no-background dc__no-border">
<QuestionIcon className="icon-dim-16" />
</button>
</Tippy>
</div>
{DRAIN_NODE_OPTIONS.map((option) => {
return (
<div className="flex left mb-12" key={option.heading}>
<Checkbox
rootClassName="dc_width-max-content"
isChecked={option.isChecked}
value={CHECKBOX_VALUE.CHECKED}
disabled={apiCallInProgress}
onChange={option.onChange}
>
{option.heading}
</Checkbox>
<Tippy
className="default-tt"
arrow={false}
placement="top"
content={option.infoText}
maxWidth={250}
>
<button className="dc__no-background dc__no-border">
<QuestionIcon className="icon-dim-16" />
</button>
</Tippy>
</div>
)
})}
</div>
<ConfirmationDialog.ButtonGroup>
<button type="button" className="flex cta cancel h-36" disabled={apiCallInProgress} onClick={onClose}>
{DRAIN_NODE_MODAL_MESSAGING.Actions.cancel}
</button>
<button type="button" className="flex cta delete h-36" disabled={apiCallInProgress} onClick={drainAPI}>
{apiCallInProgress ? <Progressing /> : DRAIN_NODE_MODAL_MESSAGING.Actions.drain}
</button>
</ConfirmationDialog.ButtonGroup>
</ConfirmationDialog>
<ConfirmationModal
handleClose={onClose}
showConfirmationModal
variant={ConfirmationModalVariantType.custom}
Icon={<DrainIcon className="scr-5" />}
title={`${DRAIN_NODE_MODAL_MESSAGING.Actions.drain}${name}’ ?`}
subtitle={DRAIN_NODE_MODAL_MESSAGING.Actions.infoText}
buttonConfig={{
primaryButtonConfig: {
text: DRAIN_NODE_MODAL_MESSAGING.Actions.drain,
onClick: drainAPI,
isLoading: apiCallInProgress,
style: ButtonStyleType.negative,
},
secondaryButtonConfig: {
text: DRAIN_NODE_MODAL_MESSAGING.Actions.cancel,
onClick: onClose,
disabled: apiCallInProgress,
},
}}
>
<NodeDrainOptions optionsData={nodeDrainOptions} setOptionsData={setNodeDrainOptions} />
</ConfirmationModal>
)
}

export default DrainNodeModal
37 changes: 18 additions & 19 deletions src/components/ClusterNodes/NodeDetails.tsx
Original file line number Diff line number Diff line change
@@ -33,30 +33,29 @@ import {
TabProps,
ToastManager,
ToastVariantType,
TOAST_ACCESS_DENIED,
ResourceDetail,
CodeEditorThemesKeys,
} from '@devtron-labs/devtron-fe-common-lib'
import { useParams, useLocation, useHistory } from 'react-router-dom'
import YAML from 'yaml'
import * as jsonpatch from 'fast-json-patch'
import { applyPatch } from 'fast-json-patch'
import { ReactComponent as Info } from '../../assets/icons/ic-info-filled.svg'
import { ReactComponent as Error } from '../../assets/icons/ic-error-exclamation.svg'
import { ReactComponent as AlertTriangle } from '../../assets/icons/ic-alert-triangle.svg'
import { ReactComponent as Cpu } from '../../assets/icons/ic-cpu.svg'
import { ReactComponent as Memory } from '../../assets/icons/ic-memory.svg'
import { ReactComponent as Storage } from '../../assets/icons/ic-storage.svg'
import { ReactComponent as Edit } from '../../assets/icons/ic-pencil.svg'
import { ReactComponent as Dropdown } from '../../assets/icons/ic-chevron-down.svg'
import { ReactComponent as CordonIcon } from '../../assets/icons/ic-cordon.svg'
import { ReactComponent as UncordonIcon } from '../../assets/icons/ic-play-medium.svg'
import { ReactComponent as DrainIcon } from '../../assets/icons/ic-clean-brush.svg'
import { ReactComponent as EditTaintsIcon } from '../../assets/icons/ic-spraycan.svg'
import { ReactComponent as DeleteIcon } from '../../assets/icons/ic-delete-interactive.svg'
import { ReactComponent as Success } from '../../assets/icons/appstatus/healthy.svg'
import { ReactComponent as Check } from '../../assets/icons/ic-check.svg'
import { ReactComponent as Review } from '../../assets/icons/ic-visibility-on.svg'
import { ReactComponent as Info } from '@Icons/ic-info-filled.svg'
import { ReactComponent as Error } from '@Icons/ic-error-exclamation.svg'
import { ReactComponent as AlertTriangle } from '@Icons/ic-alert-triangle.svg'
import { ReactComponent as Cpu } from '@Icons/ic-cpu.svg'
import { ReactComponent as Memory } from '@Icons/ic-memory.svg'
import { ReactComponent as Storage } from '@Icons/ic-storage.svg'
import { ReactComponent as Edit } from '@Icons/ic-pencil.svg'
import { ReactComponent as Dropdown } from '@Icons/ic-chevron-down.svg'
import { ReactComponent as CordonIcon } from '@Icons/ic-cordon.svg'
import { ReactComponent as UncordonIcon } from '@Icons/ic-play-outline.svg'
import { ReactComponent as DrainIcon } from '@Icons/ic-clean-brush.svg'
import { ReactComponent as EditTaintsIcon } from '@Icons/ic-spraycan.svg'
import { ReactComponent as DeleteIcon } from '@Icons/ic-delete-interactive.svg'
import { ReactComponent as Success } from '@Icons/appstatus/healthy.svg'
import { ReactComponent as Check } from '@Icons/ic-check.svg'
import { ReactComponent as Review } from '@Icons/ic-visibility-on.svg'
import { getNodeCapacity, updateNodeManifest } from './clusterNodes.service'
import {
ClusterListType,
@@ -74,7 +73,7 @@ import { AUTO_SELECT, CLUSTER_NODE_ACTIONS_LABELS, NODE_DETAILS_TABS } from './c
import CordonNodeModal from './NodeActions/CordonNodeModal'
import DrainNodeModal from './NodeActions/DrainNodeModal'
import DeleteNodeModal from './NodeActions/DeleteNodeModal'
import { K8S_EMPTY_GROUP, K8S_RESOURCE_LIST, SIDEBAR_KEYS } from '../ResourceBrowser/Constants'
import { K8S_EMPTY_GROUP, SIDEBAR_KEYS } from '../ResourceBrowser/Constants'
import { AppDetailsTabs } from '../v2/appDetails/appDetails.store'
import { unauthorizedInfoText } from '../ResourceBrowser/ResourceList/ClusterSelector'
import './clusterNodes.scss'
@@ -736,7 +735,7 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
<span className="flex left fw-6 cb-5 fs-12 cursor" onClick={showCordonNodeModal}>
{nodeDetail?.unschedulable ? (
<>
<UncordonIcon className="icon-dim-16 mr-5 scb-5 dc__stroke-width-4" />
<UncordonIcon className="icon-dim-16 mr-5 scb-5" />
{CLUSTER_NODE_ACTIONS_LABELS.uncordon}
</>
) : (
8 changes: 0 additions & 8 deletions src/components/ClusterNodes/clusterNodes.service.tsx
Original file line number Diff line number Diff line change
@@ -19,9 +19,7 @@ import { Routes } from '../../config'
import {
ClusterCapacityResponse,
ClusterListResponse,
NodeCordonRequest,
NodeDetailResponse,
NodeDrainRequest,
UpdateNodeRequestBody,
EditTaintsRequest,
TerminalDataType,
@@ -57,12 +55,6 @@ export const updateClusterShortDescription = (
export const getNodeCapacity = (clusterId: string, nodeName: string): Promise<NodeDetailResponse> =>
get(`${COMMON_ROUTES.NODE_CAPACITY}?clusterId=${clusterId}&name=${nodeName}`)

export const cordonNodeCapacity = (requestPayload: NodeCordonRequest): Promise<ResponseType> =>
put(`${COMMON_ROUTES.NODE_CAPACITY}/cordon`, requestPayload)

export const drainNodeCapacity = (requestPayload: NodeDrainRequest): Promise<ResponseType> =>
put(`${COMMON_ROUTES.NODE_CAPACITY}/drain`, requestPayload)

export const updateNodeManifest = (
clusterId: string,
nodeName: string,
48 changes: 0 additions & 48 deletions src/components/ClusterNodes/constants.ts
Original file line number Diff line number Diff line change
@@ -102,54 +102,6 @@ export const CLUSTER_NODE_ACTIONS_LABELS = {
delete: 'Delete',
}

export const CORDON_NODE_MODAL_MESSAGING = {
cordonInfoText: {
lineOne: 'Cordoning this node will mark this node as unschedulable.',
lineTwo: 'By cordoning a node, you can be sure that no new pods will be scheduled on this node.',
},
uncordonInfoText: {
lineOne: 'Uncordoning this node will mark this node as schedulable.',
lineTwo: 'By uncordoning a node, you can allow pods to be scheduled on this node.',
},
cordon: 'Cordon node',
uncordon: 'Uncordon node',
cordoning: 'Cordoning node',
uncordoning: 'Uncordoning node',
cancel: 'Cancel',
}

export const DRAIN_NODE_MODAL_MESSAGING = {
GracePeriod: {
heading: 'Grace period',
infoText:
'Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.',
},
DeleteEmptyDirectoryData: {
heading: 'Delete empty directory data',
infoText: 'Enabling this field will delete the pods using empty directory data when the node is drained.',
},
DisableEviction: {
heading: 'Disable eviction (use with caution)',
infoText: `Enabling this field will force drain to use delete, even if eviction is supported. This will bypass checking PodDisruptionBudgets.
Note: Make sure to use with caution.`,
},
ForceDrain: {
heading: 'Force drain',
infoText:
'Enabling this field will force drain a node even if there are pods that do not declare a controller.',
},
IgnoreDaemonSets: {
heading: 'Ignore DaemonSets',
infoText: 'Enabling this field will ignore DaemonSet-managed pods.',
},
Actions: {
infoText: 'Drain will cordon off the node and evict all pods of the node.',
drain: 'Drain node',
draining: 'Draining node',
cancel: 'Cancel',
},
}

export const DELETE_NODE_MODAL_MESSAGING = {
recommended: 'Recommended: ',
recommendedInfoText: 'Drain the node before deleting it as it may cause disruption because of pod deletion.',
20 changes: 0 additions & 20 deletions src/components/ClusterNodes/types.ts
Original file line number Diff line number Diff line change
@@ -184,14 +184,6 @@ export interface EditTaintsModalType extends NodeActionModalPropType {
taints: TaintType[]
}

interface NodeCordonOptions {
unschedulableDesired: boolean
}

export interface NodeCordonRequest extends NodeActionRequest {
nodeCordonOptions: NodeCordonOptions
}

export interface ClusteNotePatchRequest {
id: number // this is mandatory to send in the request
identifier: number // equals clusterId for cluster description and appId for app/job description
@@ -203,18 +195,6 @@ export interface ClusterShortDescriptionPatchRequest {
description: string
}

interface NodeDrainOptions {
gracePeriodSeconds: number
deleteEmptyDirData: boolean
disableEviction: boolean
force: boolean
ignoreAllDaemonSets: boolean
}

export interface NodeDrainRequest extends NodeActionRequest {
nodeDrainOptions: NodeDrainOptions
}

export interface EditTaintsRequest extends NodeActionRequest {
taints: TaintType[]
}
16 changes: 16 additions & 0 deletions src/components/ClusterNodes/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
ClusterDetail,
numberComparatorBySortOrder,
16 changes: 16 additions & 0 deletions src/components/Jobs/JobList/JobListFilters.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import ExportToCsv from '@Components/common/ExportToCsv/ExportToCsv'
import {
FilterSelectPicker,
2 changes: 1 addition & 1 deletion src/components/ResourceBrowser/ResourceBrowser.scss
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@
.scrollable-event-list {
height: calc(100vh - 180px);
&.paginated-list-view {
height: calc(100vh - 237px);
height: calc(100vh - 201px);
}

&.sync-error {
46 changes: 31 additions & 15 deletions src/components/ResourceBrowser/ResourceList/BaseResourceList.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
Pagination,
Progressing,
@@ -223,6 +239,10 @@ const BaseResourceListContent = ({
return acc
}, {}) as Record<string, K8sResourceDetailDataType>) ?? {},
)

handleBulkSelection({
action: BulkSelectionEvents.CLEAR_ALL_SELECTIONS,
})
}, [resourceListOffset, filteredResourceList, pageSize])

useEffect(
@@ -292,16 +312,8 @@ const BaseResourceListContent = ({
}
}

const handleCloseRBBulkOperationsModal = () => {
setBulkOperationModalState('closed')
}

const handleOpenRestartBulkOperationsModal = () => {
setBulkOperationModalState('restart')
}

const handleOpenDeleteBulkOperationsModal = () => {
setBulkOperationModalState('delete')
const getBulkOperationsModalStateSetter = (option: BulkOperationsModalState) => () => {
setBulkOperationModalState(option)
}

const handleClearBulkSelection = () => {
@@ -458,9 +470,9 @@ const BaseResourceListContent = ({
key={`${resourceData.id}-${columnName}`}
className={`flexbox dc__align-items-center ${
columnName === 'status'
? ` app-summary__status-name ${getStatusClass(String(resourceData[columnName]))}`
? `app-summary__status-name dc__no-text-transform ${getStatusClass(String(resourceData[columnName]))}`
: ''
} ${columnName === 'errors' ? 'app-summary__status-name f-error' : ''}`}
} ${columnName === 'errors' ? 'app-summary__status-name f-error dc__no-text-transform' : ''}`}
>
<ConditionalWrap
condition={columnName === 'node'}
@@ -668,19 +680,23 @@ const BaseResourceListContent = ({
: getSelectedIdentifiersCount()
}
handleClearBulkSelection={handleClearBulkSelection}
handleOpenBulkDeleteModal={handleOpenDeleteBulkOperationsModal}
handleOpenRestartWorkloadModal={handleOpenRestartBulkOperationsModal}
handleOpenBulkDeleteModal={getBulkOperationsModalStateSetter('delete')}
handleOpenRestartWorkloadModal={getBulkOperationsModalStateSetter('restart')}
showBulkRestartOption={
window._env_.FEATURE_BULK_RESTART_WORKLOADS_FROM_RB.split(',')
.map((feat: string) => feat.trim().toUpperCase())
.indexOf(selectedResource.gvk.Kind.toUpperCase()) > -1
}
showNodeListingOptions={isNodeListing}
handleOpenCordonNodeModal={getBulkOperationsModalStateSetter('cordon')}
handleOpenUncordonNodeModal={getBulkOperationsModalStateSetter('uncordon')}
handleOpenDrainNodeModal={getBulkOperationsModalStateSetter('drain')}
/>
)}

{RBBulkOperations && bulkOperationModalState !== 'closed' && (
<RBBulkOperations
handleModalClose={handleCloseRBBulkOperationsModal}
handleModalClose={getBulkOperationsModalStateSetter('closed')}
handleReloadDataAfterBulkOperation={handleReloadDataAfterBulkDelete}
operationType={bulkOperationModalState}
allResources={filteredResourceList}
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
CollapsibleList,
ErrorScreenManager,
188 changes: 93 additions & 95 deletions src/components/ResourceBrowser/ResourceList/EventList.tsx
Original file line number Diff line number Diff line change
@@ -33,7 +33,10 @@ export const EventList = ({
searchText,
setWidgetEventDetails,
}: EventListType) => (
<div className="dc__overflow-auto">
<div
ref={listRef}
className={`${getScrollableResourceClass('scrollable-event-list', paginatedView, syncError)} dc__min-width-fit-content dc__overflow-auto`}
>
<div
className={`event-list-row${ExplainEventButton ? '__explain' : ''} dc__zi-1 dc__min-width-fit-content dc__position-sticky bg__primary dc__top-0 fw-6 cn-7 fs-13 dc__border-bottom px-20 py-8 dc__uppercase h-36`}
>
@@ -45,135 +48,130 @@ export const EventList = ({
</div>
))}
</div>
<div
ref={listRef}
className={`${getScrollableResourceClass('scrollable-event-list', paginatedView, syncError)} dc__min-width-fit-content`}
>
{filteredData?.map((eventData) => {
const eventDetails: WidgetEventDetails = {
message: eventData.message as string,
namespace: eventData.namespace as string,
object: eventData[EVENT_LIST.dataKeys.involvedObject] as string,
source: eventData.source as string,
age: eventData.age as string,
count: eventData.count as number,
lastSeen: eventData[EVENT_LIST.dataKeys.lastSeen] as string,
}
const handleExplainEventClick = () => {
setWidgetEventDetails(eventDetails)
}
return (
{filteredData?.map((eventData) => {
const eventDetails: WidgetEventDetails = {
message: eventData.message as string,
namespace: eventData.namespace as string,
object: eventData[EVENT_LIST.dataKeys.involvedObject] as string,
source: eventData.source as string,
age: eventData.age as string,
count: eventData.count as number,
lastSeen: eventData[EVENT_LIST.dataKeys.lastSeen] as string,
}
const handleExplainEventClick = () => {
setWidgetEventDetails(eventDetails)
}
return (
<div
key={Object.values(eventData).join('-')}
className={`event-list-row${ExplainEventButton ? '__explain' : ''} cn-9 fs-13 dc__border-bottom-n1 px-20 py-12 hover-class`}
>
<div
key={Object.values(eventData).join('-')}
className={`event-list-row${ExplainEventButton ? '__explain' : ''} cn-9 fs-13 dc__border-bottom-n1 px-20 py-12 hover-class`}
className={`app-summary__status-name dc__highlight-text f-${(eventData.type as string)?.toLowerCase()}`}
>
<div
className={`app-summary__status-name dc__highlight-text f-${(eventData.type as string)?.toLowerCase()}`}
>
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.type as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
<div className="dc__highlight-text dc__break-word">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.type as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
<div className="dc__highlight-text dc__break-word">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.message as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
<Tooltip content={eventData.namespace}>
<div className="dc__ellipsis-right dc__highlight-text">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.message as string,
text: eventData.namespace as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
<Tooltip content={eventData.namespace}>
<div className="dc__ellipsis-right dc__highlight-text">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.namespace as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
</Tooltip>
<div className="flexbox dc__align-start">
<Tooltip content={eventData[EVENT_LIST.dataKeys.involvedObject]}>
<button
type="button"
className="dc__unset-button-styles dc__ellipsis-right"
data-name={eventData[EVENT_LIST.dataKeys.involvedObject]}
data-namespace={eventData.namespace}
data-origin="event"
onClick={handleResourceClick}
aria-label="Select event involved object"
>
<span
className="dc__link cursor"
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData[EVENT_LIST.dataKeys.involvedObject] as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</button>
</Tooltip>
</div>
<Tooltip content={eventData.source}>
<div className="dc__ellipsis-right dc__highlight-text">
</Tooltip>
<div className="flexbox dc__align-start">
<Tooltip content={eventData[EVENT_LIST.dataKeys.involvedObject]}>
<button
type="button"
className="dc__unset-button-styles dc__ellipsis-right"
data-name={eventData[EVENT_LIST.dataKeys.involvedObject]}
data-namespace={eventData.namespace}
data-origin="event"
onClick={handleResourceClick}
aria-label="Select event involved object"
>
<span
className="dc__link cursor"
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.source as string,
text: eventData[EVENT_LIST.dataKeys.involvedObject] as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
</button>
</Tooltip>
<div>{eventData.count}</div>
<div className="dc__highlight-text">
</div>
<Tooltip content={eventData.source}>
<div className="dc__ellipsis-right dc__highlight-text">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.age as string,
text: eventData.source as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
<div>{eventData[EVENT_LIST.dataKeys.lastSeen]}</div>
{ExplainEventButton && eventData.type === 'Warning' ? (
<ExplainEventButton handleExplainEventClick={handleExplainEventClick} />
) : (
<span />
)}
</Tooltip>
<div>{eventData.count}</div>
<div className="dc__highlight-text">
<span
dangerouslySetInnerHTML={{
__html: DOMPurify.sanitize(
highlightSearchText({
searchText,
text: eventData.age as string,
highlightClasses: 'p-0 fw-6 bcy-2',
}),
),
}}
/>
</div>
)
})}
</div>
<div>{eventData[EVENT_LIST.dataKeys.lastSeen]}</div>
{ExplainEventButton && eventData.type === 'Warning' ? (
<ExplainEventButton handleExplainEventClick={handleExplainEventClick} />
) : (
<span />
)}
</div>
)
})}
</div>
)
Original file line number Diff line number Diff line change
@@ -19,9 +19,9 @@ import { useHistory, useLocation, useRouteMatch } from 'react-router-dom'
import { noop, PopupMenu } from '@devtron-labs/devtron-fe-common-lib'
import { AppDetailsTabs } from '@Components/v2/appDetails/appDetails.store'
import { TaintType } from '@Components/ClusterNodes/types'
import { ReactComponent as UncordonIcon } from '@Icons/ic-play-outline.svg'
import { ReactComponent as TerminalIcon } from '../../../assets/icons/ic-terminal-fill.svg'
import { ReactComponent as CordonIcon } from '../../../assets/icons/ic-cordon.svg'
import { ReactComponent as UncordonIcon } from '../../../assets/icons/ic-play-medium.svg'
import { ReactComponent as DrainIcon } from '../../../assets/icons/ic-clean-brush.svg'
import { ReactComponent as EditTaintsIcon } from '../../../assets/icons/ic-spraycan.svg'
import { ReactComponent as EditFileIcon } from '../../../assets/icons/ic-edit-lines.svg'
@@ -114,8 +114,7 @@ const NodeActionsMenu = ({ nodeData, getNodeListData, addTab }: NodeActionsMenuP
name={name}
version={version}
kind={kind}
// NOTE!: ts was showing error in yarn lint but vscode did not
unschedulable={!!nodeData.unschedulable as unknown as boolean}
unschedulable={!!nodeData.unschedulable}
closePopup={hideCordonNodeModal}
/>
)
@@ -171,7 +170,7 @@ const NodeActionsMenu = ({ nodeData, getNodeListData, addTab }: NodeActionsMenuP
>
{nodeData.unschedulable ? (
<>
<UncordonIcon className="icon-dim-16 mr-8 scn-7 dc__stroke-width-4" />
<UncordonIcon className="icon-dim-16 mr-8 scn-7" />
{CLUSTER_NODE_ACTIONS_LABELS.uncordon}
</>
) : (
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@ import { ReactComponent as Warning } from '../../../assets/icons/ic-warning.svg'
import { handleUTCTime } from '../../common'
import { ShortcutKeyBadge } from '../../common/formFields/Widgets/Widgets'
import { SidebarChildButtonPropsType } from '../Types'
import { Tooltip } from '@devtron-labs/devtron-fe-common-lib'

export const KindSearchValueContainer = (props) => {
const { selectProps } = props
@@ -102,12 +103,14 @@ export const SidebarChildButton: React.FC<SidebarChildButtonPropsType> = ({
onClick={onClick}
aria-label={`Select ${text}`}
>
<div
className={`fs-13 pointer dc__ellipsis-right dc__align-left dc__border-radius-4-imp fw-4 pt-6 lh-20 pr-8 pb-6 pl-8 ${
isSelected ? 'bcb-1 cb-5' : 'cn-7 dc__hover-n50'
}`}
>
{text}
</div>
<Tooltip content={text}>
<div
className={`fs-13 pointer dc__ellipsis-right dc__align-left dc__border-radius-4-imp fw-4 pt-6 lh-20 pr-8 pb-6 pl-8 ${
isSelected ? 'bcb-1 cb-5' : 'cn-7 dc__hover-n50'
}`}
>
{text}
</div>
</Tooltip>
</button>
)
27 changes: 23 additions & 4 deletions src/components/ResourceBrowser/ResourceList/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
import { K8sResourceDetailType, ServerErrors, ALL_NAMESPACE_OPTION } from '@devtron-labs/devtron-fe-common-lib'
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
K8sResourceDetailType,
ServerErrors,
ALL_NAMESPACE_OPTION,
RBBulkOperationType,
} from '@devtron-labs/devtron-fe-common-lib'
import { Dispatch, ReactNode, SetStateAction } from 'react'
import { ClusterListType } from '@Components/ClusterNodes/types'
import { UseTabsReturnType } from '@Components/common/DynamicTabs/types'
@@ -58,6 +79,4 @@ export interface ResourceListUrlFiltersType {
targetK8sVersion: string
}

export type BulkOperationType = 'restart' | 'delete'

export type BulkOperationsModalState = BulkOperationType | 'closed'
export type BulkOperationsModalState = RBBulkOperationType | 'closed'
16 changes: 16 additions & 0 deletions src/components/ResourceBrowser/ResourceList/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { noop } from '@devtron-labs/devtron-fe-common-lib'
import {
TARGET_K8S_VERSION_SEARCH_KEY,
2 changes: 1 addition & 1 deletion src/components/app/details/appDetails/AppDetails.tsx
Original file line number Diff line number Diff line change
@@ -696,7 +696,7 @@ export const Details: React.FC<DetailsType> = ({
return (
<ConfirmationModal
variant={ConfirmationModalVariantType.custom}
Icon={hibernateConfirmationModal === 'hibernate' ? ICHibernate : ICUnhibernate}
Icon={hibernateConfirmationModal === 'hibernate' ? <ICHibernate /> : <ICUnhibernate />}
title={`${hibernateConfirmationModal === 'hibernate' ? 'Hibernate' : 'Restore'} '${appDetails.appName}' on '${appDetails.environmentName}'`}
subtitle={
<p className="m-0-imp fs-13">
16 changes: 16 additions & 0 deletions src/components/app/details/appDetails/AppSecurity.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useAsync, getSecurityScan } from '@devtron-labs/devtron-fe-common-lib'
import { UseGetAppSecurityDetailsProps, UseGetAppSecurityDetailsReturnType } from './appDetails.type'

16 changes: 16 additions & 0 deletions src/components/app/details/appDetails/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const APP_METRICS_CALENDAR_INPUT_DATE_FORMAT = 'DD-MM-YYYY hh:mm:ss'
16 changes: 16 additions & 0 deletions src/components/app/details/appDetails/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { AppMetricsTabType, ChartTypes, StatusTypes } from './appDetails.type'
import { AppInfo } from './utils'

Empty file.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

.pipeline-config-diff-tile {
svg {
&.config-diff-found-icon {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useLocation } from 'react-router-dom'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { DeploymentWithConfigType, Progressing, SelectPicker, Tooltip } from '@devtron-labs/devtron-fe-common-lib'

import { ReactComponent as ICWarning } from '@Icons/ic-warning.svg'
16 changes: 16 additions & 0 deletions src/components/app/details/triggerView/PipelineConfigDiff/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export * from './PipelineConfigDiff'
export * from './usePipelineDeploymentConfig'
16 changes: 16 additions & 0 deletions src/components/app/details/triggerView/PipelineConfigDiff/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
DeploymentConfigDiffProps,
DeploymentWithConfigType,
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useEffect, useMemo, useState } from 'react'
import { useLocation } from 'react-router-dom'

Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { OptionsOrGroups, GroupBase } from 'react-select'

import {
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { URLS } from '@Config/routes'
import {
Button,
16 changes: 16 additions & 0 deletions src/components/app/details/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
DynamicDataTableRowDataType,
DynamicDataTableRowType,
16 changes: 16 additions & 0 deletions src/components/app/list-new/AppList.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* eslint-disable jsx-a11y/anchor-is-valid */
/*
* Copyright (c) 2024. Devtron Inc.
16 changes: 16 additions & 0 deletions src/components/app/list-new/AppListFilters.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
AppListConstants,
ComponentSizeType,
16 changes: 16 additions & 0 deletions src/components/app/list/constants.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { DevtronAppExpandedState } from './types'

export const INITIAL_EXPANDED_STATE: DevtronAppExpandedState = {
16 changes: 16 additions & 0 deletions src/components/bulkEdits/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export enum OutputObjectTabs {
OUTPUT = 'Output',
IMPACTED_OBJECTS = 'Impacted objects',
2 changes: 1 addition & 1 deletion src/components/cdPipeline/DeleteCDNode.tsx
Original file line number Diff line number Diff line change
@@ -89,7 +89,7 @@ const DeleteCDNode = ({
isLoading,
},
}}
customInputConfig={{
confirmationConfig={{
identifier: 'delete-cd-node-input',
confirmationKeyword: deleteTitleName,
}}
16 changes: 16 additions & 0 deletions src/components/ciConfig/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { getGitProviderIcon } from '@Components/common'
import { MaterialOptionType } from './types'

16 changes: 16 additions & 0 deletions src/components/common/DynamicTabs/DynamicTabsSelect.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
Button,
ButtonStyleType,
16 changes: 16 additions & 0 deletions src/components/common/DynamicTabs/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

export const FALLBACK_TAB = 1

export const TAB_DATA_LOCAL_STORAGE_KEY = 'persisted-tabs-data'
16 changes: 16 additions & 0 deletions src/components/common/ExportToCsv/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { FILE_NAMES } from './constants'

export interface ExportToCsvProps<ConfigValueType extends string = string> {
16 changes: 16 additions & 0 deletions src/components/common/ExportToCsv/utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { ExportConfigurationProps } from './types'

export const getDefaultValueFromConfiguration = <ConfigValueType extends string>(
16 changes: 16 additions & 0 deletions src/components/common/GitTabs/constants.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
16 changes: 16 additions & 0 deletions src/components/common/GitTabs/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
16 changes: 16 additions & 0 deletions src/components/common/GitTabs/utils.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/*
* Copyright (c) 2024 Devtron Inc.
* All rights reserved.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CI_MATERIAL_EMPTY_STATE_MESSAGING } from '@Components/app/details/triggerView/Constants'
import { URLS } from '@Config/routes'
import { Button, ButtonComponentType, ButtonVariantType, noop } from '@devtron-labs/devtron-fe-common-lib'
16 changes: 16 additions & 0 deletions src/components/common/helpers/GitInfoMaterialCard/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { CIMaterialProps, RuntimeParamsErrorState, TriggerViewState } from '@Components/app/details/triggerView/types'
import { CIMaterialType } from '@devtron-labs/devtron-fe-common-lib'
import React from 'react'
16 changes: 16 additions & 0 deletions src/components/notifications/AddConfigurationButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Button, ButtonVariantType, ComponentSizeType, useSearchString } from '@devtron-labs/devtron-fe-common-lib'
import { useHistory } from 'react-router-dom'
import { ReactComponent as Add } from '@Icons/ic-add.svg'
16 changes: 16 additions & 0 deletions src/components/notifications/ConfigTableRowActionButton.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Trash } from '@Components/common'
import { ReactComponent as Edit } from '@Icons/ic-pencil.svg'
import { Button, ButtonStyleType, ButtonVariantType, ComponentSizeType } from '@devtron-labs/devtron-fe-common-lib'
16 changes: 16 additions & 0 deletions src/components/notifications/ConfigurationDrawerModal.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import {
Button,
ButtonStyleType,
16 changes: 16 additions & 0 deletions src/components/notifications/ConfigurationTables.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Switch, Route, useRouteMatch } from 'react-router-dom'
import { DeleteComponentsName } from '@Config/constantMessaging'
import { showError } from '@devtron-labs/devtron-fe-common-lib'
16 changes: 16 additions & 0 deletions src/components/notifications/ConfigurationTabsSwitcher.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { useHistory } from 'react-router-dom'
import { useSearchString } from '@devtron-labs/devtron-fe-common-lib'
import { getConfigurationTabTextWithIcon } from './notifications.util'
16 changes: 16 additions & 0 deletions src/components/notifications/DefaultCheckbox.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2024. Devtron Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { Checkbox, CHECKBOX_VALUE } from '@devtron-labs/devtron-fe-common-lib'
import { DefaultCheckboxProps } from './types'

16 changes: 16 additions & 0 deletions src/components/notifications/EmptyConfigurationView.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/SESConfigurationTable.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/SMTPConfigurationTable.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/SlackConfigModal.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/SlackConfigurationTable.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/WebhookConfigDynamicDataTable.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/WebhookConfigurationTable.tsx
16 changes: 16 additions & 0 deletions src/components/notifications/constants.ts
16 changes: 16 additions & 0 deletions src/components/security/AddCVEPolicy/ExposureList.tsx
16 changes: 16 additions & 0 deletions src/components/security/AddCVEPolicy/index.tsx
16 changes: 16 additions & 0 deletions src/components/security/SecurityScansTab/SecurityScansTab.tsx
16 changes: 16 additions & 0 deletions src/components/security/SecurityScansTab/constants.tsx
16 changes: 16 additions & 0 deletions src/components/security/SecurityScansTab/types.tsx
16 changes: 16 additions & 0 deletions src/components/security/SecurityScansTab/utils.tsx
16 changes: 16 additions & 0 deletions src/components/v2/appDetails/NodeDetailComponentWrapper.tsx
16 changes: 16 additions & 0 deletions src/components/v2/appDetails/constants.ts

This file was deleted.

16 changes: 16 additions & 0 deletions src/components/v2/appDetails/k8Resource/utils.tsx
16 changes: 16 additions & 0 deletions src/components/v2/appDetails/sourceInfo/utils.tsx
16 changes: 16 additions & 0 deletions src/css/application.scss
15 changes: 15 additions & 0 deletions src/css/base.scss
8 changes: 8 additions & 0 deletions src/css/forms.scss
16 changes: 16 additions & 0 deletions src/css/iconTheming.scss
16 changes: 16 additions & 0 deletions src/css/normalize.scss
16 changes: 16 additions & 0 deletions src/css/themeUtils.scss
16 changes: 16 additions & 0 deletions src/stories/Button.stories.tsx
16 changes: 16 additions & 0 deletions src/stories/SelectPicker.stories.tsx
16 changes: 16 additions & 0 deletions src/stories/ToastManager.stories.tsx
16 changes: 16 additions & 0 deletions src/stories/useForm.stories.tsx
314 changes: 157 additions & 157 deletions yarn.lock

0 comments on commit 1882cc8

Please sign in to comment.