Releases: openmrs/openmrs-esm-form-engine-lib
Releases · openmrs/openmrs-esm-form-engine-lib
v2.1.0
What's Changed
New features
- (feat) O3-3252: Form engine UI improvements by @denniskigen in #282
- (feat) O3-3239 Add support for program enrollments using meta tag by @CynthiaKamau in #277
- (feat) Support for an capturing encounter role. by @hadijahkyampeire in #279
- (feat) O3-3106 - Revitalise support for program workflows to enrolments by @CynthiaKamau in #273
- (feat) Implement the inline date picker with showDate and shownDateOptions by @hadijahkyampeire in #285
- (feat) O3-3165: Add modal confirmation modal when deleting repeated question by @NethmiRodrigo in #267
- (feat)03-3389: Support Orientation Options for Radio Buttons by @gitcliff in #314
- (feat) O3-2491: Add support for a time picker by @NethmiRodrigo in #312
- (feat) O3-3117: Add ability to view multi-select answers with fewer options by @CynthiaKamau in #232
- (feat) O3-3061: Support for conditional answered validation by @arodidev in #297
- (feat) O3-3058: Add the inline notification by @reagan-meant in #245
- (feat) O3-3444 - Disable an answer within a question referencing an answer within that same question by @arodidev in #336
- (feat) Introduce locale/Openmrs datepicker by @kajambiya in #286
- (feat) O3-3161 Capture obs comments by @CynthiaKamau in #290
- (feat) O3-3481 Adds option to display multi-checkbox inline by @pirupius in #331
Refactors
- (refactor) O3-3297: Refactor select concept answers by @arodidev in #289
- (refactor) 03-3338 :Refactor extraction of previous value to the section component. by @gitcliff in #303
- (refactor)03-3321: Move encounter role(s) logic to the encounter-form component by @gitcliff in #300
- (refactor) Remove redundant "value" state derived from the "previous value" by @gitcliff in #306
Bug fixes
- (fix) 03-3126 : Aligning field width within an an obs-group by @gitcliff in #239
- (fix) revise logic for saving attachments by @arodidev in #270
- (fix) O3-3166 Use a custom encounter representation post encounter submission by @CynthiaKamau in #281
- (fix) Fix error caused by referencing an undefined patient object by @samuelmale in #288
- (fix) make visit information available within expression context by @arodidev in #269
- (fix) Miscellaneous fixes by @samuelmale in #291
- (fix) follow-up fix for file attachment logic by @arodidev in #295
- (fix) Group patient states by Program by @samuelmale in #294
- (fix) O3-3274: Fix failing expressions by @arodidev in #292
- (fix) Ensure form fields are initialised with all base validators by @samuelmale in #274
- (fix) Consistently style multi-select field labels by @samuelmale in #304
- (fix) fix for failing calcGravida expression by @arodidev in #307
- (fix) Restrict schema transformer mutations to 'ui-select-extended' rendering on encounter-date fields by @samuelmale in #308
- (fix) O3-3377: error on bootstrapping attachment field on edit mode by @arodidev in #311
- (fix) O3-3384: Fix time difference result not displaying when time difference < 1 by @arodidev in #309
- (fix) O3-3350: Resolve dropdown re-rendering bug in the tablet viewport by @denniskigen in #313
- (fix) O3-2168: Concept reference chunk size depends on REST
webservices.rest.maxResultsCount
property by @vasharma05 in #259 - (fix) O3-3378: Revise logic for expanding and collapsing a section by @arodidev in #310
- (fix) O3-3402 Display correct locale date format in view mode by @kajambiya in #323
- (fix) O3-3379 Drug Rendering displays incorrect repeated obs-group lists by @CynthiaKamau in #320
- (fix)03:3407 Fix styling of single-page forms in a maximized workspace by @gitcliff in #325
- (fix) Add unique key prop to field component instances by @samuelmale in #328
- (fix) O3-3350: Resolve infinite re-rendering of the dropdown component in the tablet viewport by @samuelmale in #326
- (fix): Update props of OpenmrsDatePicker by @NethmiRodrigo in #330
- (Fix) Use size 100 for the references chunk size to append to the url. by @hadijahkyampeire in #335
- (fix) O3-3417: Disable save button while loading form dependencies by @arodidev in #340
- (fix) O3-2252: Calculated values shouldn't be overwritten by the Encounter's values by @CynthiaKamau in #318
- (fix) O3-3532: Fix broken UI on collapsing and reopening form sections by @kajambiya in #341
- (fix): Fix styling issues in the OpenmrsDatePicker by @NethmiRodrigo in #345
- (fix) Update form fetch request to return the latest form by uuid or name by @CynthiaKamau in #342
- (fix) Reworked logic for gravida calculation by @arodidev in #337
Housekeeping
- (chore) Bump @types/react and formik by @denniskigen in #278
- (chore) Bump dependencies by @denniskigen in #280
- (chore) Bump core tooling by @denniskigen in #322
- (chore) Bump core and turbo by @NethmiRodrigo in #343
- (chore) Bump turborepo by @denniskigen in #319
Tests
- (test) Add tests for the patient identifier handler by @gitcliff in #268
- (test) Adding test coverage for the encounter provider handler by @gitcliff in #302
- (test) Adding test coverage for the encounter role handler by @gitcliff in #301
- (test) Adding test coverage for encounter location handler by @gitcliff in #305
- (test):Adding test coverage for expression parser functions by @gitcliff in #317
- (test):Conditional answered validator test coverage by @gitcliff in #338
- (test):Adding some test coverage for form-helper functions by @gitcliff in #332
New Contributors
- @hadijahkyampeire made their first contribution in #279
- @NethmiRodrigo made their first contribution in #267
- @brandones made their first contribution in #346
Full Changelog: v2.0.0...v2.10
v2.0.0
What's Changed
Breaking changes
New features
- (feat) Add
markFormAsDirty
prop to FormEngine component by @vasharma05 in #206 - (feat) O3-3094: Remove warning modal and leverage workspace promptBeforeClosing functionality by @vasharma05 in #205
- (feat) O3-2006 Add ability to launch workspace from form by @pirupius in #186
- (feat) 03-2130: Add support of default answers for coded questions by @gitcliff in #192
- (feat) Setup i18n for form engine lib by @vasharma05 in #215
- (feat) O3-3099: Render labels instead of UUIDs for multiCheckbox field answers by @gitcliff in #213
- (feat) O3-1987: Disable
multiCheckbox
input options given provided expression by @usamaidrsk in #196 - (feat) Add French, Khmer and Spanish translations for testing purposes by @vasharma05 in #219
- (feat) O3-3104: Improve scrolling top most invalid field in to view when the form is in an invalid state by @usamaidrsk in #223
- (feat) Show asterisks next to labels for required fields by @denniskigen in #222
- (feat) O3-3007: Add support for saving patient identifiers in forms by @kajambiya in #202
- (feat) O3-3109 deprecate type within inbuiltControls by @pirupius in #229
- (feat) Update AFE transformer to handle aliases by @samuelmale in #221
- (feat) Fetch all concept references of the the form with SWR Infinite by @vasharma05 in #241
- (feat) O3-3053: Support for type control by @arodidev in #237
- (feat) Add doesNotMatchExpression expression helper by @kajambiya in #233
- (feat) O3-3112: Reinstate the form collapse toggle by @usamaidrsk in #244
- (feat) Add support for lab orders by @samuelmale in #249
- (feat) O3-3050: Add support for rendering select-concept-answers by @usamaidrsk in #214
- (feat) O3-3049: Add evaluated historical expression support by @arodidev in #226
- (feat) O3-3113: Add disallowDecimals validator by @jabahum in #220
- (feat) Hide empty repeating groups by @samuelmale in #275
- (feat) Enable default field validation for multi-checkbox field values by @gitcliff in #256
- (feat) O3-3058: Support for Conditional Required Validation by @reagan-meant in #265
- (feat) O3-1990: Allow string as value for markdown by @reagan-meant in #187
- (feat) O3-2167: Support associating concept representation with questions by @gitcliff in #189
Refactors
- (refactor) Clean up conditional styling logic using classnames by @denniskigen in #203
- (refactor) Use one component export syntax for consistency by @denniskigen in #243
Bug fixes
- (fix) Use optional chaining to catch unexpected errors by @lucyjemutai in #257
- (fix) O3-1989: fix tooltip alignment for number input. by @arodidev in #184
- (fix) Fix missing forward slash in concepts endpoint by @CynthiaKamau in #194
- (fix) O3-2154: Selecting a date should set selected date's time to midnight in the local timezone by @vasharma05 in #197
- (fix) Translate strings and fix up component names by @denniskigen in #198
- (fix) Vertically align workspace header toggle by @denniskigen in #209
- (fix) Remove relative path from an import statement by @samuelmale in #210
- (fix) Flag required fields upon form submission by @denniskigen in #212
- (fix) Fix typescript errors shown when linking to Patient Chart by @denniskigen in #217
- (fix) O3-3111: Fix stylings in the side navigation by @WodPachua in #216
- (fix) Updates sort params and switches to restBaseUrl by @pirupius in #218
- (fix) Improvements following code refactor/rename by @pirupius in #224
- (fix) Revise logic to show button set on embedded view mode by @arodidev in #227
- (fix) Fix tooltip alignment on obsGroup by @arodidev in #235
- (fix) Display all field validation errors by @kajambiya in #240
- (fix) Update registry to use
name
as the canonical identifier for derived rendering types by @samuelmale in #246 - (fix) Fix encounter location submission handler bug by @arodidev in #228
- (fix) Fix layout shifts caused by loaders by @denniskigen in #250
- (fix) fix logic for hiding/showing action buttons set by @arodidev in #251
- (fix) Fixed error messages on saving program enrollments by @CynthiaKamau in #247
- (fix) Multi-select component to initialise and display consistently in edit mode by @samuelmale in #258
- (fix) Fix conditional access check affecting patientIdentifier type fields by @gitcliff in #260
- (fix) O3-3160: Fix encounter updated snackbar message by @usamaidrsk in #264
- (fix) O3-3164 switch to openmrsFetch to fetch encounter by @pirupius in #266
- (fix) Refactor Obs Handler by @samuelmale in #263
- (fix) Fix rules of hooks violations by @denniskigen in #272
Housekeeping
- (chore) Fix Prettier glob patterns by @denniskigen in #193
- (chore) Bump turbo by @denniskigen in #199
- (chore) align and clean dependencies by @pirupius in #176
- (chore) Format stylesheets using Prettier by @denniskigen in #201
- (chore) updates readme by @pirupius in #225
- (chore) Switch @carbon/react to peer dependency by @pirupius in #236
- (chore) Enforce consistent usage of type imports by @denniskigen in #242
- (chore) Resolve mocks directory without using relative imports by @denniskigen in #252
- (chore) Bump openmrs and @openmrs/esm-framework by @denniskigen in #254
- (chore) Bump yarn by @denniskigen in #271
Docs
- (docs) Update README to include the new documentation link on wiki by @eudson in #191
- (docs) Update README by @denniskigen in #248
- (docs) Add documentation for translations, orders and markdown by @CynthiaKamau in #238
Tests
- (test) Fix warnings raised when running tests by @denniskigen in #204
- (test) Refactor tests for the Form component by @denniskigen in #207
- (test) Fix intermittently failing tests by @samuelmale in #231
- (test) Fix broken "z-score" related unit test by @samuelmale in #255
New Contributors
- @reagan-meant made their first contribution in https://github.com/openmrs/op...
v1.1.0
What's Changed
⭐️ New Features
- (feat) adding support for questionInfo by @arodidev in #152
- (feat) validation of obs group count by @arodidev in #156
- (feat) Introduce generic program enrollment by @kajambiya in #153
- (feat) Introducing widget-embedded view mode by @arodidev in #170
- (feat) Remove millis prop from Toast component by @denniskigen in #172
- (feat) Extend encounter location to process AFE schema out of the box by @kajambiya in #173
- Form Engine UI refactor by @arodidev in #168
- (feat) Hide form side navigation for forms with only only page by @gitcliff in #180
🐛 Bug fixes
- (fix) OHRI-2021 :Remove "t.getTime" error on the ANC form in ohri-namibia working by @lucyjemutai in #154
- (fix) getRegisteredPostSubmissionAction function to handle both custom and inbuilt post submission actions correctly by @kajambiya in #160
- (fix) disappearance of config data on page reload by @kajambiya in #163
- (fix) refactor program enrollment action by @ODORA0 in #167
- fix UI-select-extended searchable issues by @kajambiya in #166
- (fix) bug fix for date previous-value display by @arodidev in #183
- (fix) Ensure forms loader maintains immutability of the schema input by @samuelmale in #188
🧹 Housekeeping
- (chore) removes unnecesary crypto import by @pirupius in #169
- (chore) Separate linting and formatting concerns by @denniskigen in #178
- O3-3006 (feat) Introduce Encounter Provider Control by @kajambiya in #174
- (chore) bump peter-evans/create-pull-request version by @pirupius in #179
- (chore) Release v1.1.0 by @pirupius in #190
- (chore) fix link issue with react error boundary by @pirupius in #158
- (chore) Bump Carbon version by @samuelmale in #181
- (chore) Attempt to fix "husky install" error encountered when installing this package in other npm packages by @samuelmale in #182
- (chore) delete bump script to patient chart by @pirupius in #161
- (chore) upgrade yarn to v4 by @pirupius in #162
New Contributors
Full Changelog: 1.0.0...1.1.0
v1.0.0
What's Changed
- (fix) Fix bug with "unspecified" control by @kajambiya in #1
- (chore) Update README (part 1) by @samuelmale in #2
- Updating License from MIT to MPL v2 w HCD, without Copyright by @gracepotma in #3
- (feat) Add ability to retrieve encounter type and default to
unknown
encounter role by @donaldkibet in #4 - (chore) O3-2009: Setup form engine CI and NPM by @donaldkibet in #5
- (feat) Add optional version property to OHRIFormSchema interface by @denniskigen in #6
- (chore) CI tweaks for auto publish by @pirupius in #8
- (chore) Cache tasks in CI using turbo by @denniskigen in #9
- (fix) fix failing obs-group and repeat component due to
undefined
bug by @donaldkibet in #11 - (chore) Cacheable ESLint output by @denniskigen in #12
- (fix) Refactor
useWorkspaceLayout
hook to properly support arbitrary workspaces by @samuelmale in #10 - (chore) Fix dependency issue by @denniskigen in #13
- O3-2016 Fix overlapping radio and checkbox text by @CynthiaKamau in #14
- (chore) Add a CI workflow that tracks bundle sizes changes by @denniskigen in #15
- O3-1907 Support for major Ampath Form Helper Functions by @kajambiya in #18
- feat: Recursively load subforms by @samuelmale in #19
- O3-2050 prevent number input change on mouse/touchpad scroll by @pirupius in #21
- O3-2059 Add calculate gravida helper function by @CynthiaKamau in #25
- Fix highlighting of field validation errors by @samuelmale in #28
- Fix rendering for fields with undefined handlers by @samuelmale in #24
- O3-2034 Add form to the generated encounter payload by @CynthiaKamau in #23
- (fix) Yet more miscellaneous fixes by @denniskigen in #27
- (fix) Miscellaneous improvements by @denniskigen in #26
- (docs) Updated instructions for local development by @eudson in #31
- O3-2057 Add support to display error messages on Number input control by @kajambiya in #22
- (fix):Fixed position of save/cancel button on form engine by @makombe in #29
- O3-2066 Dynamic calculation to get date difference in day, week, mont… by @CynthiaKamau in #36
- (enhc) add improvement on loading sub-forms by @donaldkibet in #34
- O3-2061: Introduce visit as an optional parameter to the form-engine by @CynthiaKamau in #30
- Filters out Empty/Hidden Sections in a Page by @smallgod in #35
- (feature) Length Validation for TextInput Fields by @eudson in #38
- (fix) Fixed InputTex Length Validations by @eudson in #39
- fixed different timestamps on obs by @lucyjemutai in #40
- Introduce maxLength and minLength params for text fields by @pirupius in #41
- Apply linter by @samuelmale in #43
- Add provision for Encounter Date Time by @kajambiya in #42
- (chore) Import lodash functions from the ES module by @denniskigen in #45
- Introduce aliases to field rendering types by @makombe in #37
- Simplify the ExpressionRunner's internal workings and enhance support for custom datasources by @samuelmale in #47
- (refactor) Remove unused helper function by @CynthiaKamau in #46
- Remove un-used import by @samuelmale in #48
- (fix) Fix validators for number and text inputs by @denniskigen in #49
- Configure Actions to pull next pre-release, create 3 PRs to 3 REPOS by @larslemos in #51
- (chore) Fix indentantion error on YAML, after bump job by @larslemos in #52
- (fix) Fix repeating Form Sections issue by @smallgod in #50
- (feat) Add age in patient object by @CynthiaKamau in #54
- Default to section hide expression without behaviours by @pirupius in #55
- (feat) Limit obs-group repeat by @eudson in #56
- (fix) fix bug on submitting a form by @donaldkibet in #59
- (chore) Use
dayjs
for handling dates by @denniskigen in #44 - (fix) Remove all references to
moment
by @denniskigen in #62 - (enhc) Add ability to provide
age
andsex
to the evaluation context by @donaldkibet in #64 - (refactor) Updated calcTimeDiff to use dayjs by @CynthiaKamau in #63
- (fix) follow up PR to fix error brought by introducing
age
andsex
in execution context by @donaldkibet in #65 - (refactor) Remove unused styles and style imports + add eslint rules by @denniskigen in #57
- (chore) Use shared
dayjs
version by @denniskigen in #67 - (feat) Support for conditionally hiding
pages
by @smallgod in #61 - (feat) Show error message from server when form submission fails by @donaldkibet in #66
- (refactor) Reorganise styles by @denniskigen in #68
- (fix) Fix previous value review UI by @denniskigen in #70
- Fix highlight validation error messages for required field in number and multiselect controls by @samuelmale in #71
- (feat) Various tweaks and improvements by @denniskigen in #60
- (enhc) Enhance failed submission reporting and fix number field validation issue by @donaldkibet in #75
- feat: limit obs repeat based on business logic by @lucyjemutai in #74
- add skip logic for answer options by @kajambiya in #53
- (fix): Enhance date-time component spacing and show time format am/pm by @makombe in #79
- fix usePreviousValueDisabled bug by @kajambiya in #81
- Pickup and apply "section.isExpanded" by @samuelmale in #82
- (docs) Move pbcopy to right place in example by @mogoodrich in #84
- (fix) Remove some global styles affecting the workspace by @denniskigen in #87
- Expose useFormJson to be useable out of the library by @samuelmale in #89
- (feat) O3-1911: Reference Mappings instead of Concept UUIDs by @mogoodrich in #86
- (fix) Minor fix enabling subforms to render correctly by @samuelmale in #90
- Sync Form UUID in Form Schema with Form JSON by @samuelmale in #91
- OHRI-1389 Evaluate Calculate expressions on hidden fields by @kajambiya in #93
- (chore) Update to newer versions of openmrs and @openmrs/esm-framework by @denniskigen in #95
- Generated obs-group field ID should be a valid JS identifier by @samuelmale in ...