medic / cht-conf

A command-line interface for configuring Community Health Toolkit applications
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
22 stars 25 forks source link

Ability to compile and upload tasks and contact summary from reusable componnent #566

Open inromualdo opened 1 year ago

inromualdo commented 1 year ago

Is your feature request related to a problem? Please describe. When using the stock monitoring packages, tasks and contact summary are in a separate files (exported from the package) that users need to import in the main tasks.js and contact-summary.templated.js files.

Screenshot 2023-07-10 at 12 51 13 Screenshot 2023-07-10 at 12 57 00

The purpose of this feature is to eliminate this step so that compile-app-settings can compile tasks, targets, and contact summaries that come from other sources.

Describe the solution you'd like A solution would be the possibility to add multiple tasks and contact summary files like stock_monitoring.tasks.js and stock_monitoring.contact-summary.js that cht-conf can compile and upload in addition of the tasks.js and contact-summary.templated.js

Describe alternatives you've considered I have tried the Derived configs from cht-conf. However, this concatenates the two generated files and it doesn't work. Additionally, it requires an intermediate compile for the tasks and contact summary of the package before.

Additional context With this feature, the stock-monitoring package can be used only via the command line interface without any additional updates.

Marina-Kenf commented 1 year ago

@inromualdo I suggest you connect with @lorena from the product to see how we move forward on this.

andrablaj commented 1 year ago

@lorerod FYI, I believe @Marina-Kenf tagged another Lorena. 😊

lorerod commented 1 year ago

Hey @inromualdo, let me know if you need help with this. I suggest including @medic/allies in the conversation too. Thanks!

inromualdo commented 1 year ago

Hi @lorerod , thank you for reaching out. I will try to send a PR next week.