DiscipleTools / disciple-tools-web-components

https://jade-chebakia-17493f.netlify.app/?path=/story/kitchen-sink--kitchen-sink
GNU General Public License v2.0
3 stars 8 forks source link

Church Health Circle API dependency #79

Open cairocoder01 opened 4 months ago

cairocoder01 commented 4 months ago

Currently, the dt-church-health-circle component relies on API calls to fetch the value and settings for the field. This doesn't match the pattern of all of the other components and will cause problems in contexts that don't have access to the standard DT API.

This should be updated to pass in a value and the available metrics. Since this component is already in use by the autolink plugin and we don't want to break that, it might be worth implementing this an alternate display option of the dt-multi-select. Set an attribute of display="health-circle".