Skip to content

Commit e146faf

Browse files
authored
Merge pull request #2951 from devtron-labs/chore/sync-main
chore: sync main
2 parents 454bf98 + 8b8125e commit e146faf

File tree

10 files changed

+21
-17
lines changed

10 files changed

+21
-17
lines changed

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.20.3-pre-0",
7+
"@devtron-labs/devtron-fe-common-lib": "1.20.5-pre-8",
88
"@esbuild-plugins/node-globals-polyfill": "0.2.3",
99
"@rjsf/core": "^5.13.3",
1010
"@rjsf/utils": "^5.13.3",

src/components/AppSelector/AppSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ const AppSelector = ({ onChange, appId, appName, isJobView }: AppSelectorType) =
8989
placeholder={appName}
9090
optionListError={error}
9191
reloadOptionList={reload}
92+
resource={isJobView ? 'Job' : 'Application'}
9293
/>
9394
)
9495
}

src/components/AppSelector/ChartSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ export default function ChartSelector({
8888
{...(filterOption ? { filterOption } : {})}
8989
optionListError={error}
9090
reloadOptionList={reload}
91+
resource="Chart Store"
9192
/>
9293
)
9394
}

src/components/ApplicationGroup/EnvSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export const EnvSelector = ({ onChange, envId, envName }: EnvSelectorType) => {
7979
onInputChange={onInputChange}
8080
optionListError={error}
8181
reloadOptionList={reload}
82+
resource="Application Group"
8283
/>
8384
)
8485
}

src/components/CIPipelineN/CIPipeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,6 @@ export default function CIPipeline({
913913

914914
return (
915915
<>
916-
{renderFloatingVariablesWidget()}
917916
{(ciPipelineId || isAdvanced) && (
918917
<Drawer position="right" width="75%" minWidth="1024px" maxWidth="1200px" onEscape={handleClose}>
919918
<div className="modal__body modal__body__ci_new_ui br-0 modal__body--p-0 advanced-option-container">
@@ -939,6 +938,7 @@ export default function CIPipeline({
939938
</div>
940939
)}
941940
</div>
941+
{renderFloatingVariablesWidget()}
942942
</Drawer>
943943
)}
944944
<GenericModal

src/components/ResourceBrowser/ResourceList/ClusterSelector.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ const ClusterSelector: React.FC<ClusterSelectorType> = ({
152152
)}
153153
inputValue={inputValue}
154154
onInputChange={onInputChange}
155+
resource="Cluster"
155156
/>
156157

157158
{defaultOption?.isProd && <Badge label="Production" size={ComponentSizeType.xxs} />}

src/components/app/details/appDetails/DeployedCommitCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const DeployedCommitCard = ({ cardLoading, showCommitInfoDrawer, envId, ciArtifa
4040
return <LoadingCard />
4141
}
4242

43-
if (materials.length === 0 || !materials[0].history[0]?.commit?.slice(0, 7)) {
43+
if (!materials?.length || !materials[0].history[0]?.commit?.slice(0, 7)) {
4444
return null
4545
}
4646

src/components/cdPipeline/CDPipeline.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,10 @@ export default function CDPipeline({
730730
environmentId: formData.environmentId,
731731
namespace: formData.namespace,
732732
id: +cdPipelineId,
733-
strategies: formData.releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS && formData.isCustomChart ? [] : formData.savedStrategies,
733+
strategies:
734+
formData.releaseMode === ReleaseMode.MIGRATE_EXTERNAL_APPS && formData.isCustomChart
735+
? []
736+
: formData.savedStrategies,
734737
parentPipelineType,
735738
parentPipelineId: +parentPipelineId,
736739
isClusterCdActive: formData.isClusterCdActive,
@@ -1504,6 +1507,7 @@ export default function CDPipeline({
15041507
envId={formData.environmentId}
15051508
/>
15061509
)}
1510+
{(cdPipelineId || isAdvanced) && renderFloatingVariablesWidget()}
15071511
</div>
15081512
)
15091513
}
@@ -1533,13 +1537,9 @@ export default function CDPipeline({
15331537
}
15341538

15351539
return cdPipelineId || isAdvanced ? (
1536-
<>
1537-
{renderFloatingVariablesWidget()}
1538-
1539-
<Drawer onEscape={closePipelineModal} position="right" width="75%" minWidth="1024px" maxWidth="1200px">
1540-
{renderCDPipelineModal()}
1541-
</Drawer>
1542-
</>
1540+
<Drawer onEscape={closePipelineModal} position="right" width="75%" minWidth="1024px" maxWidth="1200px">
1541+
{renderCDPipelineModal()}
1542+
</Drawer>
15431543
) : (
15441544
<VisibleModal className="">{renderCDPipelineModal()}</VisibleModal>
15451545
)

src/components/v2/appDetails/k8Resource/nodeType/Node.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const NodeComponent = ({
159159
let _healthyNodeCount = 0
160160

161161
_selectedNodes.forEach((node: Node) => {
162-
if (node.health?.status.toLowerCase() === 'healthy') {
162+
if (node.health?.status?.toLowerCase() === 'healthy') {
163163
_healthyNodeCount += 1
164164
}
165165
})

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,9 @@ __metadata:
17221722
languageName: node
17231723
linkType: hard
17241724

1725-
"@devtron-labs/devtron-fe-common-lib@npm:1.20.3-pre-0":
1726-
version: 1.20.3-pre-0
1727-
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.3-pre-0"
1725+
"@devtron-labs/devtron-fe-common-lib@npm:1.20.5-pre-8":
1726+
version: 1.20.5-pre-8
1727+
resolution: "@devtron-labs/devtron-fe-common-lib@npm:1.20.5-pre-8"
17281728
dependencies:
17291729
"@codemirror/autocomplete": "npm:6.18.6"
17301730
"@codemirror/lang-json": "npm:6.0.1"
@@ -1774,7 +1774,7 @@ __metadata:
17741774
react-select: 5.8.0
17751775
rxjs: ^7.8.1
17761776
yaml: ^2.4.1
1777-
checksum: 10c0/c029c62898e896ca682067eb4d423c42ea5546ed9e7901461f1068c36b683e78a2c2ca59cc209375f5a8f06d1553a70bfcc38252f53905ec577f7f4b33404142
1777+
checksum: 10c0/dae65dae4a7b0d0068c1ee45516af9840b4614f92fd6195bb1a831663c3bb6867d179ef1fe32907b2fbcfecac13bec324506b3a3923f1057ddd4cb2cb17bdab5
17781778
languageName: node
17791779
linkType: hard
17801780

@@ -5721,7 +5721,7 @@ __metadata:
57215721
version: 0.0.0-use.local
57225722
resolution: "dashboard@workspace:."
57235723
dependencies:
5724-
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.3-pre-0"
5724+
"@devtron-labs/devtron-fe-common-lib": "npm:1.20.5-pre-8"
57255725
"@esbuild-plugins/node-globals-polyfill": "npm:0.2.3"
57265726
"@playwright/test": "npm:^1.32.1"
57275727
"@rjsf/core": "npm:^5.13.3"

0 commit comments

Comments
 (0)