Skip to content

Commit 3b039c4

Browse files
authored
Merge branch 'develop' into feat/stack-manager-misc
2 parents 3ed81b6 + 438ea59 commit 3b039c4

File tree

23 files changed

+242
-129
lines changed

23 files changed

+242
-129
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ src/components/v2/values/chartValuesDiff/ChartValuesView.reducer.ts
372372
src/components/v2/values/chartValuesDiff/ChartValuesView.tsx
373373
src/components/v2/values/chartValuesDiff/ProjectUpdateModal.tsx
374374
src/components/v2/values/common/chartValues.api.ts
375-
src/components/workflowEditor/CDSuccessModal.tsx
376375
src/components/workflowEditor/CreateWorkflow.tsx
377376
src/components/workflowEditor/DeprecatedWarningModal.tsx
378377
src/components/workflowEditor/EmptyWorkflow.tsx

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ RUN yarn install --frozen-lockfile --network-timeout 600000
1010
COPY . .
1111

1212
RUN echo `git rev-parse --short HEAD` > health.html && \
13+
echo "" >> .env && \
1314
echo "SENTRY_RELEASE_VERSION=dashboard@$(git rev-parse --short HEAD)" >> .env && \
1415
yarn build
1516

package.json

Lines changed: 1 addition & 1 deletion
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": "1.14.1-pre-5",
7+
"@devtron-labs/devtron-fe-common-lib": "1.14.1-pre-6",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/Pages/License/ActivateLicense.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const ActivateLicense = () => {
4646
return
4747
}
4848

49-
if (licenseData.licenseStatusError.code === LicensingErrorCodes.LicKeyNotFound) {
49+
if (licenseData?.licenseStatusError.code === LicensingErrorCodes.LicKeyNotFound) {
5050
setShowActivateDialog(true)
5151
}
5252
}, [isLoading, licenseData])

src/components/CIPipelineN/VariableDataTable/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ export const VARIABLE_DATA_TABLE_CELL_ERROR_MSGS = {
119119
VARIABLE_VALUE_REQUIRED: 'Variable value is required',
120120
VARIABLE_VALUE_NOT_A_NUMBER: 'Variable value is not a number',
121121
VARIABLE_VALUE_NOT_A_BOOLEAN: 'Variable value is not a boolean',
122+
MAX_LENGTH_255: 'Max 255 characters allowed',
122123
}
123124

124125
export const VARIABLE_DATA_TABLE_CELL_BOOL_VALUES = ['True', 'False', 'true', 'false']

src/components/CIPipelineN/VariableDataTable/validations.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ export const validateInputOutputVariableCell = ({
112112
isValid: false,
113113
}
114114
}
115+
if (name.length > 255) {
116+
return {
117+
errorMessages: [VARIABLE_DATA_TABLE_CELL_ERROR_MSGS.MAX_LENGTH_255],
118+
isValid: false,
119+
}
120+
}
115121
if ((keysFrequencyMap[name] ?? 0) > 1) {
116122
return {
117123
errorMessages: [VARIABLE_DATA_TABLE_CELL_ERROR_MSGS.UNIQUE_VARIABLE_NAME],
@@ -149,6 +155,14 @@ export const validateInputOutputVariableCell = ({
149155
}
150156
}
151157

158+
// test for max length if variable is string
159+
if (key === 'val' && format === VariableTypeFormat.STRING && variableValue && !!value && value.length > 255) {
160+
return {
161+
errorMessages: [VARIABLE_DATA_TABLE_CELL_ERROR_MSGS.MAX_LENGTH_255],
162+
isValid: false,
163+
}
164+
}
165+
152166
return { errorMessages: [], isValid: true }
153167
}
154168

src/components/app/details/triggerView/cdMaterial.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ import {
102102
RuntimeParamsErrorState,
103103
} from './types'
104104
import close from '../../../../assets/icons/ic-close.svg'
105-
import { ReactComponent as Check } from '../../../../assets/icons/ic-check-circle.svg'
106105
import { ReactComponent as DeployIcon } from '../../../../assets/icons/ic-nav-rocket.svg'
107106
import { ReactComponent as BackIcon } from '../../../../assets/icons/ic-arrow-backward.svg'
108107
import { ReactComponent as InfoOutline } from '../../../../assets/icons/ic-info-outline.svg'

src/components/cdPipeline/CDPipeline.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,6 +1418,8 @@ export default function CDPipeline({
14181418
return ''
14191419
}
14201420

1421+
const buttonDisableText = getButtonDisabledMessage()
1422+
14211423
return (
14221424
<div
14231425
className={`modal__body modal__body__ci_new_ui br-0 modal__body--p-0 ${
@@ -1476,15 +1478,17 @@ export default function CDPipeline({
14761478
{formData && (
14771479
<>
14781480
{renderSecondaryButton()}
1479-
<ButtonWithLoader
1480-
rootClassName="cta cta--workflow"
1481+
<Button
14811482
dataTestId="build-pipeline-button"
1483+
text={text}
14821484
onClick={savePipeline}
14831485
isLoading={loadingData}
1484-
disabled={!!getButtonDisabledMessage()}
1485-
>
1486-
{text}
1487-
</ButtonWithLoader>
1486+
disabled={!!buttonDisableText}
1487+
showTooltip={!!buttonDisableText}
1488+
tooltipProps={{
1489+
content: buttonDisableText,
1490+
}}
1491+
/>
14881492
</>
14891493
)}
14901494
</div>

src/components/dockerRegistry/Docker.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1975,6 +1975,7 @@ const DockerForm = ({
19751975
startIcon={<Trash />}
19761976
dataTestId="delete-container-registry"
19771977
onClick={showConfirmationModal}
1978+
disabled={loading}
19781979
/>
19791980
)}
19801981
<div className="flex right w-100 dc__gap-12">
@@ -1984,10 +1985,11 @@ const DockerForm = ({
19841985
text="Cancel"
19851986
variant={ButtonVariantType.secondary}
19861987
size={ComponentSizeType.medium}
1988+
disabled={loading}
19871989
/>
19881990
<Button
19891991
dataTestId="container-registry-save-button"
1990-
disabled={loading}
1992+
isLoading={loading}
19911993
text={id ? 'Update' : 'Save'}
19921994
size={ComponentSizeType.medium}
19931995
buttonProps={{

src/components/v2/appDetails/NodeDetailComponentWrapper.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,16 @@ const NodeDetailComponentWrapper = ({
6363
.catch(noop)
6464
}, [podName, nodeType, tabId])
6565

66-
return <NodeDetailComponent key={tabId} {...nodeDetailComponentProps} updateTabUrl={handleUpdateTabUrl} />
66+
return (
67+
<NodeDetailComponent
68+
key={tabId}
69+
{...nodeDetailComponentProps}
70+
isResourceBrowserView={false}
71+
isDynamicTabsStuck={nodeDetailComponentProps.isDynamicTabsStuck}
72+
updateTabUrl={handleUpdateTabUrl}
73+
handleStickDynamicTabsToTop={nodeDetailComponentProps.handleStickDynamicTabsToTop}
74+
/>
75+
)
6776
}
6877

6978
export default NodeDetailComponentWrapper

0 commit comments

Comments
 (0)