Skip to content

Commit 7e9a935

Browse files
Merge branch 'main' into feat/argo-timeline
2 parents c284a1f + c3a1298 commit 7e9a935

File tree

103 files changed

+2808
-1651
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+2808
-1651
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "0.0.45",
7+
"@devtron-labs/devtron-fe-common-lib": "0.0.48",
88
"@rjsf/core": "^5.13.3",
99
"@rjsf/utils": "^5.13.3",
1010
"@rjsf/validator-ajv8": "^5.13.3",
@@ -46,13 +46,13 @@
4646
"react-virtualized": "^9.22.3",
4747
"recharts": "^2.1.9",
4848
"rxjs": "^7.5.4",
49+
"tippy.js": "^6.3.7",
4950
"xterm": "^4.19.0",
5051
"xterm-addon-fit": "^0.5.0",
5152
"xterm-addon-search": "^0.9.0",
5253
"xterm-webfont": "^2.0.0",
5354
"yaml": "^1.7.2",
54-
"yamljs": "^0.3.0",
55-
"tippy.js": "^6.3.7"
55+
"yamljs": "^0.3.0"
5656
},
5757
"scripts": {
5858
"lint": "eslint src/**/*.tsx",

src/assets/icons/ic-login-dt-with-hat.svg

Lines changed: 289 additions & 0 deletions
Loading

src/assets/icons/ic-sidebar-dt-with-hat.svg

Lines changed: 286 additions & 0 deletions
Loading

src/components/ApplicationGroup/AppGroup.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@ import {
44
CiPipelineResult,
55
WorkflowResult,
66
NodeAttr,
7-
PipelineType,
8-
WorkflowNodeType,
97
CiPipeline,
108
} from '../app/details/triggerView/types'
119
import { WebhookListResponse } from '../ciPipeline/Webhook/types'
1210
import { processWorkflow } from '../app/details/triggerView/workflow.service'
1311
import { WorkflowTrigger } from '../app/details/triggerView/config'
1412
import { ModuleNameMap, Routes, URLS } from '../../config'
15-
import { get, post, put, ResponseType, trash } from '@devtron-labs/devtron-fe-common-lib'
13+
import { get, post, put, ResponseType, trash, WorkflowNodeType, PipelineType } from '@devtron-labs/devtron-fe-common-lib'
1614
import {
1715
AppGroupList,
1816
CIConfigListType,

src/components/ApplicationGroup/AppGroup.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import {
44
FilterConditionsListType,
55
ResponseType,
66
UserApprovalConfigType,
7+
WorkflowNodeType
78
} from '@devtron-labs/devtron-fe-common-lib'
89
import { MultiValue } from 'react-select'
9-
import { WebhookPayloads, WorkflowNodeType, WorkflowType } from '../app/details/triggerView/types'
10+
import { WebhookPayloads, WorkflowType } from '../app/details/triggerView/types'
1011
import { EditDescRequest, OptionType } from '../app/types'
1112
import { AppFilterTabs, BulkResponseStatus } from './Constants'
1213

src/components/ApplicationGroup/Details/EnvCIDetails/EnvCIDetails.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react'
22
import { generatePath, Route, useHistory, useParams, useRouteMatch } from 'react-router-dom'
3-
import { Progressing, showError, sortCallback, useAsync } from '@devtron-labs/devtron-fe-common-lib'
3+
import { Progressing, showError, sortCallback, useAsync, PipelineType } from '@devtron-labs/devtron-fe-common-lib'
44
import { URLS } from '../../../../config'
55
import { APP_GROUP_CI_DETAILS } from '../../../../config/constantMessaging'
66
import { EmptyView, LogResizeButton } from '../../../app/details/cicdHistory/History.components'
@@ -12,7 +12,7 @@ import {
1212
FetchIdDataStatus,
1313
} from '../../../app/details/cicdHistory/types'
1414
import { Details } from '../../../app/details/cIDetails/CIDetails'
15-
import { CiPipeline, PipelineType } from '../../../app/details/triggerView/types'
15+
import { CiPipeline } from '../../../app/details/triggerView/types'
1616
import { getTriggerHistory } from '../../../app/service'
1717
import { asyncWrap, mapByKey, useInterval } from '../../../common'
1818
import { getCIConfigList } from '../../AppGroup.service'

src/components/ApplicationGroup/Details/TriggerView/BulkSourceChange.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ export default function BulkSourceChange({ closePopup, responseList, changeBranc
103103
<div className="form__row">
104104
<CustomInput
105105
labelClassName="dc__required-field"
106-
autoComplete="off"
107106
name="branch_name"
108107
disabled={false}
109108
value={branchName}

src/components/ApplicationGroup/Details/TriggerView/EnvTriggerView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
Checkbox,
1616
CHECKBOX_VALUE,
1717
VisibleModal,
18+
WorkflowNodeType,
1819
} from '@devtron-labs/devtron-fe-common-lib'
1920
import CDMaterial from '../../../app/details/triggerView/cdMaterial'
2021
import { CIMaterial } from '../../../app/details/triggerView/ciMaterial'
@@ -24,7 +25,6 @@ import {
2425
CIMaterialRouterProps,
2526
MATERIAL_TYPE,
2627
NodeAttr,
27-
WorkflowNodeType,
2828
WorkflowType,
2929
} from '../../../app/details/triggerView/types'
3030
import { Workflow } from '../../../app/details/triggerView/workflow/Workflow'

src/components/CIPipelineN/AdvancedConfigOptions.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ import { ReactComponent as Add } from '../../assets/icons/ic-add.svg'
44
import { ReactComponent as QuestionIcon } from '../v2/assets/icons/ic-question.svg'
55
import { ReactComponent as HelpIcon } from '../../assets/icons/ic-help.svg'
66
import CIConfig from '../ciConfig/CIConfig'
7-
import { deepEqual } from '../common'
87
import { ComponentStates } from '../EnvironmentOverride/EnvironmentOverrides.type'
98
import { AdvancedConfigOptionsProps, CIConfigParentState } from '../ciConfig/types'
109
import { DockerConfigOverrideKeys } from '../ciPipeline/types'
11-
import { CIBuildConfigType, CIBuildType, noop, TippyCustomized, TippyTheme } from '@devtron-labs/devtron-fe-common-lib'
10+
import { CIBuildConfigType, CIBuildType, CustomInput, noop, TippyCustomized, TippyTheme } from '@devtron-labs/devtron-fe-common-lib'
1211
import { getTargetPlatformMap } from '../ciConfig/CIConfig.utils'
1312
import TargetPlatformSelector from '../ciConfig/TargetPlatformSelector'
1413
import { OptionType } from '../app/types'
@@ -18,7 +17,6 @@ import { pipelineContext } from '../workflowEditor/workflowEditor'
1817

1918
export default function AdvancedConfigOptions({
2019
ciPipeline,
21-
setDockerConfigOverridden,
2220
}: AdvancedConfigOptionsProps) {
2321
const {
2422
formData,
@@ -151,9 +149,6 @@ export default function AdvancedConfigOptions({
151149

152150
// set updated form data
153151
setFormData(_form)
154-
155-
// Check for diff in global & current CI config and set isDockerConfigOverridden flag accordingly
156-
setDockerConfigOverridden(!deepEqual(_form.dockerConfigOverride, parentState.defaultDockerConfigs))
157152
}
158153

159154
const renderDockerArgs = () => {
@@ -186,9 +181,10 @@ export default function AdvancedConfigOptions({
186181
return (
187182
<div className="flexbox justify-space" key={`build-${index}`}>
188183
<div className="mt-8 w-100">
189-
<input
184+
<CustomInput
185+
name="arg-key"
190186
data-testid={`docker-arg-key-${index}`}
191-
className="w-100 dc__top-radius-4 pl-10 pr-10 pt-6 pb-6 en-2 bw-1"
187+
rootClassName="w-100 dc__top-radius-4 pl-10 pr-10 pt-6 pb-6 en-2 bw-1"
192188
autoComplete="off"
193189
placeholder="Key"
194190
type="text"

src/components/CIPipelineN/Build.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SourceTypeMap, ViewType } from '../../config'
33
import { createWebhookConditionList } from '../ciPipeline/ciPipeline.service'
44
import { SourceMaterials } from '../ciPipeline/SourceMaterials'
55
import { ValidationRules } from '../ciPipeline/validationRules'
6-
import { Progressing, Toggle, CiPipelineSourceTypeOption } from '@devtron-labs/devtron-fe-common-lib'
6+
import { Progressing, Toggle, CiPipelineSourceTypeOption, CustomInput } from '@devtron-labs/devtron-fe-common-lib'
77
import { BuildType, WebhookCIProps } from '../ciPipeline/types'
88
import { ReactComponent as AlertTriangle } from '../../assets/icons/ic-alert-triangle.svg'
99
import { ReactComponent as BugScanner } from '../../assets/icons/scanner.svg'
@@ -16,7 +16,6 @@ export function Build({
1616
ciPipeline,
1717
pageState,
1818
isSecurityModuleInstalled,
19-
setDockerConfigOverridden,
2019
isJobView,
2120
getPluginData,
2221
}: BuildType) {
@@ -202,23 +201,19 @@ export function Build({
202201
const renderPipelineName = () => {
203202
return (
204203
<label className="form__row">
205-
<span className="form__label dc__required-field">Pipeline Name</span>
206-
<input
207-
className="form__input"
204+
<CustomInput
205+
name="name"
206+
label="Pipeline Name"
208207
data-testid="build-pipeline-name-textbox"
209208
autoComplete="off"
210209
disabled={!!ciPipeline?.id}
211210
placeholder="e.g. my-first-pipeline"
212211
type="text"
213212
value={formData.name}
214213
onChange={handlePipelineName}
214+
isRequiredField={true}
215+
error={formDataErrorObj.name && !formDataErrorObj.name.isValid && formDataErrorObj.name.message}
215216
/>
216-
{formDataErrorObj.name && !formDataErrorObj.name.isValid && (
217-
<span className="flexbox cr-5 mt-4 fw-5 fs-11 flexbox">
218-
<AlertTriangle className="icon-dim-14 mr-5 ml-5 mt-2" />
219-
<span>{formDataErrorObj.name.message}</span>
220-
</span>
221-
)}
222217
</label>
223218
)
224219
}
@@ -265,7 +260,6 @@ export function Build({
265260
{isSecurityModuleInstalled && renderScanner()}
266261
<AdvancedConfigOptions
267262
ciPipeline={ciPipeline}
268-
setDockerConfigOverridden={setDockerConfigOverridden}
269263
/>
270264
</>
271265
)}

0 commit comments

Comments
 (0)