Skip to content

Commit 5f36982

Browse files
authored
Merge pull request #590 from devtron-labs/feat/resource-watcher-runtime-params
feat: Revamp Runtime Parameters in Resource Watcher
2 parents a219b58 + 030c23f commit 5f36982

File tree

9 files changed

+5
-267
lines changed

9 files changed

+5
-267
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.7.10",
3+
"version": "1.7.11",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Common/Common.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ export const parseRuntimeParams = (response: RuntimeParamsAPIResponseType): Runt
270270
const runtimeParams = (response?.runtimePluginVariables ?? []).map<RuntimePluginVariables>((variable) => ({
271271
...variable,
272272
defaultValue: variable.value,
273+
stepVariableId: variable.stepVariableId || Math.floor(new Date().valueOf() * Math.random())
273274
}))
274275

275276
runtimeParams.push(...envVariables)

src/Shared/Components/KeyValueList/KeyValueList.tsx

Lines changed: 0 additions & 149 deletions
This file was deleted.

src/Shared/Components/KeyValueList/constants.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Shared/Components/KeyValueList/index.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/Shared/Components/KeyValueList/types.ts

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/Shared/Components/MaterialHistory/MaterialHistory.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const MaterialHistory = ({
5858
return (
5959
// added for consistent typing
6060
// eslint-disable-next-line react/jsx-no-useless-fragment
61-
<div className="flexbox-col dc__gap-12 py-12 px-16">
61+
<div className="flexbox-col dc__gap-12">
6262
{dateKeys.map((date) => {
6363
const historyList = materialHistoryMapWithTime[date]
6464
return (

src/Shared/Components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export * from './ScannedByToolModal'
2424
export * from './FilterChips'
2525
export * from './ActivityIndicator'
2626
export * from './GenericSectionErrorState'
27-
export * from './KeyValueList'
2827
export * from './InfoIconTippy'
2928
export * from './EditableTextArea'
3029
export * from './Header'

0 commit comments

Comments
 (0)