micronutrientsupport / micronutrient-support-tool

Web front-end for the MAPS Micronutrient Support Tool
MIT License
2 stars 0 forks source link

feat: quickmaps biomarker form (re)additions #1310

Closed Fuhji closed 10 months ago

Fuhji commented 11 months ago
  1. create the call to the /micronutrients endpoint when user selects a nutrient indicates in the isBiomarker field whether the "Biomarker Data" option should be enabled under "Data to use" (I believe this functionality already exists). @DanielLyleWilliamWarren
  2. depending on results from /micronutrients endpoint, enable/disable Data to use buttons @DanielLyleWilliamWarren
  3. re-enable the age gender group selection, which is only visible when the user selects biomarker data option. Additional Select input is enabled allowing user to select "Age gender group" (MEN, PREG, PSC, SAC, WRA with WRA being the default selection). This select is powered by the /biomarker/age-gender-groups endpoint. (I believe this functionality exists) @Fuhji
  4. Once the user selects age/gender group, call the /biomarker/data-sources endpoint and pass Country ID, Micronutrient ID and Age-Gender group ID. Results from this call are displayed in a new input select called 'Biomarker' @Fuhji
  5. When the user changes the selected Biomarker select, update the Data Source inputs
github-actions[bot] commented 11 months ago

The compodoc for this PR is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659be40a4cfc794d477eacc1 πŸ“– Compodoc: https://docs1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

Bundle difference

Asset group Old size New size Diff
all 15.3 MB 15.37 MB 73 KB (0.47%)
documents 0 B 0 B 0 B (0.00%)
scripts 14.11 MB 14.11 MB 6.8 KB (0.05%)
stylesheets 295.82 KB 296.57 KB 768 B (0.25%)
images 3.34 KB 3.34 KB 0 B (0.00%)
misc 0 B 0 B 0 B (0.00%)
github-actions[bot] commented 11 months ago

This pull request is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659be4956270e651f1275478 βœ… Preview: https://preview1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

The compodoc for this PR is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659bef846247545636c2e123 πŸ“– Compodoc: https://docs1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

Bundle difference

Asset group Old size New size Diff
all 15.3 MB 15.37 MB 73.06 KB (0.47%)
documents 0 B 0 B 0 B (0.00%)
scripts 14.11 MB 14.11 MB 6.85 KB (0.05%)
stylesheets 295.82 KB 296.57 KB 768 B (0.25%)
images 3.34 KB 3.34 KB 0 B (0.00%)
misc 0 B 0 B 0 B (0.00%)
github-actions[bot] commented 11 months ago

This pull request is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659bf01702b53d53e9988fd6 βœ… Preview: https://preview1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

The compodoc for this PR is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659c1130a7b2c70d63534dcc πŸ“– Compodoc: https://docs1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

Bundle difference

Asset group Old size New size Diff
all 15.3 MB 15.37 MB 74.19 KB (0.47%)
documents 0 B 0 B 0 B (0.00%)
scripts 14.11 MB 14.11 MB 7.99 KB (0.06%)
stylesheets 295.82 KB 296.57 KB 768 B (0.25%)
images 3.34 KB 3.34 KB 0 B (0.00%)
misc 0 B 0 B 0 B (0.00%)
github-actions[bot] commented 11 months ago

This pull request is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659c11c0dce9c20ebffb31e8 βœ… Preview: https://preview1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

The compodoc for this PR is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659c189aa5c0850e283ece46 πŸ“– Compodoc: https://docs1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 11 months ago

Bundle difference

Asset group Old size New size Diff
all 15.3 MB 15.37 MB 74.19 KB (0.47%)
documents 0 B 0 B 0 B (0.00%)
scripts 14.11 MB 14.11 MB 7.99 KB (0.06%)
stylesheets 295.82 KB 296.57 KB 768 B (0.25%)
images 3.34 KB 3.34 KB 0 B (0.00%)
misc 0 B 0 B 0 B (0.00%)
github-actions[bot] commented 11 months ago

This pull request is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659c1915b2a33412f870004a βœ… Preview: https://preview1310--micronutrientsupport-tool.netlify.app

bgsandan commented 10 months ago

Generally looking good :+1:. However, the call to the data-sources endpoint should also include the groupId parameter dependent on the selected "Age-Gender-Group" (https://api.micronutrient.support/dev/v2/explorer/#/biomarker/BiomarkerDataSourceController.find)

image
github-actions[bot] commented 10 months ago

The compodoc for this PR is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659d1172c94edb88822762ba πŸ“– Compodoc: https://docs1310--micronutrientsupport-tool.netlify.app

github-actions[bot] commented 10 months ago

Bundle difference

Asset group Old size New size Diff
all 15.3 MB 15.37 MB 74.6 KB (0.48%)
documents 0 B 0 B 0 B (0.00%)
scripts 14.11 MB 14.11 MB 8.39 KB (0.06%)
stylesheets 295.82 KB 296.57 KB 768 B (0.25%)
images 3.34 KB 3.34 KB 0 B (0.00%)
misc 0 B 0 B 0 B (0.00%)
github-actions[bot] commented 10 months ago

This pull request is being automatically deployed to Netlify.

πŸ” Deploy log: https://app.netlify.com/sites/micronutrientsupport-tool/deploys/659d11fc968b568e1d454e7d βœ… Preview: https://preview1310--micronutrientsupport-tool.netlify.app

Fuhji commented 10 months ago

Generally looking good πŸ‘. However, the call to the data-sources endpoint should also include the groupId parameter dependent on the selected "Age-Gender-Group" (https://api.micronutrient.support/dev/v2/explorer/#/biomarker/BiomarkerDataSourceController.find)

image

fixed in 6b365e2