openmrs / openmrs-esm-form-builder

OpenMRS Form Builder microfrontend
Other
5 stars 55 forks source link

(feat) O3-3230: add rule builder to form builder #279

Open senthil-k8s opened 1 month ago

senthil-k8s commented 1 month ago

Requirements

Summary

This PR integrates rule builder component into form builder, which provides an user-interface rule builder to build conditional logic for the forms. This feature is included in the feature flag

Features Included:

Screenshots

https://www.loom.com/share/c892130d32684f739f9b0c7759c033f1?sid=6c9a1da5-7f95-4e33-82de-b37d679080cc

Demo depicts the ability to add multiple rules for same question field dynamically

https://www.loom.com/share/cef02c0d362c4d3f92bc846527329656?sid=d5156068-8bc6-4cf5-b48a-ab3c5e1cc690

Related Issue

https://openmrs.atlassian.net/browse/O3-3230 https://openmrs.atlassian.net/browse/O3-3231 https://openmrs.atlassian.net/browse/O3-3232 https://openmrs.atlassian.net/browse/O3-3233 https://openmrs.atlassian.net/browse/O3-3413 https://openmrs.atlassian.net/browse/O3-3238 https://openmrs.atlassian.net/browse/O3-3237 https://openmrs.atlassian.net/browse/O3-3422

Other

Figma Design of rule builder: Final UIUX of Rule builder

Logged Data

For a specified rule containing multiple conditional logics

isNewRule log

For a specified conditional logic that contains multiple conditions and actions:

Final log cropped

senthil-k8s commented 2 weeks ago

@denniskigen I have made the changes based on your feedback, could you please review it once again?