Skip to content

Commit

Permalink
fix(edit-variable-modal): add missing enable_interpolation_in_file fi…
Browse files Browse the repository at this point in the history
…eld (#1739)
  • Loading branch information
RemiBonnet authored Oct 28, 2024
1 parent 364d3ac commit ba2c8d7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Environment, type EnvironmentStatusesWithStagesPreCheckStage } from 'qovery-typescript-axios'
import { type PropsWithChildren } from 'react'
import { ENVIRONMENT_LOGS_URL } from '@qovery/shared/routes'
import { Icon, Link, StatusChip } from '@qovery/shared/ui'
import { Icon, Link, StatusChip, Tooltip } from '@qovery/shared/ui'
import { upperCaseFirstLetter } from '@qovery/shared/util-js'

export interface HeaderPreCheckLogsProps extends PropsWithChildren {
Expand Down Expand Up @@ -32,16 +32,18 @@ export function HeaderPreCheckLogs({ environment, preCheckStage, children }: Hea
<div className="flex h-12 w-full items-center justify-between border-b border-neutral-500 bg-neutral-900 pr-4">
<div className="flex h-full">
<div className="flex h-full items-center gap-4 border-t border-neutral-500 bg-neutral-600 py-2.5 pl-4 pr-0.5 text-sm font-medium text-neutral-50">
<Link
as="button"
size="sm"
variant="surface"
color="neutral"
className="w-7 justify-center"
to={ENVIRONMENT_LOGS_URL(environment.organization.id, environment.project.id, environment.id)}
>
<Icon iconName="timeline" />
</Link>
<Tooltip content="Environment stages">
<Link
as="button"
size="sm"
variant="surface"
color="neutral"
className="w-7 justify-center"
to={ENVIRONMENT_LOGS_URL(environment.organization.id, environment.project.id, environment.id)}
>
<Icon iconName="timeline" />
</Link>
</Tooltip>
<span className="text-neutral-400">/</span>
<span className="flex items-center gap-2.5">
<Icon iconName="list-check" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export function CreateUpdateVariableModal(props: CreateUpdateVariableModalProps)
alias_parent_id: parentId,
key: data.key,
description: data.description,
enable_interpolation_in_file: data.enable_interpolation_in_file ?? false,
},
})
})
Expand All @@ -194,6 +195,7 @@ export function CreateUpdateVariableModal(props: CreateUpdateVariableModalProps)
override_parent_id: parentId,
value: data.value || '',
description: data.description,
enable_interpolation_in_file: data.enable_interpolation_in_file ?? false,
},
})
})
Expand All @@ -213,6 +215,7 @@ export function CreateUpdateVariableModal(props: CreateUpdateVariableModalProps)
key: data.key,
value: variable.aliased_variable?.key || data.value,
description: data.description,
enable_interpolation_in_file: data.enable_interpolation_in_file ?? false,
},
})
})
Expand Down Expand Up @@ -389,7 +392,7 @@ export function CreateUpdateVariableModal(props: CreateUpdateVariableModalProps)
/>
)}

{_isFile && type === 'VALUE' && (
{_isFile && (
<Controller
name="enable_interpolation_in_file"
control={methods.control}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"jwt-decode": "^4.0.0",
"monaco-editor": "^0.44.0",
"posthog-js": "^1.131.4",
"qovery-typescript-axios": "^1.1.492",
"qovery-typescript-axios": "^1.1.493",
"react": "18.3.1",
"react-country-flag": "^3.0.2",
"react-datepicker": "^4.12.0",
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4124,7 +4124,7 @@ __metadata:
prettier: ^3.2.5
prettier-plugin-tailwindcss: ^0.5.14
pretty-quick: ^4.0.0
qovery-typescript-axios: ^1.1.492
qovery-typescript-axios: ^1.1.493
qovery-ws-typescript-axios: ^0.1.153
react: 18.3.1
react-country-flag: ^3.0.2
Expand Down Expand Up @@ -19426,12 +19426,12 @@ __metadata:
languageName: node
linkType: hard

"qovery-typescript-axios@npm:^1.1.492":
version: 1.1.492
resolution: "qovery-typescript-axios@npm:1.1.492"
"qovery-typescript-axios@npm:^1.1.493":
version: 1.1.493
resolution: "qovery-typescript-axios@npm:1.1.493"
dependencies:
axios: ^0.27.2
checksum: 5ca6a40fc43e72c485a4ee8e97cdb8ae77da2495ab5934bee81ae2985780f54a9271f0d166136e8d1d0d1299dd645e9e94c7c709c62f16c8c6dacd07455ef0c0
checksum: 752087b74ef3f0741e8090f3692ce22481e9f8919f0f35c6652e37b418c91faf0b28108bf80ef52719cbde8dce16855f0d1eee7ba1e66769ae7100d0bc0c5d77
languageName: node
linkType: hard

Expand Down

0 comments on commit ba2c8d7

Please sign in to comment.