Skip to content

Commit

Permalink
change option text on G3-3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jkisioh committed Jul 16, 2024
1 parent 19a5d34 commit 7b93f02
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
14 changes: 9 additions & 5 deletions backend/source/forms/1699353915355.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -6619,7 +6619,7 @@
"G2 Clean and safely stored food": "#93D371",
"G1 Food not adequately washed, or not safely stored": "#FDC74B"
},
"fnString": "#o_r_clean_and_safely_stored_food#.includes(\"G0\") && #o_r_clean_and_safely_stored_kitchen_utensils#.includes(\"G0\") && #o_r_clean_and_safely_stored_milk_containers#.includes(\"G0\") ? \"G0 Food not clean and not safely stored\" : #o_r_clean_and_safely_stored_food#.includes(\"G2\") && #o_r_clean_and_safely_stored_milk_containers#.includes(\"G2\") && #o_r_clean_and_safely_stored_kitchen_utensils#.includes(\"G2 Clean and safely stored food\") ? \"G2\" : \"G1 Food not adequately washed, or not safely stored\"",
"fnString": "(!#o_r_clean_and_safely_stored_food# || #o_r_clean_and_safely_stored_food#.includes(\"G1\")) && (!#o_r_clean_and_safely_stored_kitchen_utensils# || #o_r_clean_and_safely_stored_kitchen_utensils#.includes(\"G1\")) && (!#o_r_clean_and_safely_stored_milk_containers# || #o_r_clean_and_safely_stored_milk_containers#.includes(\"G1\")) ? \"G1 Food not adequately washed, or not safely stored\" : (!#o_r_clean_and_safely_stored_food#.includes(\"G2\") || #o_r_clean_and_safely_stored_food#.includes(\"G2\")) && (!#o_r_clean_and_safely_stored_milk_containers# || #o_r_clean_and_safely_stored_milk_containers#.includes(\"G2\")) && (!#o_r_clean_and_safely_stored_kitchen_utensils# || #o_r_clean_and_safely_stored_kitchen_utensils#.includes(\"G2\")) ? \"G2 Clean and safely stored food\" : \"G0 Food not clean and not safely stored\"",
"multiline": false
}
},
Expand Down Expand Up @@ -6809,6 +6809,10 @@
"meta": false,
"options": null,
"dependency": [
{
"id": 1710829091,
"options": ["yes_animals_kept_in_household_compound"]
},
{
"id": 16994260598422,
"options": ["yes"]
Expand All @@ -6819,7 +6823,7 @@
"G0 No safe management of animals and animal wastes": "#FD3F31",
"G2 Safe management of animals and animal wastes": "#93D371"
},
"fnString": "#monitor_G2#.includes(\"yes\") && #o_r_no_visible_animal_wastes_in_house_or_compound#.includes(\"G2\") && #o_r_safe_separation_of_animals_from_under5_children#.includes(\"G2\") && #o_r_safe_management_of_animal_wastes_in_compound#.includes(\"G2\") ? \"G2 Safe management of animals and animal wastes\" : \"G0 No safe management of animals and animal wastes\"",
"fnString": "#monitor_G2#.includes(\"yes\") && (!#o_r_no_visible_animal_wastes_in_house_or_compound# || #o_r_no_visible_animal_wastes_in_house_or_compound#.includes(\"G2\")) && (!#o_r_safe_separation_of_animals_from_under5_children# || #o_r_safe_separation_of_animals_from_under5_children#.includes(\"G2\")) && (!#o_r_safe_management_of_animal_wastes_in_compound# || #o_r_safe_management_of_animal_wastes_in_compound#.includes(\"G2\")) ? \"G2 Safe management of animals and animal wastes\" : \"G0 No safe management of animals and animal wastes\"",
"multiline": false
}
},
Expand Down Expand Up @@ -7016,7 +7020,7 @@
"G2 Inadequate personal hygiene": "#93D371",
"G3 Good personal hygiene": "#4088F4"
},
"fnString": "#monitor_G3#.includes(\"yes\") && #o_r_clean_face_and_hands#.includes(\"G1\") && #o_r_good_menstrual_health#.includes(\"G1\") ? \"G1 No personal hygiene\" : #o_r_clean_face_and_hands#.includes(\"G3\") && #o_r_good_menstrual_health#.includes(\"G3\") ? \"G3 Good personal hygiene\" : \"G2 Inadequate personal hygiene\"",
"fnString": "#monitor_G3#.includes(\"yes\") && (!#o_r_clean_face_and_hands# || #o_r_clean_face_and_hands#.includes(\"G1\")) && (!#o_r_good_menstrual_health# || #o_r_good_menstrual_health#.includes(\"G1\")) ? \"G1 No personal hygiene\" : (!#o_r_clean_face_and_hands# || #o_r_clean_face_and_hands#.includes(\"G3\")) && (!#o_r_good_menstrual_health# || #o_r_good_menstrual_health#.includes(\"G3\")) ? \"G3 Good personal hygiene\" : \"G2 Inadequate personal hygiene\"",
"multiline": false
}
},
Expand Down Expand Up @@ -7249,7 +7253,7 @@
"id": 1712657830,
"order": 23,
"name": "o_r_endemic",
"label": "G3-E2 OUTCOME RESULT - Endemic outcomes",
"label": "G3-E OUTCOME RESULT - Endemic outcomes",
"short_label": null,
"type": "autofield",
"tooltip": null,
Expand Down Expand Up @@ -7365,7 +7369,7 @@
"G2 SAFE AND SUSTAINABLE HOUSEHOLD": "#93D371",
"G3 CLEAN AND HEALTHY HOUSEHOLD": "#4088F4"
},
"fnString": "((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G1\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G1\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G1\"))) ? \"G1 ODF HOUSEHOLD\" : ((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G2\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G2\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G2\"))) ? \"G2 SAFE AND SUSTAINABLE HOUSEHOLD\" : ((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G3\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G3\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G3\"))) ? \"G3 CLEAN AND HEALTHY HOUSEHOLD\" : \"G0 HOUSEHOLD WITH UNSAFELY MANAGED SERVICES\"",
"fnString": "((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G1\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G1\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G1\"))) ? \"G1 ODF HOUSEHOLD\" : ((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G2\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G2\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G2\"))) ? \"G2 SAFE AND SUSTAINABLE HOUSEHOLD\" : ((!#overall_toilet_outcome# || #overall_toilet_outcome#.includes(\"G3\")) && (!#overall_hygiene_outcome# || #overall_hygiene_outcome#.includes(\"G3\")) && (!#overall_other_outcome# || #overall_other_outcome#.includes(\"G3\"))) ? \"G3 CLEAN AND HEALTHY HOUSEHOLD\": : \"G0 HOUSEHOLD WITH UNSAFELY MANAGED SERVICES\"",
"multiline": false
}
}
Expand Down
2 changes: 1 addition & 1 deletion backend/source/forms/1699354006503.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -1113,7 +1113,7 @@
},
{
"order": 3,
"label": "Clean compound with no visible solid wastes in communal areas",
"label": "No visible solid wastes in communal areas",
"value": "g3_clean_compound_with_no_visible_solid_wastes_communal_areas",
"color": "#38A15A"
}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/setupProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ module.exports = function (app) {
app.use(
["/api/**", "/static-files/**"],
createProxyMiddleware({
target: "http://127.0.0.1:8000",
target: "http://localhost:8000",
changeOrigin: true,
})
);
app.use(
["/config.js"],
createProxyMiddleware({
target: "http://127.0.0.1:8000",
target: "http://localhost:8000",
changeOrigin: true,
secure: false,
pathRewrite: {
Expand All @@ -22,7 +22,7 @@ module.exports = function (app) {
app.use(
["/app"],
createProxyMiddleware({
target: "http://127.0.0.1:3000",
target: "http://localhost:3000",
changeOrigin: true,
pathRewrite: {
"^/app": "/apk/rtmis.apk",
Expand All @@ -32,7 +32,7 @@ module.exports = function (app) {
app.use(
["/master-data"],
createProxyMiddleware({
target: "http://127.0.0.1:3000",
target: "http://localhost:3000",
changeOrigin: true,
pathRewrite: {
"^/master-data": "/master_data/kenya-administration.csv",
Expand Down

0 comments on commit 7b93f02

Please sign in to comment.