Skip to content

Commit

Permalink
🍒 Merge changes from PR #323 to release-v1.6.1 (#337)
Browse files Browse the repository at this point in the history
Co-authored-by: Barry Dwyer <[email protected]>
  • Loading branch information
ocrvs-bot and tumbledwyer authored Dec 10, 2024
1 parent 20b2b3f commit a980972
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ INSERT CSV ROWS IN ENGLISH ONLY
- Github pipeline dedicated for reading secrets and variables from other environments now checks if GH_TOKEN is still valid before attempting other operations
- Remove unnecessary UI dividers that add in various sections of the declaration forms(e.g the Death, Birth and Marriage forms) [#244](https://github.com/opencrvs/opencrvs-countryconfig/pull/244)
- Update template transformer for fields `informantType` and `otherInformantType` that fixes the bug of unavailability of these template fields [#5952](https://github.com/opencrvs/opencrvs-countryconfig/pull/5952)
- Fixed missing InitialValue property to set initial values based on an expression

## 1.5.2 (https://github.com/opencrvs/opencrvs-countryconfig/compare/v1.5.1...v1.5.2)

Expand Down
9 changes: 8 additions & 1 deletion src/form/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ export interface IFormFieldBase {
disabled?: boolean
enabled?: string
custom?: boolean
initialValue?: IFormFieldValue
initialValue?: InitialValue
initialValueKey?: string
extraValue?: IFormFieldValue
conditionals?: Conditional[]
Expand Down Expand Up @@ -844,6 +844,13 @@ export interface IDateRangePickerValue {
isDateRangeActive: boolean | undefined
}

export type DependencyInfo = {
expression: string
dependsOn: string[]
}

export type InitialValue = IFormFieldValue | DependencyInfo

export type IFormFieldValue =
| string
| string[]
Expand Down

0 comments on commit a980972

Please sign in to comment.