Skip to content

Commit

Permalink
Merge pull request #120 from IDEMSInternational/create-pull-request/p…
Browse files Browse the repository at this point in the history
…atch

sync content from google sheets
  • Loading branch information
cabrinenyona authored Nov 26, 2024
2 parents 8e9e0bd + d2be9fa commit c848a13
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 18 deletions.
97 changes: 86 additions & 11 deletions app_data/sheets/template/quiz_question.json
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,30 @@
]
}
},
{
"name": "store_response_field",
"value": "[email protected]",
"_translations": {
"value": {}
},
"type": "set_variable",
"_nested_name": "store_response_field",
"_dynamicFields": {
"value": [
{
"fullExpression": "[email protected]",
"matchedExpression": "@local.id",
"type": "local",
"fieldName": "id"
}
]
},
"_dynamicDependencies": {
"@local.id": [
"value"
]
}
},
{
"name": "show_feedback",
"value": false,
Expand All @@ -1075,6 +1099,7 @@
},
{
"type": "combo_box",
"name": "combo_box",
"condition": "@local.question_type == \"select_multiple\" || @local.question_type == \"select_one\"",
"parameter_list": {
"answer_list": "@local.answer_list",
Expand All @@ -1083,17 +1108,16 @@
"action_list": [
{
"trigger": "changed",
"action_id": "set_local",
"action_id": "set_field",
"args": [
"show_feedback",
true
"@local.store_response_field",
"this.value"
],
"_raw": "changed | set_local: show_feedback: true",
"_cleaned": "changed | set_local: show_feedback: true"
"_raw": "changed | set_field:@local.store_response_field: @local.combo_box",
"_cleaned": "changed | set_field:@local.store_response_field: @local.combo_box"
}
],
"name": "combo_box_25",
"_nested_name": "combo_box_25",
"_nested_name": "combo_box",
"_dynamicFields": {
"condition": [
{
Expand Down Expand Up @@ -1126,6 +1150,48 @@
"fieldName": "combo_box_placeholder"
}
]
},
"action_list": {
"0": {
"args": {
"0": [
{
"fullExpression": "@local.store_response_field",
"matchedExpression": "@local.store_response_field",
"type": "local",
"fieldName": "store_response_field"
}
]
},
"_raw": [
{
"fullExpression": "changed | set_field:@local.store_response_field: @local.combo_box",
"matchedExpression": "@local.store_response_field",
"type": "local",
"fieldName": "store_response_field"
},
{
"fullExpression": "changed | set_field:@local.store_response_field: @local.combo_box",
"matchedExpression": "@local.combo_box",
"type": "local",
"fieldName": "combo_box"
}
],
"_cleaned": [
{
"fullExpression": "changed | set_field:@local.store_response_field: @local.combo_box",
"matchedExpression": "@local.store_response_field",
"type": "local",
"fieldName": "store_response_field"
},
{
"fullExpression": "changed | set_field:@local.store_response_field: @local.combo_box",
"matchedExpression": "@local.combo_box",
"type": "local",
"fieldName": "combo_box"
}
]
}
}
},
"_dynamicDependencies": {
Expand All @@ -1138,6 +1204,15 @@
],
"@global.combo_box_placeholder": [
"parameter_list.placeholder"
],
"@local.store_response_field": [
"action_list.0.args.0",
"action_list.0._raw",
"action_list.0._cleaned"
],
"@local.combo_box": [
"action_list.0._raw",
"action_list.0._cleaned"
]
}
},
Expand All @@ -1159,8 +1234,8 @@
"_cleaned": "changed | set_local: show_feedback: true"
}
],
"name": "text_box_26",
"_nested_name": "text_box_26",
"name": "text_box_27",
"_nested_name": "text_box_27",
"_dynamicFields": {
"condition": [
{
Expand Down Expand Up @@ -1195,8 +1270,8 @@
"_cleaned": "changed | set_local: show_feedback: true"
}
],
"name": "text_area_27",
"_nested_name": "text_area_27",
"name": "text_area_28",
"_nested_name": "text_area_28",
"_dynamicFields": {
"condition": [
{
Expand Down
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ config.google_drive = {

config.git = {
content_repo: "https://github.com/IDEMSInternational/pfr-app-content.git",
content_tag_latest: "1.1.19",
content_tag_latest: "1.1.20",
};

config.android = {
Expand Down
6 changes: 3 additions & 3 deletions reports/summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
{
"type": "set_variable",
"count": 256
"count": 257
},
{
"type": "simple_checkbox",
Expand Down Expand Up @@ -152,11 +152,11 @@
},
{
"type": "set_field",
"count": 19
"count": 20
},
{
"type": "set_local",
"count": 9
"count": 8
},
{
"type": "start_tour",
Expand Down
6 changes: 3 additions & 3 deletions reports/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
| radio_button_grid | 3 |
| radio_group | 1 |
| set_field | 4 |
| set_variable | 256 |
| set_variable | 257 |
| simple_checkbox | 2 |
| task_card | 3 |
| template | 140 |
Expand Down Expand Up @@ -47,8 +47,8 @@
| go_to | 11 |
| pop_up | 7 |
| reset_app | 2 |
| set_field | 19 |
| set_local | 9 |
| set_field | 20 |
| set_local | 8 |
| start_tour | 1 |
</details>

Expand Down

0 comments on commit c848a13

Please sign in to comment.