Skip to content

Commit

Permalink
Merge pull request #75 from IDEMSInternational/content/1.2.33
Browse files Browse the repository at this point in the history
Content/1.2.33
  • Loading branch information
esmeetewinkel authored Jun 6, 2024
2 parents 6917399 + 4baacd6 commit 6253dc8
Show file tree
Hide file tree
Showing 7 changed files with 333 additions and 3 deletions.
10 changes: 10 additions & 0 deletions app_data/sheets/contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,11 @@
"flow_name": "assets_demo",
"_xlsxPath": "doc_sheets/assets_demo.xlsx"
},
"check_field_value": {
"flow_type": "template",
"flow_name": "check_field_value",
"_xlsxPath": "library_sheets/library_field_values/library_field_values.xlsx"
},
"comp_odk_form": {
"flow_type": "template",
"flow_name": "comp_odk_form",
Expand Down Expand Up @@ -2800,6 +2805,11 @@
"flow_name": "debug_sync_id",
"_xlsxPath": "debug_sheets/debug_sync.xlsx"
},
"debug_task_group_completion": {
"flow_type": "template",
"flow_name": "debug_task_group_completion",
"_xlsxPath": "debug_sheets/debug_task_group_completion.xlsx"
},
"doc_field": {
"flow_type": "template",
"flow_name": "doc_field",
Expand Down
1 change: 0 additions & 1 deletion app_data/sheets/data_list/debug/debug_data_list.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"id": "item_1",
"text": "Item 1 text",
"image_asset": "images/example/jasper_1.jpg",
"breaking": "",
"to_translate": "Hello",
"_translations": {
"to_translate": {}
Expand Down
1 change: 0 additions & 1 deletion app_data/sheets/data_list/generated/debug_filtered.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"id": "item_1",
"text": "Item 1 text",
"image_asset": "images/example/jasper_1.jpg",
"breaking": "",
"to_translate": "Hello",
"_translations": {
"to_translate": {}
Expand Down
170 changes: 170 additions & 0 deletions app_data/sheets/template/check_field_value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"flow_type": "template",
"flow_name": "check_field_value",
"status": "released",
"rows": [
{
"type": "title",
"name": "title",
"value": "Check the value of a field",
"_translations": {
"value": {}
},
"_nested_name": "title"
},
{
"type": "text",
"name": "text",
"value": "Field name",
"_translations": {
"value": {}
},
"_nested_name": "text"
},
{
"type": "text_box",
"name": "field_name",
"_nested_name": "field_name"
},
{
"type": "text",
"name": "text",
"value": "Value of the field @local.field_name: @[email protected]_name",
"_translations": {
"value": {}
},
"_nested_name": "text",
"_dynamicFields": {
"value": [
{
"fullExpression": "Value of the field @local.field_name: @[email protected]_name",
"matchedExpression": "@local.field_name",
"type": "local",
"fieldName": "field_name"
},
{
"fullExpression": "Value of the field @local.field_name: @[email protected]_name",
"matchedExpression": "@local.field_name",
"type": "local",
"fieldName": "field_name"
}
]
},
"_dynamicDependencies": {
"@local.field_name": [
"value",
"value"
]
}
},
{
"type": "title",
"name": "title",
"value": "Change the value of a field",
"_translations": {
"value": {}
},
"_nested_name": "title"
},
{
"type": "text",
"name": "text",
"value": "New field value",
"_translations": {
"value": {}
},
"_nested_name": "text"
},
{
"type": "text_box",
"name": "field_value",
"_nested_name": "field_value"
},
{
"type": "button",
"name": "button",
"value": "Update",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "set_field",
"args": [
"@local.field_name",
"@local.field_value"
],
"_raw": "click | set_field: @local.field_name: @local.field_value",
"_cleaned": "click | set_field: @local.field_name: @local.field_value"
}
],
"_nested_name": "button",
"_dynamicFields": {
"action_list": {
"0": {
"args": {
"0": [
{
"fullExpression": "@local.field_name",
"matchedExpression": "@local.field_name",
"type": "local",
"fieldName": "field_name"
}
],
"1": [
{
"fullExpression": "@local.field_value",
"matchedExpression": "@local.field_value",
"type": "local",
"fieldName": "field_value"
}
]
},
"_raw": [
{
"fullExpression": "click | set_field: @local.field_name: @local.field_value",
"matchedExpression": "@local.field_name",
"type": "local",
"fieldName": "field_name"
},
{
"fullExpression": "click | set_field: @local.field_name: @local.field_value",
"matchedExpression": "@local.field_value",
"type": "local",
"fieldName": "field_value"
}
],
"_cleaned": [
{
"fullExpression": "click | set_field: @local.field_name: @local.field_value",
"matchedExpression": "@local.field_name",
"type": "local",
"fieldName": "field_name"
},
{
"fullExpression": "click | set_field: @local.field_name: @local.field_value",
"matchedExpression": "@local.field_value",
"type": "local",
"fieldName": "field_value"
}
]
}
}
},
"_dynamicDependencies": {
"@local.field_name": [
"action_list.0.args.0",
"action_list.0._raw",
"action_list.0._cleaned"
],
"@local.field_value": [
"action_list.0.args.1",
"action_list.0._raw",
"action_list.0._cleaned"
]
}
}
],
"_xlsxPath": "library_sheets/library_field_values/library_field_values.xlsx"
}
45 changes: 45 additions & 0 deletions app_data/sheets/template/debug/debug_data_items_translate.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,51 @@
"value"
]
}
},
{
"type": "button",
"name": "[email protected]",
"value": "Add \"updated\" property",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "set_item",
"args": [],
"_raw": "click | set_item | updated: true",
"_cleaned": "click | set_item | updated: true",
"params": {
"updated": true
}
}
],
"_nested_name": "[email protected]",
"_dynamicFields": {
"name": [
{
"fullExpression": "[email protected]",
"matchedExpression": "@item.id",
"type": "item",
"fieldName": "id"
}
],
"_nested_name": [
{
"fullExpression": "[email protected]",
"matchedExpression": "@item.id",
"type": "item",
"fieldName": "id"
}
]
},
"_dynamicDependencies": {
"@item.id": [
"name",
"_nested_name"
]
}
}
],
"_nested_name": "data_items",
Expand Down
107 changes: 107 additions & 0 deletions app_data/sheets/template/debug_task_group_completion.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
{
"flow_type": "template",
"flow_name": "debug_task_group_completion",
"status": "released",
"rows": [
{
"type": "text",
"name": "text",
"value": "Debug task group completion feature",
"_translations": {
"value": {}
},
"_nested_name": "text"
},
{
"type": "button",
"name": "button",
"value": "Evaluate task group completion 1",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "task",
"args": [
"evaluate_group_completion",
"data_list_c, data_list_b, data_list_a"
],
"_raw": "click | task: evaluate_group_completion: data_list_c, data_list_b, data_list_a",
"_cleaned": "click | task: evaluate_group_completion: data_list_c, data_list_b, data_list_a"
}
],
"_nested_name": "button"
},
{
"type": "button",
"name": "button",
"value": "Evaluate task group completion 2",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "task",
"args": [
"evaluate_group_completion"
],
"_raw": "click | task: evaluate_group_completion | data_lists: data_list_c, data_list_b, data_list_a",
"_cleaned": "click | task: evaluate_group_completion | data_lists: data_list_c, data_list_b, data_list_a",
"params": {
"data_lists": "data_list_c"
}
}
],
"_nested_name": "button"
},
{
"type": "button",
"name": "button",
"value": "Evaluate task group completion 3",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "task",
"args": [
"evaluate_group_completion"
],
"_raw": "click | task: evaluate_group_completion | data_lists: data_list_c data_list_b data_list_a",
"_cleaned": "click | task: evaluate_group_completion | data_lists: data_list_c data_list_b data_list_a",
"params": {
"data_lists": "data_list_c data_list_b data_list_a"
}
}
],
"_nested_name": "button"
},
{
"type": "button",
"name": "button",
"value": "Evaluate task group completion 4",
"_translations": {
"value": {}
},
"action_list": [
{
"trigger": "click",
"action_id": "task",
"args": [
"evaluate_group_completion"
],
"_raw": "click | task: evaluate_group_completion | task_groups: data_list_c data_list_b.row_3 data_list_a.row_5",
"_cleaned": "click | task: evaluate_group_completion | task_groups: data_list_c data_list_b.row_3 data_list_a.row_5",
"params": {
"task_groups": "data_list_c data_list_b.row_3 data_list_a.row_5"
}
}
],
"_nested_name": "button"
}
],
"_xlsxPath": "debug_sheets/debug_task_group_completion.xlsx"
}
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config.web.favicon_asset = "images/icons/favicon.svg";

config.git = {
content_repo: "https://github.com/IDEMSInternational/app-debug-content.git",
content_tag_latest: "1.2.31",
content_tag_latest: "1.2.33",
};

config.app_config.ASSET_PACKS = {
Expand Down

0 comments on commit 6253dc8

Please sign in to comment.