diff --git a/app_data/sheets/contents.json b/app_data/sheets/contents.json index 93cfc1d..849e593 100644 --- a/app_data/sheets/contents.json +++ b/app_data/sheets/contents.json @@ -1,64 +1,19 @@ { "asset_pack": {}, "data_list": { - "example_map_data": { + "map_data": { "flow_type": "data_list", - "flow_name": "example_map_data", + "flow_name": "map_data", "_xlsxPath": "datalists/map_data.xlsx" - }, - "launch_actions": { - "flow_type": "data_list", - "flow_subtype": "lifecycle_actions", - "flow_name": "launch_actions", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, - "partners_data_list": { - "flow_type": "data_list", - "flow_name": "partners_data_list", - "data_list_name": "partners", - "_xlsxPath": "datalists/partners_data_lists.xlsx" - }, - "reference_sections": { - "flow_type": "data_list", - "flow_name": "reference_sections", - "data_list_name": "reference_sections", - "_xlsxPath": "datalists/references.xlsx" - }, - "section_1_references": { - "flow_type": "data_list", - "flow_name": "section_1_references", - "data_list_name": "section_1_references", - "_xlsxPath": "datalists/references.xlsx" - }, - "section_2_references": { - "flow_type": "data_list", - "flow_name": "section_2_references", - "data_list_name": "section_2_references", - "_xlsxPath": "datalists/references.xlsx" } }, "data_pipe": {}, "generator": {}, "global": { - "app_menu_globals": { - "flow_type": "global", - "flow_name": "app_menu_globals", - "_xlsxPath": "globals/navigation_globals.xlsx" - }, - "nav_button_globals": { - "flow_type": "global", - "flow_name": "nav_button_globals", - "_xlsxPath": "globals/navigation_globals.xlsx" - }, "navigation_globals": { "flow_type": "global", "flow_name": "navigation_globals", "_xlsxPath": "globals/navigation_globals.xlsx" - }, - "user_input_globals": { - "flow_type": "global", - "flow_name": "user_input_globals", - "_xlsxPath": "globals/navigation_globals.xlsx" } }, "template": { @@ -67,16 +22,6 @@ "flow_name": "about_conflict_forecast", "_xlsxPath": "templates/global/app_menu.xlsx" }, - "accept_terms": { - "flow_type": "template", - "flow_name": "accept_terms", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, - "accept_terms_warning": { - "flow_type": "template", - "flow_name": "accept_terms_warning", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, "app_menu": { "flow_type": "template", "flow_name": "app_menu", @@ -87,87 +32,15 @@ "flow_name": "app_menu_technical_support", "_xlsxPath": "templates/global/app_menu.xlsx" }, - "app_settings": { - "flow_type": "template", - "flow_name": "app_settings", - "_xlsxPath": "templates/global/app_settings.xlsx" - }, - "app_update_complete": { - "flow_type": "template", - "flow_name": "app_update_complete", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, - "dev_mode_enter": { - "flow_type": "template", - "flow_name": "dev_mode_enter", - "_xlsxPath": "templates/global/app_settings.xlsx" - }, - "dev_mode_exit": { - "flow_type": "template", - "flow_name": "dev_mode_exit", - "_xlsxPath": "templates/global/app_settings.xlsx" - }, "home_screen": { "flow_type": "template", "flow_name": "home_screen", "_xlsxPath": "templates/global/navigation_templates.xlsx" }, - "language_select": { - "flow_type": "template", - "flow_name": "language_select", - "_xlsxPath": "templates/global/app_settings.xlsx" - }, - "app_menu_privacy_policy": { - "flow_type": "template", - "flow_name": "app_menu_privacy_policy", - "flow_subtype": "legal_terms", - "_xlsxPath": "templates/global/app_menu.xlsx" - }, - "app_menu_terms": { - "flow_type": "template", - "flow_name": "app_menu_terms", - "flow_subtype": "legal_terms", - "_xlsxPath": "templates/global/app_menu.xlsx" - }, "map_page": { "flow_type": "template", "flow_name": "map_page", "_xlsxPath": "templates/global/map_page.xlsx" - }, - "nav_buttons": { - "flow_type": "template", - "flow_name": "nav_buttons", - "_xlsxPath": "templates/global/navigation_templates.xlsx" - }, - "reference_page": { - "flow_type": "template", - "flow_name": "reference_page", - "_xlsxPath": "templates/global/app_menu.xlsx" - }, - "reference_popup": { - "flow_type": "template", - "flow_name": "reference_popup", - "_xlsxPath": "templates/global/app_menu.xlsx" - }, - "reset_app": { - "flow_type": "template", - "flow_name": "reset_app", - "_xlsxPath": "templates/global/app_settings.xlsx" - }, - "splash_partners": { - "flow_type": "template", - "flow_name": "splash_partners", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, - "splash_screens": { - "flow_type": "template", - "flow_name": "splash_screens", - "_xlsxPath": "templates/global/app_launch_templates.xlsx" - }, - "user_info": { - "flow_type": "template", - "flow_name": "user_info", - "_xlsxPath": "templates/global/app_settings.xlsx" } }, "tour": {} diff --git a/app_data/sheets/data_list/lifecycle_actions/launch_actions.json b/app_data/sheets/data_list/lifecycle_actions/launch_actions.json deleted file mode 100644 index 836e994..0000000 --- a/app_data/sheets/data_list/lifecycle_actions/launch_actions.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "flow_type": "data_list", - "flow_subtype": "lifecycle_actions", - "flow_name": "launch_actions", - "status": "released", - "rows": [ - { - "lifecycle_event": "app_start", - "id": "app_start_update_complete", - "priority": 1, - "condition_list": [ - "@fields._app_update_downloaded" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "app_update", - "args": [ - "complete" - ], - "_raw": "app_update: complete", - "_cleaned": "click | app_update: complete" - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_splash_screens", - "priority": 2, - "condition_list": [ - "!@fields.splash_screens_viewed && @fields.user_mode" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "splash_screens" - ], - "_raw": "pop_up: splash_screens | fullscreen: true, showCloseButton: false", - "_cleaned": "click | pop_up: splash_screens | fullscreen: true, showCloseButton: false", - "params": { - "fullscreen": true, - "showCloseButton": false - } - }, - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "splash_screens_viewed", - true - ], - "_raw": "set_field: splash_screens_viewed: true", - "_cleaned": "click | set_field: splash_screens_viewed: true" - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_language_select", - "priority": 3, - "condition_list": [ - "!@fields.language_selected && @fields.user_mode" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "language_select" - ], - "_raw": "pop_up: language_select | fullscreen: true, showCloseButton: false", - "_cleaned": "click | pop_up: language_select | fullscreen: true, showCloseButton: false", - "params": { - "fullscreen": true, - "showCloseButton": false - } - }, - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "language_selected", - true - ], - "_raw": "set_field: language_selected: true", - "_cleaned": "click | set_field: language_selected: true" - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_accept_terms", - "priority": 4, - "condition_list": [ - "!@fields.terms_v20230301_accepted && @fields.user_mode" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "accept_terms" - ], - "_raw": "pop_up: accept_terms | fullscreen: true, showCloseButton: false", - "_cleaned": "click | pop_up: accept_terms | fullscreen: true, showCloseButton: false", - "params": { - "fullscreen": true, - "showCloseButton": false - } - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_user_info", - "priority": 5, - "condition_list": [ - "!@fields.user_info_submitted && @fields.user_mode" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "user_info" - ], - "_raw": "pop_up: user_info | fullscreen: true, showCloseButton: false", - "_cleaned": "click | pop_up: user_info | fullscreen: true, showCloseButton: false", - "params": { - "fullscreen": true, - "showCloseButton": false - } - }, - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "user_info_submitted", - true - ], - "_raw": "set_field: user_info_submitted: true", - "_cleaned": "click | set_field: user_info_submitted: true" - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_home_screen_tour", - "priority": 6, - "condition_list": [ - "!@fields.home_screen_tour_viewed && @fields.user_mode" - ], - "action_list": [ - { - "trigger": "click", - "action_id": "start_tour", - "args": [ - "home_screen_tour" - ], - "_raw": "start_tour: home_screen_tour", - "_cleaned": "click | start_tour: home_screen_tour" - }, - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "home_screen_tour_viewed", - true - ], - "_raw": "set_field: home_screen_tour_viewed: true", - "_cleaned": "click | set_field: home_screen_tour_viewed: true" - } - ] - }, - { - "lifecycle_event": "app_start", - "id": "app_start_update_prompt", - "priority": 7, - "action_list": [ - { - "trigger": "click", - "action_id": "app_update", - "args": [ - "prompt" - ], - "_raw": "app_update: prompt", - "_cleaned": "click | app_update: prompt" - } - ] - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/data_list/example_map_data.json b/app_data/sheets/data_list/map_data.json similarity index 77% rename from app_data/sheets/data_list/example_map_data.json rename to app_data/sheets/data_list/map_data.json index b73da38..3db19b9 100644 --- a/app_data/sheets/data_list/example_map_data.json +++ b/app_data/sheets/data_list/map_data.json @@ -1,6 +1,6 @@ { "flow_type": "data_list", - "flow_name": "example_map_data", + "flow_name": "map_data", "status": "released", "rows": [ { @@ -39,6 +39,18 @@ "stroke": "red", "opacity": 1, "visible_default": false + }, + { + "id": "layer_4", + "name": "County Centroids", + "description": "Centroids for each county", + "source_asset": "map_data/centroids.json", + "type": "vector", + "fill": "red", + "stroke": "none", + "scale_title": "County Centroids", + "opacity": 1, + "visible_default": true } ], "_xlsxPath": "datalists/map_data.xlsx" diff --git a/app_data/sheets/data_list/partners_data_list.json b/app_data/sheets/data_list/partners_data_list.json deleted file mode 100644 index 75e112a..0000000 --- a/app_data/sheets/data_list/partners_data_list.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "flow_type": "data_list", - "flow_name": "partners_data_list", - "status": "released", - "data_list_name": "partners", - "rows": [ - { - "id": "innodems", - "splash_page": 1, - "name": "INNODEMS", - "image_asset": "logos/innodems.png" - }, - { - "id": "econai", - "splash_page": 1, - "name": "EconAI", - "image_asset": "logos/econai.png" - } - ], - "_xlsxPath": "datalists/partners_data_lists.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/data_list/reference_sections.json b/app_data/sheets/data_list/reference_sections.json deleted file mode 100644 index 65c42d9..0000000 --- a/app_data/sheets/data_list/reference_sections.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "flow_type": "data_list", - "flow_name": "reference_sections", - "status": "released", - "data_list_name": "reference_sections", - "rows": [ - { - "id": "general", - "relevant_for_section_1": true, - "relevant_for_section_2": true, - "title": "General WASH (including Waste as well as Bathing and Washing topics)", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "General WASH (including Waste as well as Bathing and Washing topics)" - } - } - }, - { - "id": "handwashing", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "Handwashing", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "Handwashing" - } - } - }, - { - "id": "healthy_families", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "@data.module.healthy_families.title", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "@data.module.healthy_families.title" - } - } - }, - { - "id": "clean_toilets", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "@data.module.clean_toilets.title", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "@data.module.clean_toilets.title" - } - } - }, - { - "id": "healthy_homes", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "@data.module.healthy_homes.title", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "@data.module.healthy_homes.title" - } - } - }, - { - "id": "safe_drinking_water", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "@data.module.safe_drinking_water.title", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "@data.module.safe_drinking_water.title" - } - } - }, - { - "id": "safe_food", - "relevant_for_section_1": true, - "relevant_for_section_2": false, - "title": "@data.module.safe_food.title", - "_translations": { - "title": {} - }, - "_translatedFields": { - "title": { - "eng": "@data.module.safe_food.title" - } - } - } - ], - "_xlsxPath": "datalists/references.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/data_list/section_1_references.json b/app_data/sheets/data_list/section_1_references.json deleted file mode 100644 index 09476a3..0000000 --- a/app_data/sheets/data_list/section_1_references.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "flow_type": "data_list", - "flow_name": "section_1_references", - "status": "released", - "data_list_name": "section_1_references", - "rows": [ - { - "id": "unicef_1", - "reference_section": "general", - "reference": "Water, Sanitation and Hygiene (WASH). UNICEF. (n.d.). Retrieved February 22, 2023, from https://www.unicef.org/wash", - "reference_link": "www.unicef.org/wash", - "reference_link_title": "Go to website" - }, - { - "id": "who_1", - "reference_section": "general", - "reference": "Water, Sanitation and Hygiene (WASH). WHO. (n.d.). Retrieved February 22, 2023, from https://www.who.int/health-topics/water-sanitation-and-hygiene-wash", - "reference_link": "www.who.int/health-topics/water-sanitation-and-hygiene-wash", - "reference_link_title": "Go to website" - }, - { - "id": "national_guidlines_schools", - "reference_section": "general", - "reference": "National Guideline for Water, Sanitation and Hygiene for Tanzania Schools. MoEST; 2016.", - "reference_link_title": "Go to website" - }, - { - "id": "unicef_2", - "reference_section": "general", - "reference": "Water, Sanitation and Hygiene for Schoolchildren in Emergencies A Guidebook for Teachers. New York: UNICEF; 2011.", - "reference_link_title": "Go to website" - }, - { - "id": "unicef_3", - "reference_section": "handwashing", - "reference": "United Nations Children’s Fund and World Health Organization, State of the World’s Hand Hygiene: A global call to action to make hand hygiene a priority in policy and practice. New York: UNICEF; 2021.", - "reference_link_title": "Go to website" - }, - { - "id": "unicef_4", - "reference_section": "handwashing", - "reference": "Handwashing Promotion Monitoring and Evaluation Module. UNICEF; 2013.", - "reference_link_title": "Go to website" - }, - { - "id": "unicef_5", - "reference_section": "handwashing", - "reference": "How to teach your kids handwashing. UNICEF Parenting. (n.d.). Retrieved February 22, 2023, from https://www.unicef.org/parenting/health/how-to-teach-your-kids-handwashing", - "reference_link": "www.unicef.org/parenting/health/how-to-teach-your-kids-handwashing", - "reference_link_title": "Go to website" - }, - { - "id": "who_2", - "reference_section": "healthy_families", - "reference": "Preventing diarrhoea through better water, sanitation and hygiene. Geneva: WHO; 2014.", - "reference_link_title": "Go to website" - }, - { - "id": "who_3", - "reference_section": "healthy_families", - "reference": "Diarrhoeal disease. World Health Organization. (2 May 2017). Retrieved February 22, 2023 from https://www.who.int/news-room/fact-sheets/detail/diarrhoeal-disease", - "reference_link": "www.who.int/news-room/fact-sheets/detail/diarrhoeal-disease", - "reference_link_title": "Go to website" - }, - { - "id": "who_4", - "reference_section": "healthy_families", - "reference": "Schistosomiasis. World Health Organization. (1 Feb 2023). Retrieved February 22, 2023, from https://www.who.int/news-room/fact-sheets/detail/schistosomiasis#:~:text=The%20WHO%20strategy%20for%20schistosomiasis", - "reference_link": "www.who.int/news-room/fact-sheets/detail/schistosomiasis#:~:text=The%20WHO%20strategy%20for%20schistosomiasis", - "reference_link_title": "Go to website" - }, - { - "id": "who_5", - "reference_section": "healthy_families", - "reference": "Soil-transmitted helminth infections. World Health Organization. (18 Jan 2023). Retrieved February 22, 2023, from https://www.who.int/news-room/fact-sheets/detail/soil-transmitted-helminth-infections", - "reference_link_title": "Go to website" - }, - { - "id": "who_6", - "reference_section": "healthy_families", - "reference": "Trachoma. World Health Organization. (5 Oct 2022). Retrieved February 22, 2023, from http://www.who.int/news-room/fact-sheets/detail/trachoma#:~:text=Trachoma%20is%20a%20disease%20of", - "reference_link": "www.who.int/news-room/fact-sheets/detail/trachoma#:~:text=Trachoma%20is%20a%20disease%20of", - "reference_link_title": "Go to website" - }, - { - "id": "who_7", - "reference_section": "clean_toilets", - "reference": "Guidelines on sanitation and health. Geneva: World Health Organization; 2018. Licence: CC BY-NC-SA 3.0 IGO.", - "reference_link_title": "Go to website" - }, - { - "id": "unicef_6", - "reference_section": "healthy_homes", - "reference": "Baby WASH Programming. UNICEF Eastern and Southern Africa: UNICEF; 2020.", - "reference_link_title": "Go to website" - }, - { - "id": "who_8", - "reference_section": "safe_drinking_water", - "reference": "Guidelines for drinking-water quality: fourth edition incorporating the first and second addenda. Geneva: World Health Organization; 2022. Licence: CC BY-NC-SA 3.0 IGO.", - "reference_link_title": "Go to website" - }, - { - "id": "who_9", - "reference_section": "safe_food", - "reference": "5 Keys to Safer Food Manual. Geneva: WHO; 2016.", - "reference_link_title": "Go to website" - } - ], - "_xlsxPath": "datalists/references.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/data_list/section_2_references.json b/app_data/sheets/data_list/section_2_references.json deleted file mode 100644 index ad44e12..0000000 --- a/app_data/sheets/data_list/section_2_references.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "flow_type": "data_list", - "flow_name": "section_2_references", - "status": "released", - "data_list_name": "section_2_references", - "rows": [ - { - "id": "community_wash_conversations", - "reference_section": "general", - "reference": "Community WASH Conversations. Arkansas: LifeWater. Mar 2022; Licence: CC BY-NC-SA 3.0.", - "reference_link_title": "Go to website" - }, - { - "id": "community_wash_promotions", - "reference_section": "general", - "reference": "Centre for Affordable Water and Sanitation Technology: Community WASH Promotion; 2017.", - "reference_link_title": "Go to website" - } - ], - "_xlsxPath": "datalists/references.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/global/app_menu_globals.json b/app_data/sheets/global/app_menu_globals.json deleted file mode 100644 index 5c629a9..0000000 --- a/app_data/sheets/global/app_menu_globals.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "flow_type": "global", - "flow_name": "app_menu_globals", - "status": "released", - "rows": [ - { - "type": "declare_global_constant", - "name": "terms_and_conditions", - "value": "Terms and Conditions", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "privacy_policy", - "value": "Privacy Policy", - "_translations": { - "value": {} - } - }, - { - "type": "declare_field_default", - "name": "user_mode", - "value": true, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "dev_mode_code", - "value": "app_dev", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "test_mode_code", - "value": "WASH_App_Test", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "terms_and_conditions", - "value": "Terms & Conditions", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "privacy_policy", - "value": "Privacy Policy", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "user_info", - "value": "Your Profile", - "_translations": { - "value": {} - } - } - ], - "_xlsxPath": "globals/navigation_globals.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/global/nav_button_globals.json b/app_data/sheets/global/nav_button_globals.json deleted file mode 100644 index 4885994..0000000 --- a/app_data/sheets/global/nav_button_globals.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "flow_type": "global", - "flow_name": "nav_button_globals", - "status": "released", - "rows": [ - { - "type": "declare_global_constant", - "name": "next", - "value": "Next", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "previous", - "value": "Previous", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "save", - "value": "Save", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "start", - "value": "Start", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "skip", - "value": "Skip", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "continue", - "value": "Continue", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "submit", - "value": "Submit", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "done", - "value": "Done", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "next_button", - "value": "**@global.next**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "previous_button", - "value": "**@global.previous**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "save_button", - "value": "**@global.save**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "start_button", - "value": "**@global.start**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "skip_button", - "value": "**@global.skip**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "continue_button", - "value": "**@global.continue**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "submit_button", - "value": "**@global.submit**", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - } - ], - "_xlsxPath": "globals/navigation_globals.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/global/navigation_globals.json b/app_data/sheets/global/navigation_globals.json index fd84b28..72f1ce5 100644 --- a/app_data/sheets/global/navigation_globals.json +++ b/app_data/sheets/global/navigation_globals.json @@ -15,7 +15,7 @@ { "type": "declare_global_constant", "name": "app_id", - "value": "international.idems.wash", + "value": "international.idems.conflict_forecast", "_translations": { "value": {} }, diff --git a/app_data/sheets/global/user_input_globals.json b/app_data/sheets/global/user_input_globals.json deleted file mode 100644 index 8c92b3a..0000000 --- a/app_data/sheets/global/user_input_globals.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "flow_type": "global", - "flow_name": "user_input_globals", - "status": "released", - "rows": [ - { - "type": "declare_global_constant", - "name": "user_name_default" - }, - { - "type": "declare_field_default", - "name": "user_name", - "value": "@global.user_name_default", - "_translations": { - "value": {} - }, - "exclude_from_translation": true - }, - { - "type": "declare_global_constant", - "name": "tap_and_type", - "value": "Tap and type", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "tap_and_choose", - "value": "Tap and choose", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "type_your_own", - "value": "Type your own", - "_translations": { - "value": {} - } - }, - { - "type": "declare_global_constant", - "name": "dont_show_again", - "value": "I've understood this. Don't show me this message again.", - "_translations": { - "value": {} - } - } - ], - "_xlsxPath": "globals/navigation_globals.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/about_conflict_forecast.json b/app_data/sheets/template/about_conflict_forecast.json index 1322c08..b80dde9 100644 --- a/app_data/sheets/template/about_conflict_forecast.json +++ b/app_data/sheets/template/about_conflict_forecast.json @@ -30,7 +30,7 @@ { "type": "text", "name": "text", - "value": "@global.app_name is brought to you by the collaboration of partners including INNODEMS and EconAI [This is just place holder text].", + "value": "@global.app_name predicts intensification of existing conflicts and locations where new conflicts will break out after a period of peace at national and sub-national levels with the intensity at a 55x55 km resolution. \n\n@global.app_name is brought to you by the collaboration of partners including INNODEMS and EconAI.", "_translations": { "value": {} }, @@ -38,7 +38,13 @@ "_dynamicFields": { "value": [ { - "fullExpression": "@global.app_name is brought to you by the collaboration of partners including INNODEMS and EconAI [This is just place holder text].", + "fullExpression": "@global.app_name predicts intensification of existing conflicts and locations where new conflicts will break out after a period of peace at national and sub-national levels with the intensity at a 55x55 km resolution. \n\n@global.app_name is brought to you by the collaboration of partners including INNODEMS and EconAI.", + "matchedExpression": "@global.app_name", + "type": "global", + "fieldName": "app_name" + }, + { + "fullExpression": "@global.app_name predicts intensification of existing conflicts and locations where new conflicts will break out after a period of peace at national and sub-national levels with the intensity at a 55x55 km resolution. \n\n@global.app_name is brought to you by the collaboration of partners including INNODEMS and EconAI.", "matchedExpression": "@global.app_name", "type": "global", "fieldName": "app_name" @@ -47,29 +53,10 @@ }, "_dynamicDependencies": { "@global.app_name": [ + "value", "value" ] } - }, - { - "type": "button", - "name": "button_references", - "value": "References", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "reference_page" - ], - "_raw": "click | go_to:reference_page", - "_cleaned": "click | go_to:reference_page" - } - ], - "_nested_name": "button_references" } ], "_xlsxPath": "templates/global/app_menu.xlsx" diff --git a/app_data/sheets/template/accept_terms.json b/app_data/sheets/template/accept_terms.json deleted file mode 100644 index afc05b0..0000000 --- a/app_data/sheets/template/accept_terms.json +++ /dev/null @@ -1,344 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "accept_terms", - "status": "released", - "rows": [ - { - "type": "image", - "name": "image", - "value": "first_app_launch/shield.svg", - "_translations": { - "value": {} - }, - "style_list": [ - "max-height: 100px" - ], - "_nested_name": "image" - }, - { - "type": "text", - "name": "text_1", - "value": "By providing your consent below you acknowledge reading and accepting the @global.terms_and_conditions and @global.privacy_policy. The most important commitments are:\n1. This is, and will always be, a fully free app.\n2. Your data will never be sold. We are not for profit.\n3. By using the app you are helping to make the app better for you and others.\n4. Your anonymised data may be used for research purposes by our @global.parent_app team.", - "_translations": { - "value": {} - }, - "_nested_name": "text_1", - "_dynamicFields": { - "value": [ - { - "fullExpression": "By providing your consent below you acknowledge reading and accepting the @global.terms_and_conditions and @global.privacy_policy. The most important commitments are:\n1. This is, and will always be, a fully free app.\n2. Your data will never be sold. We are not for profit.\n3. By using the app you are helping to make the app better for you and others.\n4. Your anonymised data may be used for research purposes by our @global.parent_app team.", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - }, - { - "fullExpression": "By providing your consent below you acknowledge reading and accepting the @global.terms_and_conditions and @global.privacy_policy. The most important commitments are:\n1. This is, and will always be, a fully free app.\n2. Your data will never be sold. We are not for profit.\n3. By using the app you are helping to make the app better for you and others.\n4. Your anonymised data may be used for research purposes by our @global.parent_app team.", - "matchedExpression": "@global.privacy_policy", - "type": "global", - "fieldName": "privacy_policy" - }, - { - "fullExpression": "By providing your consent below you acknowledge reading and accepting the @global.terms_and_conditions and @global.privacy_policy. The most important commitments are:\n1. This is, and will always be, a fully free app.\n2. Your data will never be sold. We are not for profit.\n3. By using the app you are helping to make the app better for you and others.\n4. Your anonymised data may be used for research purposes by our @global.parent_app team.", - "matchedExpression": "@global.parent_app", - "type": "global", - "fieldName": "parent_app" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value" - ], - "@global.privacy_policy": [ - "value" - ], - "@global.parent_app": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_1", - "value": "@global.terms_and_conditions", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "app_menu_terms" - ], - "_raw": "click | pop_up: app_menu_terms", - "_cleaned": "click | pop_up: app_menu_terms" - } - ], - "_nested_name": "button_1", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.terms_and_conditions", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_2", - "value": "@global.privacy_policy", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "pop_up", - "args": [ - "app_menu_privacy_policy" - ], - "_raw": "click | pop_up: app_menu_privacy_policy", - "_cleaned": "click | pop_up: app_menu_privacy_policy" - } - ], - "_nested_name": "button_2", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.privacy_policy", - "matchedExpression": "@global.privacy_policy", - "type": "global", - "fieldName": "privacy_policy" - } - ] - }, - "_dynamicDependencies": { - "@global.privacy_policy": [ - "value" - ] - } - }, - { - "type": "text", - "name": "text_2", - "value": "These policies are still under construction. We value advice and input to improve them.", - "_translations": { - "value": {} - }, - "_nested_name": "text_2" - }, - { - "name": "consent_text", - "value": "I consent to the commitments stated above.", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "consent_text" - }, - { - "type": "display_group", - "name": "dg_checkbox", - "rows": [ - { - "type": "simple_checkbox", - "name": "checkbox", - "parameter_list": { - "align": "left" - }, - "_nested_name": "dg_checkbox.checkbox" - }, - { - "type": "text", - "name": "text", - "value": "@local.consent_text", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "style_list": [ - "flex:1" - ], - "_nested_name": "dg_checkbox.text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.consent_text", - "matchedExpression": "@local.consent_text", - "type": "local", - "fieldName": "consent_text" - } - ] - }, - "_dynamicDependencies": { - "@local.consent_text": [ - "value" - ] - } - } - ], - "_nested_name": "dg_checkbox" - }, - { - "type": "template", - "name": "nav_buttons_no_consent", - "value": "nav_buttons", - "action_list": [ - { - "trigger": "completed", - "action_id": "pop_up", - "args": [ - "accept_terms_warning" - ], - "_raw": "completed | pop_up: accept_terms_warning", - "_cleaned": "completed | pop_up: accept_terms_warning" - } - ], - "condition": "!@local.checkbox", - "rows": [ - { - "name": "display_back", - "value": false, - "type": "set_variable", - "_nested_name": "nav_buttons_no_consent.display_back" - }, - { - "name": "button_completed", - "value": "@global.continue_button", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "nav_buttons_no_consent.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.continue_button", - "matchedExpression": "@global.continue_button", - "type": "global", - "fieldName": "continue_button" - } - ] - }, - "_dynamicDependencies": { - "@global.continue_button": [ - "value" - ] - } - } - ], - "_nested_name": "nav_buttons_no_consent", - "_dynamicFields": { - "condition": [ - { - "fullExpression": "!@local.checkbox", - "matchedExpression": "!@local.checkbox", - "type": "local", - "fieldName": "checkbox" - } - ] - }, - "_dynamicDependencies": { - "!@local.checkbox": [ - "condition" - ] - } - }, - { - "type": "template", - "name": "nav_buttons_consent", - "value": "nav_buttons", - "action_list": [ - { - "trigger": "completed", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "completed | emit:completed", - "_cleaned": "completed | emit:completed" - }, - { - "trigger": "completed", - "action_id": "set_field", - "args": [ - "terms_v20230301_accepted", - true - ], - "_raw": "completed | set_field: terms_v20230301_accepted: true", - "_cleaned": "completed | set_field: terms_v20230301_accepted: true" - }, - { - "trigger": "uncompleted", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "uncompleted | emit:uncompleted", - "_cleaned": "uncompleted | emit:uncompleted" - } - ], - "condition": "@local.checkbox", - "rows": [ - { - "name": "display_back", - "value": false, - "type": "set_variable", - "_nested_name": "nav_buttons_consent.display_back" - }, - { - "name": "button_completed", - "value": "@global.continue_button", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "nav_buttons_consent.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.continue_button", - "matchedExpression": "@global.continue_button", - "type": "global", - "fieldName": "continue_button" - } - ] - }, - "_dynamicDependencies": { - "@global.continue_button": [ - "value" - ] - } - } - ], - "_nested_name": "nav_buttons_consent", - "_dynamicFields": { - "condition": [ - { - "fullExpression": "@local.checkbox", - "matchedExpression": "@local.checkbox", - "type": "local", - "fieldName": "checkbox" - } - ] - }, - "_dynamicDependencies": { - "@local.checkbox": [ - "condition" - ] - } - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/accept_terms_warning.json b/app_data/sheets/template/accept_terms_warning.json deleted file mode 100644 index 9e7d28f..0000000 --- a/app_data/sheets/template/accept_terms_warning.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "accept_terms_warning", - "status": "released", - "rows": [ - { - "type": "text", - "name": "text", - "value": "You can only move on and access the app if you provide your consent.", - "_translations": { - "value": {} - }, - "_nested_name": "text" - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/app_menu.json b/app_data/sheets/template/app_menu.json index 25da218..f4ca8b1 100644 --- a/app_data/sheets/template/app_menu.json +++ b/app_data/sheets/template/app_menu.json @@ -95,101 +95,6 @@ ] } }, - { - "type": "button", - "name": "button_settings", - "value": "Settings", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "app_settings" - ], - "_raw": "click | go_to: app_settings", - "_cleaned": "click | go_to: app_settings" - } - ], - "_nested_name": "button_settings" - }, - { - "type": "button", - "name": "button_tour", - "value": "How to use @global.app_name", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "start_tour", - "args": [ - "home_screen_tour" - ], - "_raw": "click | start_tour: home_screen_tour", - "_cleaned": "click | start_tour: home_screen_tour" - } - ], - "_nested_name": "button_tour", - "_dynamicFields": { - "value": [ - { - "fullExpression": "How to use @global.app_name", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_privacy_policy", - "value": "Privacy Policy", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "app_menu_privacy_policy" - ], - "_raw": "click | go_to:app_menu_privacy_policy", - "_cleaned": "click | go_to:app_menu_privacy_policy" - } - ], - "_nested_name": "button_privacy_policy" - }, - { - "type": "button", - "name": "button_terms_and_conditions", - "value": "Terms and Conditions", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "app_menu_terms" - ], - "_raw": "click | go_to:app_menu_terms", - "_cleaned": "click | go_to:app_menu_terms" - } - ], - "_nested_name": "button_terms_and_conditions" - }, { "type": "button", "name": "button_1", @@ -209,58 +114,6 @@ } ], "_nested_name": "button_1" - }, - { - "type": "display_group", - "name": "dg_references", - "rows": [ - { - "type": "toggle_bar", - "name": "toggle_references", - "value": "@fields.show_references", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "changed", - "action_id": "set_field", - "args": [ - "show_references", - "this.value" - ], - "_raw": "changed | set_field: show_references: this.value", - "_cleaned": "changed | set_field: show_references: this.value" - } - ], - "condition": false, - "_nested_name": "dg_references.toggle_references", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields.show_references", - "matchedExpression": "@fields.show_references", - "type": "fields", - "fieldName": "show_references" - } - ] - }, - "_dynamicDependencies": { - "@fields.show_references": [ - "value" - ] - } - }, - { - "type": "text", - "name": "toggle_text", - "style_list": [ - "flex: 1" - ], - "_nested_name": "dg_references.toggle_text" - } - ], - "_nested_name": "dg_references" } ], "_xlsxPath": "templates/global/app_menu.xlsx" diff --git a/app_data/sheets/template/app_settings.json b/app_data/sheets/template/app_settings.json deleted file mode 100644 index 21da322..0000000 --- a/app_data/sheets/template/app_settings.json +++ /dev/null @@ -1,185 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "app_settings", - "status": "released", - "rows": [ - { - "type": "button", - "name": "button_lang", - "value": "@global.language", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "language_select" - ], - "_raw": "click | go_to: language_select", - "_cleaned": "click | go_to: language_select" - } - ], - "_nested_name": "button_lang", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.language", - "matchedExpression": "@global.language", - "type": "global", - "fieldName": "language" - } - ] - }, - "_dynamicDependencies": { - "@global.language": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_profile", - "value": "@global.user_info", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "user_info" - ], - "_raw": "click | go_to: user_info", - "_cleaned": "click | go_to: user_info" - } - ], - "_nested_name": "button_profile", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.user_info", - "matchedExpression": "@global.user_info", - "type": "global", - "fieldName": "user_info" - } - ] - }, - "_dynamicDependencies": { - "@global.user_info": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_id", - "value": "@global.uuid_title", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "user_code" - ], - "_raw": "click | go_to: user_code", - "_cleaned": "click | go_to: user_code" - } - ], - "_nested_name": "button_id", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.uuid_title", - "matchedExpression": "@global.uuid_title", - "type": "global", - "fieldName": "uuid_title" - } - ] - }, - "_dynamicDependencies": { - "@global.uuid_title": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button_dev_enter", - "value": "Developer Mode", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "dev_mode_enter" - ], - "_raw": "click | go_to: dev_mode_enter", - "_cleaned": "click | go_to: dev_mode_enter" - } - ], - "condition": "@fields.user_mode", - "_nested_name": "button_dev_enter", - "_dynamicFields": { - "condition": [ - { - "fullExpression": "@fields.user_mode", - "matchedExpression": "@fields.user_mode", - "type": "fields", - "fieldName": "user_mode" - } - ] - }, - "_dynamicDependencies": { - "@fields.user_mode": [ - "condition" - ] - } - }, - { - "type": "button", - "name": "button_dev_exit", - "value": "Developer Mode", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "go_to", - "args": [ - "dev_mode_exit" - ], - "_raw": "click | go_to: dev_mode_exit", - "_cleaned": "click | go_to: dev_mode_exit" - } - ], - "condition": "!@fields.user_mode", - "_nested_name": "button_dev_exit", - "_dynamicFields": { - "condition": [ - { - "fullExpression": "!@fields.user_mode", - "matchedExpression": "!@fields.user_mode", - "type": "fields", - "fieldName": "user_mode" - } - ] - }, - "_dynamicDependencies": { - "!@fields.user_mode": [ - "condition" - ] - } - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/app_update_complete.json b/app_data/sheets/template/app_update_complete.json deleted file mode 100644 index 13832e4..0000000 --- a/app_data/sheets/template/app_update_complete.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "app_update_complete", - "status": "released", - "rows": [ - { - "type": "text", - "name": "text", - "value": "@global.app_name has downloaded an update. Please restart the app to finish installation.", - "_translations": { - "value": {} - }, - "_nested_name": "text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.app_name has downloaded an update. Please restart the app to finish installation.", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "button", - "name": "button", - "value": "Restart", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "app_update", - "args": [ - "complete" - ], - "_raw": "click | app_update: complete", - "_cleaned": "click | app_update: complete" - } - ], - "_nested_name": "button" - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/dev_mode_enter.json b/app_data/sheets/template/dev_mode_enter.json deleted file mode 100644 index 646b4eb..0000000 --- a/app_data/sheets/template/dev_mode_enter.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "dev_mode_enter", - "status": "released", - "rows": [ - { - "name": "text_box_placeholder", - "value": "@global.tap_and_type", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "text_box_placeholder", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.tap_and_type", - "matchedExpression": "@global.tap_and_type", - "type": "global", - "fieldName": "tap_and_type" - } - ] - }, - "_dynamicDependencies": { - "@global.tap_and_type": [ - "value" - ] - } - }, - { - "name": "reply_entered", - "value": false, - "type": "set_variable", - "_nested_name": "reply_entered" - }, - { - "type": "title", - "name": "title", - "value": "Entering Developer Mode", - "_translations": { - "value": {} - }, - "_nested_name": "title" - }, - { - "type": "text", - "name": "text_1", - "value": "To launch the app in developer mode, enter your developer code in the box below and press @global.save_button.", - "_translations": { - "value": {} - }, - "_nested_name": "text_1", - "_dynamicFields": { - "value": [ - { - "fullExpression": "To launch the app in developer mode, enter your developer code in the box below and press @global.save_button.", - "matchedExpression": "@global.save_button", - "type": "global", - "fieldName": "save_button" - } - ] - }, - "_dynamicDependencies": { - "@global.save_button": [ - "value" - ] - } - }, - { - "type": "text_box", - "name": "text_box", - "exclude_from_translation": true, - "parameter_list": { - "placeholder": "@local.text_box_placeholder" - }, - "_nested_name": "text_box", - "_dynamicFields": { - "parameter_list": { - "placeholder": [ - { - "fullExpression": "@local.text_box_placeholder", - "matchedExpression": "@local.text_box_placeholder", - "type": "local", - "fieldName": "text_box_placeholder" - } - ] - } - }, - "_dynamicDependencies": { - "@local.text_box_placeholder": [ - "parameter_list.placeholder" - ] - } - }, - { - "type": "button", - "name": "button_incorrect_code", - "value": "@global.save_button", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "set_local", - "args": [ - "reply_entered", - true - ], - "_raw": "click | set_local:reply_entered:true", - "_cleaned": "click | set_local:reply_entered:true" - } - ], - "hidden": "@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code", - "exclude_from_translation": true, - "_nested_name": "button_incorrect_code", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.save_button", - "matchedExpression": "@global.save_button", - "type": "global", - "fieldName": "save_button" - } - ], - "hidden": [ - { - "fullExpression": "@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - }, - { - "fullExpression": "@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code", - "matchedExpression": "@global.dev_mode_code", - "type": "global", - "fieldName": "dev_mode_code" - }, - { - "fullExpression": "@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - }, - { - "fullExpression": "@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code", - "matchedExpression": "@global.test_mode_code", - "type": "global", - "fieldName": "test_mode_code" - } - ] - }, - "_dynamicDependencies": { - "@global.save_button": [ - "value" - ], - "@local.text_box": [ - "hidden", - "hidden" - ], - "@global.dev_mode_code": [ - "hidden" - ], - "@global.test_mode_code": [ - "hidden" - ] - } - }, - { - "type": "button", - "name": "button_correct_code", - "value": "@global.save_button", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "set_local", - "args": [ - "reply_entered", - true - ], - "_raw": "click | set_local:reply_entered:true", - "_cleaned": "click | set_local:reply_entered:true" - }, - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "user_mode", - false - ], - "_raw": "click | set_field:user_mode:false", - "_cleaned": "click | set_field:user_mode:false" - }, - { - "trigger": "click", - "action_id": "emit", - "args": [ - "force_restart" - ], - "_raw": "click | emit:force_restart", - "_cleaned": "click | emit:force_restart" - } - ], - "hidden": "!(@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code)", - "exclude_from_translation": true, - "_nested_name": "button_correct_code", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.save_button", - "matchedExpression": "@global.save_button", - "type": "global", - "fieldName": "save_button" - } - ], - "hidden": [ - { - "fullExpression": "!(@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code)", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - }, - { - "fullExpression": "!(@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code)", - "matchedExpression": "@global.dev_mode_code", - "type": "global", - "fieldName": "dev_mode_code" - }, - { - "fullExpression": "!(@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code)", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - }, - { - "fullExpression": "!(@local.text_box == @global.dev_mode_code || @local.text_box == @global.test_mode_code)", - "matchedExpression": "@global.test_mode_code", - "type": "global", - "fieldName": "test_mode_code" - } - ] - }, - "_dynamicDependencies": { - "@global.save_button": [ - "value" - ], - "@local.text_box": [ - "hidden", - "hidden" - ], - "@global.dev_mode_code": [ - "hidden" - ], - "@global.test_mode_code": [ - "hidden" - ] - } - }, - { - "type": "display_group", - "name": "enter_replies", - "hidden": "!@local.reply_entered", - "parameter_list": { - "style": "column" - }, - "rows": [ - { - "type": "text", - "name": "text_2", - "value": "You have successfully entered developer mode.", - "_translations": { - "value": {} - }, - "hidden": "@fields.user_mode", - "_nested_name": "enter_replies.text_2", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "@fields.user_mode", - "matchedExpression": "@fields.user_mode", - "type": "fields", - "fieldName": "user_mode" - } - ] - }, - "_dynamicDependencies": { - "@fields.user_mode": [ - "hidden" - ] - } - }, - { - "type": "text", - "name": "text_3", - "value": "You have entered an incorrect code.", - "_translations": { - "value": {} - }, - "hidden": "!@fields.user_mode", - "_nested_name": "enter_replies.text_3", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "!@fields.user_mode", - "matchedExpression": "!@fields.user_mode", - "type": "fields", - "fieldName": "user_mode" - } - ] - }, - "_dynamicDependencies": { - "!@fields.user_mode": [ - "hidden" - ] - } - } - ], - "_nested_name": "enter_replies", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "!@local.reply_entered", - "matchedExpression": "!@local.reply_entered", - "type": "local", - "fieldName": "reply_entered" - } - ] - }, - "_dynamicDependencies": { - "!@local.reply_entered": [ - "hidden" - ] - } - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/dev_mode_exit.json b/app_data/sheets/template/dev_mode_exit.json deleted file mode 100644 index 506ad8e..0000000 --- a/app_data/sheets/template/dev_mode_exit.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "dev_mode_exit", - "status": "released", - "rows": [ - { - "type": "title", - "name": "title", - "value": "Exiting Developer Mode", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "title" - }, - { - "type": "text", - "name": "text_1", - "value": "Click the button below to go back to user mode.", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "text_1" - }, - { - "type": "button", - "name": "button_incorrect_code", - "value": "Enter user mode", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "set_field", - "args": [ - "user_mode", - true - ], - "_raw": "click | set_field:user_mode:true", - "_cleaned": "click | set_field:user_mode:true" - }, - { - "trigger": "click", - "action_id": "emit", - "args": [ - "force_restart" - ], - "_raw": "click | emit:force_restart", - "_cleaned": "click | emit:force_restart" - } - ], - "exclude_from_translation": true, - "_nested_name": "button_incorrect_code" - }, - { - "type": "display_group", - "name": "leave_reply", - "hidden": "!@fields.user_mode", - "parameter_list": { - "style": "column" - }, - "rows": [ - { - "type": "text", - "name": "text_2", - "value": "You have entered user mode.", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "leave_reply.text_2" - } - ], - "_nested_name": "leave_reply", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "!@fields.user_mode", - "matchedExpression": "!@fields.user_mode", - "type": "fields", - "fieldName": "user_mode" - } - ] - }, - "_dynamicDependencies": { - "!@fields.user_mode": [ - "hidden" - ] - } - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/language_select.json b/app_data/sheets/template/language_select.json deleted file mode 100644 index eaf9563..0000000 --- a/app_data/sheets/template/language_select.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "language_select", - "status": "released", - "rows": [ - { - "type": "title", - "name": "title", - "value": "@global.language", - "_translations": { - "value": {} - }, - "_nested_name": "title", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.language", - "matchedExpression": "@global.language", - "type": "global", - "fieldName": "language" - } - ] - }, - "_dynamicDependencies": { - "@global.language": [ - "value" - ] - } - }, - { - "name": "language_select_options", - "value": "@data.language", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "language_select_options", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.language", - "matchedExpression": "@data.language", - "type": "data", - "fieldName": "language" - } - ] - }, - "_dynamicDependencies": { - "@data.language": [ - "value" - ] - } - }, - { - "type": "radio_group", - "name": "language_select", - "value": "@fields._app_language", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "changed", - "action_id": "emit", - "args": [ - "set_language", - "this.value" - ], - "_raw": "changed | emit: set_language:@local.language_select", - "_cleaned": "changed | emit: set_language:@local.language_select" - }, - { - "trigger": "changed", - "action_id": "emit", - "args": [ - "force_reload" - ], - "_raw": "changed | emit: force_reload", - "_cleaned": "changed | emit: force_reload" - } - ], - "parameter_list": { - "answer_list": "@local.language_select_options" - }, - "_nested_name": "language_select", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields._app_language", - "matchedExpression": "@fields._app_language", - "type": "fields", - "fieldName": "_app_language" - } - ], - "action_list": { - "0": { - "_raw": [ - { - "fullExpression": "changed | emit: set_language:@local.language_select", - "matchedExpression": "@local.language_select", - "type": "local", - "fieldName": "language_select" - } - ], - "_cleaned": [ - { - "fullExpression": "changed | emit: set_language:@local.language_select", - "matchedExpression": "@local.language_select", - "type": "local", - "fieldName": "language_select" - } - ] - } - }, - "parameter_list": { - "answer_list": [ - { - "fullExpression": "@local.language_select_options", - "matchedExpression": "@local.language_select_options", - "type": "local", - "fieldName": "language_select_options" - } - ] - } - }, - "_dynamicDependencies": { - "@fields._app_language": [ - "value" - ], - "@local.language_select": [ - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@local.language_select_options": [ - "parameter_list.answer_list" - ] - } - }, - { - "type": "template", - "name": "nav_buttons", - "value": "nav_buttons", - "action_list": [ - { - "trigger": "completed", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "completed | emit: completed", - "_cleaned": "completed | emit: completed" - } - ], - "rows": [ - { - "name": "display_back", - "value": false, - "type": "set_variable", - "_nested_name": "nav_buttons.display_back" - }, - { - "name": "button_completed", - "value": "@global.next_button", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "nav_buttons.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.next_button", - "matchedExpression": "@global.next_button", - "type": "global", - "fieldName": "next_button" - } - ] - }, - "_dynamicDependencies": { - "@global.next_button": [ - "value" - ] - } - } - ], - "_nested_name": "nav_buttons" - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/legal_terms/app_menu_privacy_policy.json b/app_data/sheets/template/legal_terms/app_menu_privacy_policy.json deleted file mode 100644 index b61276d..0000000 --- a/app_data/sheets/template/legal_terms/app_menu_privacy_policy.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "app_menu_privacy_policy", - "status": "released", - "flow_subtype": "legal_terms", - "rows": [ - { - "type": "title", - "name": "title_0", - "value": "@global.privacy_policy", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "title_0", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.privacy_policy", - "matchedExpression": "@global.privacy_policy", - "type": "global", - "fieldName": "privacy_policy" - } - ] - }, - "_dynamicDependencies": { - "@global.privacy_policy": [ - "value" - ] - } - } - ], - "_xlsxPath": "templates/global/app_menu.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/legal_terms/app_menu_terms.json b/app_data/sheets/template/legal_terms/app_menu_terms.json deleted file mode 100644 index d2e2118..0000000 --- a/app_data/sheets/template/legal_terms/app_menu_terms.json +++ /dev/null @@ -1,464 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "app_menu_terms", - "status": "released", - "flow_subtype": "legal_terms", - "rows": [ - { - "type": "title", - "name": "title_0", - "value": "@global.terms_and_conditions", - "_translations": { - "value": {} - }, - "_nested_name": "title_0", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.terms_and_conditions", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value" - ] - } - }, - { - "type": "subtitle", - "name": "title_1", - "value": "1. User Agreement", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_1" - }, - { - "type": "text", - "name": "text_1_1", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_1_1" - }, - { - "type": "text", - "name": "text_1_2", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_1_2" - }, - { - "type": "subtitle", - "name": "title_2", - "value": "2. Rules of Usage", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_2" - }, - { - "type": "text", - "name": "text_2", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_2" - }, - { - "type": "text", - "name": "text_3", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_3" - }, - { - "type": "subtitle", - "name": "title_3", - "value": "3. Content Changes", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_3" - }, - { - "type": "text", - "name": "text_3_1", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_3_1" - }, - { - "type": "text", - "name": "text_3_2", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_3_2" - }, - { - "type": "subtitle", - "name": "title_4", - "value": "4. Intellectual property", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_4" - }, - { - "type": "text", - "name": "text_4", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_4" - }, - { - "type": "subtitle", - "name": "title_5", - "value": "5. Submissions", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_5" - }, - { - "type": "text", - "name": "text_5", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_5" - }, - { - "type": "subtitle", - "name": "title_6", - "value": "6. Security", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_6" - }, - { - "type": "text", - "name": "text_6_1", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_6_1" - }, - { - "type": "text", - "name": "text_6_2", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_6_2" - }, - { - "type": "subtitle", - "name": "title_7", - "value": "7. External links and resources", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_7" - }, - { - "type": "text", - "name": "text_7_1", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_7_1" - }, - { - "type": "text", - "name": "text_7_2", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_7_2" - }, - { - "name": "link_7_1_text", - "value": "Google Play Services", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "link_7_1_text" - }, - { - "type": "tile_component", - "name": "link_7_1", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "https", - "//policies.google.com/terms" - ], - "_raw": "click | go_to_url: https://policies.google.com/terms", - "_cleaned": "click | go_to_url: https://policies.google.com/terms" - } - ], - "exclude_from_translation": true, - "parameter_list": { - "first_line_text": "@local.link_7_1_text", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "_nested_name": "link_7_1", - "_dynamicFields": { - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@local.link_7_1_text", - "matchedExpression": "@local.link_7_1_text", - "type": "local", - "fieldName": "link_7_1_text" - } - ] - } - }, - "_dynamicDependencies": { - "@local.link_7_1_text": [ - "parameter_list.first_line_text" - ] - } - }, - { - "name": "link_7_2_text", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "link_7_2_text" - }, - { - "type": "tile_component", - "name": "link_7_2", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "https", - "//firebase.google.com/terms/analytics" - ], - "_raw": "click | go_to_url: https://firebase.google.com/terms/analytics", - "_cleaned": "click | go_to_url: https://firebase.google.com/terms/analytics" - } - ], - "exclude_from_translation": true, - "parameter_list": { - "first_line_text": "@local.link_7_2_text", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "_nested_name": "link_7_2", - "_dynamicFields": { - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@local.link_7_2_text", - "matchedExpression": "@local.link_7_2_text", - "type": "local", - "fieldName": "link_7_2_text" - } - ] - } - }, - "_dynamicDependencies": { - "@local.link_7_2_text": [ - "parameter_list.first_line_text" - ] - } - }, - { - "name": "link_7_3_text", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "link_7_3_text" - }, - { - "type": "subtitle", - "name": "title_8", - "value": "8. Disclaimer", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_8" - }, - { - "type": "text", - "name": "text_8", - "value": "[Placeholder text]", - "_translations": { - "value": {} - }, - "_nested_name": "text_8" - }, - { - "type": "subtitle", - "name": "title_9", - "value": "9. Changes to the @global.terms_and_conditions", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_9", - "_dynamicFields": { - "value": [ - { - "fullExpression": "9. Changes to the @global.terms_and_conditions", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value" - ] - } - }, - { - "type": "text", - "name": "text_9", - "value": "We may update our @global.terms_and_conditions from time to time. You waive your right to be notified directly of changes and are advised to review this page periodically for any updates. Your continued use of the app suggests you agree to subsequent revisions of the @global.terms_and_conditions.", - "_translations": { - "value": {} - }, - "_nested_name": "text_9", - "_dynamicFields": { - "value": [ - { - "fullExpression": "We may update our @global.terms_and_conditions from time to time. You waive your right to be notified directly of changes and are advised to review this page periodically for any updates. Your continued use of the app suggests you agree to subsequent revisions of the @global.terms_and_conditions.", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - }, - { - "fullExpression": "We may update our @global.terms_and_conditions from time to time. You waive your right to be notified directly of changes and are advised to review this page periodically for any updates. Your continued use of the app suggests you agree to subsequent revisions of the @global.terms_and_conditions.", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value", - "value" - ] - } - }, - { - "type": "subtitle", - "name": "title_10", - "value": "10. Contact Us", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "title_10" - }, - { - "type": "text", - "name": "text_10_1", - "value": "If you have any questions or suggestions about our @global.terms_and_conditions, do not hesitate to contact us at apps@idems.international.", - "_translations": { - "value": {} - }, - "_nested_name": "text_10_1", - "_dynamicFields": { - "value": [ - { - "fullExpression": "If you have any questions or suggestions about our @global.terms_and_conditions, do not hesitate to contact us at apps@idems.international.", - "matchedExpression": "@global.terms_and_conditions", - "type": "global", - "fieldName": "terms_and_conditions" - } - ] - }, - "_dynamicDependencies": { - "@global.terms_and_conditions": [ - "value" - ] - } - }, - { - "type": "text", - "name": "text_10_2", - "value": "Last updated: 1 March 2023", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "text_10_2" - } - ], - "_xlsxPath": "templates/global/app_menu.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/map_page.json b/app_data/sheets/template/map_page.json index cc5d138..9b459c6 100644 --- a/app_data/sheets/template/map_page.json +++ b/app_data/sheets/template/map_page.json @@ -5,39 +5,60 @@ "rows": [ { "type": "title", - "value": "Example Map", + "value": "Map of Kenya", "_translations": { "value": {} }, "name": "title_2", "_nested_name": "title_2" }, + { + "name": "extent_kenya", + "value": "3773864.3, -520876.1, 4661891.1, 636925.3", + "_translations": { + "value": {} + }, + "type": "set_variable", + "_nested_name": "extent_kenya" + }, { "type": "map", "parameter_list": { - "layers": "@data.example_map_data" + "layers": "@data.map_data", + "extent": "@local.extent_kenya" }, "style_list": [ "width: 100%", "height: 200px" ], - "name": "map_3", - "_nested_name": "map_3", + "name": "map_4", + "_nested_name": "map_4", "_dynamicFields": { "parameter_list": { "layers": [ { - "fullExpression": "@data.example_map_data", - "matchedExpression": "@data.example_map_data", + "fullExpression": "@data.map_data", + "matchedExpression": "@data.map_data", "type": "data", - "fieldName": "example_map_data" + "fieldName": "map_data" + } + ], + "extent": [ + { + "fullExpression": "@local.extent_kenya", + "matchedExpression": "@local.extent_kenya", + "type": "local", + "fieldName": "extent_kenya" } ] } }, "_dynamicDependencies": { - "@data.example_map_data": [ + "@data.map_data": [ "parameter_list.layers" + ], + "@local.extent_kenya": [ + "parameter_list.extent" ] } } diff --git a/app_data/sheets/template/nav_buttons.json b/app_data/sheets/template/nav_buttons.json deleted file mode 100644 index 8dbb467..0000000 --- a/app_data/sheets/template/nav_buttons.json +++ /dev/null @@ -1,219 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "nav_buttons", - "status": "released", - "rows": [ - { - "name": "use_completed_chevron", - "value": false, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "use_completed_chevron" - }, - { - "name": "use_uncompleted_chevron", - "value": true, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "use_uncompleted_chevron" - }, - { - "name": "display_back", - "value": true, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "display_back" - }, - { - "type": "display_group", - "name": "buttons", - "parameter_list": { - "style": "navigation" - }, - "rows": [ - { - "type": "round_button", - "name": "button_uncompleted_chevron", - "action_list": [ - { - "trigger": "click", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "click | emit:uncompleted", - "_cleaned": "click | emit:uncompleted" - } - ], - "hidden": "(!@local.use_uncompleted_chevron) || (!@local.display_back)", - "parameter_list": { - "icon_src": "chevron-back", - "style": "navigation" - }, - "_nested_name": "buttons.button_uncompleted_chevron", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "(!@local.use_uncompleted_chevron) || (!@local.display_back)", - "matchedExpression": "!@local.use_uncompleted_chevron", - "type": "local", - "fieldName": "use_uncompleted_chevron" - }, - { - "fullExpression": "(!@local.use_uncompleted_chevron) || (!@local.display_back)", - "matchedExpression": "!@local.display_back", - "type": "local", - "fieldName": "display_back" - } - ] - }, - "_dynamicDependencies": { - "!@local.use_uncompleted_chevron": [ - "hidden" - ], - "!@local.display_back": [ - "hidden" - ] - } - }, - { - "type": "round_button", - "name": "button_uncompleted", - "action_list": [ - { - "trigger": "click", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "click | emit:uncompleted", - "_cleaned": "click | emit:uncompleted" - } - ], - "hidden": "@local.use_uncompleted_chevron || (!@local.display_back)", - "parameter_list": { - "icon_src": "caret-back", - "style": "navigation" - }, - "_nested_name": "buttons.button_uncompleted", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "@local.use_uncompleted_chevron || (!@local.display_back)", - "matchedExpression": "@local.use_uncompleted_chevron", - "type": "local", - "fieldName": "use_uncompleted_chevron" - }, - { - "fullExpression": "@local.use_uncompleted_chevron || (!@local.display_back)", - "matchedExpression": "!@local.display_back", - "type": "local", - "fieldName": "display_back" - } - ] - }, - "_dynamicDependencies": { - "@local.use_uncompleted_chevron": [ - "hidden" - ], - "!@local.display_back": [ - "hidden" - ] - } - }, - { - "type": "button", - "name": "button_completed", - "value": "@global.next_button", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "click | emit:completed", - "_cleaned": "click | emit:completed" - } - ], - "hidden": "@local.use_completed_chevron", - "parameter_list": { - "style": "navigation", - "text_align": "center" - }, - "style_list": [ - "flex:1" - ], - "_nested_name": "buttons.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.next_button", - "matchedExpression": "@global.next_button", - "type": "global", - "fieldName": "next_button" - } - ], - "hidden": [ - { - "fullExpression": "@local.use_completed_chevron", - "matchedExpression": "@local.use_completed_chevron", - "type": "local", - "fieldName": "use_completed_chevron" - } - ] - }, - "_dynamicDependencies": { - "@global.next_button": [ - "value" - ], - "@local.use_completed_chevron": [ - "hidden" - ] - } - }, - { - "type": "round_button", - "name": "button_completed_chevron", - "action_list": [ - { - "trigger": "click", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "click | emit:completed", - "_cleaned": "click | emit:completed" - } - ], - "hidden": "!@local.use_completed_chevron", - "parameter_list": { - "icon_src": "chevron-forward", - "style": "navigation" - }, - "_nested_name": "buttons.button_completed_chevron", - "_dynamicFields": { - "hidden": [ - { - "fullExpression": "!@local.use_completed_chevron", - "matchedExpression": "!@local.use_completed_chevron", - "type": "local", - "fieldName": "use_completed_chevron" - } - ] - }, - "_dynamicDependencies": { - "!@local.use_completed_chevron": [ - "hidden" - ] - } - } - ], - "_nested_name": "buttons" - } - ], - "_xlsxPath": "templates/global/navigation_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/reference_page.json b/app_data/sheets/template/reference_page.json deleted file mode 100644 index 5d01525..0000000 --- a/app_data/sheets/template/reference_page.json +++ /dev/null @@ -1,956 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "reference_page", - "status": "released", - "rows": [ - { - "type": "title", - "name": "title", - "value": "Acknowledgement", - "_translations": { - "value": {} - }, - "_nested_name": "title" - }, - { - "type": "text", - "name": "text", - "value": "The @global.app_name team would firstly like to acknowledge and show appreciation for the inputs of colleagues from INNODEMS, Kakamega, Kenya in shaping the content and design of this App.", - "_translations": { - "value": {} - }, - "_nested_name": "text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "The @global.app_name team would firstly like to acknowledge and show appreciation for the inputs of colleagues from INNODEMS, Kakamega, Kenya in shaping the content and design of this App.", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "title", - "name": "title", - "value": "References", - "_translations": { - "value": {} - }, - "_nested_name": "title" - }, - { - "type": "text", - "name": "text", - "value": "Section 1", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "text" - }, - { - "type": "text", - "name": "text", - "value": "The content of the @global.app_name is driven by the primary source material outlined below:", - "_translations": { - "value": {} - }, - "_nested_name": "text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "The content of the @global.app_name is driven by the primary source material outlined below:", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "items", - "value": "@data.reference_sections", - "rows": [ - { - "type": "display_group", - "name": "section_1_dg_@item.id", - "parameter_list": { - "style": "column" - }, - "condition": "@item.relevant_for_section_1", - "rows": [ - { - "type": "text", - "name": "title_@item.id", - "value": "@item.title", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "items_7.section_1_dg_@item.id.title_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "title_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "value": [ - { - "fullExpression": "@item.title", - "matchedExpression": "@item.title", - "type": "item", - "fieldName": "title" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.title_@item.id", - "matchedExpression": "@item.id.title_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_7.section_1_dg_@item.id.title_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.title": [ - "value" - ], - "@item.id.title_": [ - "_nested_name" - ] - } - }, - { - "name": "this_section", - "value": "@item.id", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "items_7.section_1_dg_@item.id.this_section", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.this_section", - "matchedExpression": "@item.id.this_section", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "value" - ], - "@item.id.this_section": [ - "_nested_name" - ] - } - }, - { - "type": "items", - "value": "@data.section_1_references", - "rows": [ - { - "type": "display_group", - "name": "references_@item.id", - "parameter_list": { - "style": "column" - }, - "condition": "@item.reference_section == @local.this_section", - "rows": [ - { - "type": "text", - "name": "reference_text_@item.id", - "value": "@item.reference", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference_text_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "reference_text_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "value": [ - { - "fullExpression": "@item.reference", - "matchedExpression": "@item.reference", - "type": "item", - "fieldName": "reference" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id.items_3.references_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id.reference_text_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.reference": [ - "value" - ], - "@item.id.items_3.references_": [ - "_nested_name" - ], - "@item.id.reference_text_": [ - "_nested_name" - ] - } - }, - { - "type": "tile_component", - "name": "reference", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "@item.reference_link" - ], - "_raw": "click | go_to_url: @item.reference_link", - "_cleaned": "click | go_to_url: @item.reference_link" - } - ], - "parameter_list": { - "first_line_text": "@item.reference_link_title", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "condition": false, - "exclude_from_translation": true, - "_nested_name": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "0": [ - { - "fullExpression": "@item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ] - }, - "_raw": [ - { - "fullExpression": "click | go_to_url: @item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ], - "_cleaned": [ - { - "fullExpression": "click | go_to_url: @item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ] - } - }, - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@item.reference_link_title", - "matchedExpression": "@item.reference_link_title", - "type": "item", - "fieldName": "reference_link_title" - } - ] - }, - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference", - "matchedExpression": "@item.id.items_3.references_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id.reference", - "matchedExpression": "@item.id.reference", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.reference_link": [ - "action_list.0.args.0", - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@item.reference_link_title": [ - "parameter_list.first_line_text" - ], - "@item.id.items_3.references_": [ - "_nested_name" - ], - "@item.id.reference": [ - "_nested_name" - ] - } - } - ], - "_nested_name": "items_7.section_1_dg_@item.id.items_3.references_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "references_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "condition": [ - { - "fullExpression": "@item.reference_section == @local.this_section", - "matchedExpression": "@item.reference_section", - "type": "item", - "fieldName": "reference_section" - }, - { - "fullExpression": "@item.reference_section == @local.this_section", - "matchedExpression": "@local.this_section", - "type": "local", - "fieldName": "this_section" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id", - "matchedExpression": "@item.id.items_3.references_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3.references_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.reference_section": [ - "condition" - ], - "@local.this_section": [ - "condition" - ], - "@item.id.items_3.references_": [ - "_nested_name" - ] - } - } - ], - "name": "items_3", - "_nested_name": "items_7.section_1_dg_@item.id.items_3", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.section_1_references", - "matchedExpression": "@data.section_1_references", - "type": "data", - "fieldName": "section_1_references" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id.items_3", - "matchedExpression": "@item.id.items_3", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@data.section_1_references": [ - "value" - ], - "@item.id.items_3": [ - "_nested_name" - ] - } - } - ], - "_nested_name": "items_7.section_1_dg_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "section_1_dg_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "condition": [ - { - "fullExpression": "@item.relevant_for_section_1", - "matchedExpression": "@item.relevant_for_section_1", - "type": "item", - "fieldName": "relevant_for_section_1" - } - ], - "_nested_name": [ - { - "fullExpression": "items_7.section_1_dg_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.relevant_for_section_1": [ - "condition" - ] - } - } - ], - "name": "items_7", - "_nested_name": "items_7", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.reference_sections", - "matchedExpression": "@data.reference_sections", - "type": "data", - "fieldName": "reference_sections" - } - ] - }, - "_dynamicDependencies": { - "@data.reference_sections": [ - "value" - ] - } - }, - { - "type": "text", - "name": "text", - "value": "Section 2", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "text" - }, - { - "type": "text", - "name": "text", - "value": "Additional sources consulted in the development of content for the @global.app_name include the below:", - "_translations": { - "value": {} - }, - "_nested_name": "text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "Additional sources consulted in the development of content for the @global.app_name include the below:", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "items", - "value": "@data.reference_sections", - "rows": [ - { - "type": "display_group", - "name": "section_2_dg_@item.id", - "parameter_list": { - "style": "column" - }, - "condition": "@item.relevant_for_section_2", - "rows": [ - { - "type": "text", - "name": "title_@item.id", - "value": "@item.title", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "items_11.section_2_dg_@item.id.title_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "title_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "value": [ - { - "fullExpression": "@item.title", - "matchedExpression": "@item.title", - "type": "item", - "fieldName": "title" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.title_@item.id", - "matchedExpression": "@item.id.title_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_11.section_2_dg_@item.id.title_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.title": [ - "value" - ], - "@item.id.title_": [ - "_nested_name" - ] - } - }, - { - "name": "this_section", - "value": "@item.id", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "items_11.section_2_dg_@item.id.this_section", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.this_section", - "matchedExpression": "@item.id.this_section", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "value" - ], - "@item.id.this_section": [ - "_nested_name" - ] - } - }, - { - "type": "items", - "value": "@data.section_2_references", - "rows": [ - { - "type": "display_group", - "name": "references_1_@item.id", - "parameter_list": { - "style": "column" - }, - "condition": "@item.reference_section == @local.this_section", - "rows": [ - { - "type": "text", - "name": "reference_text_@item.id", - "value": "@item.reference", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference_text_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "reference_text_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "value": [ - { - "fullExpression": "@item.reference", - "matchedExpression": "@item.reference", - "type": "item", - "fieldName": "reference" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id.items_3.references_1_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id.reference_text_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference_text_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.reference": [ - "value" - ], - "@item.id.items_3.references_1_": [ - "_nested_name" - ], - "@item.id.reference_text_": [ - "_nested_name" - ] - } - }, - { - "type": "tile_component", - "name": "reference", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "@item.reference_link" - ], - "_raw": "click | go_to_url: @item.reference_link", - "_cleaned": "click | go_to_url: @item.reference_link" - } - ], - "parameter_list": { - "first_line_text": "@item.reference_link_title", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "condition": false, - "exclude_from_translation": true, - "_nested_name": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "0": [ - { - "fullExpression": "@item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ] - }, - "_raw": [ - { - "fullExpression": "click | go_to_url: @item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ], - "_cleaned": [ - { - "fullExpression": "click | go_to_url: @item.reference_link", - "matchedExpression": "@item.reference_link", - "type": "item", - "fieldName": "reference_link" - } - ] - } - }, - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@item.reference_link_title", - "matchedExpression": "@item.reference_link_title", - "type": "item", - "fieldName": "reference_link_title" - } - ] - }, - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference", - "matchedExpression": "@item.id.items_3.references_1_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id.reference", - "matchedExpression": "@item.id.reference", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.reference_link": [ - "action_list.0.args.0", - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@item.reference_link_title": [ - "parameter_list.first_line_text" - ], - "@item.id.items_3.references_1_": [ - "_nested_name" - ], - "@item.id.reference": [ - "_nested_name" - ] - } - } - ], - "_nested_name": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "references_1_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "condition": [ - { - "fullExpression": "@item.reference_section == @local.this_section", - "matchedExpression": "@item.reference_section", - "type": "item", - "fieldName": "reference_section" - }, - { - "fullExpression": "@item.reference_section == @local.this_section", - "matchedExpression": "@local.this_section", - "type": "local", - "fieldName": "this_section" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id", - "matchedExpression": "@item.id.items_3.references_1_", - "type": "item", - "fieldName": "id" - }, - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3.references_1_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.reference_section": [ - "condition" - ], - "@local.this_section": [ - "condition" - ], - "@item.id.items_3.references_1_": [ - "_nested_name" - ] - } - } - ], - "name": "items_3", - "_nested_name": "items_11.section_2_dg_@item.id.items_3", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.section_2_references", - "matchedExpression": "@data.section_2_references", - "type": "data", - "fieldName": "section_2_references" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id.items_3", - "matchedExpression": "@item.id.items_3", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@data.section_2_references": [ - "value" - ], - "@item.id.items_3": [ - "_nested_name" - ] - } - } - ], - "_nested_name": "items_11.section_2_dg_@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "section_2_dg_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "condition": [ - { - "fullExpression": "@item.relevant_for_section_2", - "matchedExpression": "@item.relevant_for_section_2", - "type": "item", - "fieldName": "relevant_for_section_2" - } - ], - "_nested_name": [ - { - "fullExpression": "items_11.section_2_dg_@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.relevant_for_section_2": [ - "condition" - ] - } - } - ], - "name": "items_11", - "_nested_name": "items_11", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.reference_sections", - "matchedExpression": "@data.reference_sections", - "type": "data", - "fieldName": "reference_sections" - } - ] - }, - "_dynamicDependencies": { - "@data.reference_sections": [ - "value" - ] - } - } - ], - "_xlsxPath": "templates/global/app_menu.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/reference_popup.json b/app_data/sheets/template/reference_popup.json deleted file mode 100644 index eb4aac7..0000000 --- a/app_data/sheets/template/reference_popup.json +++ /dev/null @@ -1,426 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "reference_popup", - "status": "released", - "rows": [ - { - "name": "module_id", - "value": "@fields.current_module", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "module_id", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields.current_module", - "matchedExpression": "@fields.current_module", - "type": "fields", - "fieldName": "current_module" - } - ] - }, - "_dynamicDependencies": { - "@fields.current_module": [ - "value" - ] - } - }, - { - "name": "tool_id", - "value": "@fields.current_tool", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "tool_id", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields.current_tool", - "matchedExpression": "@fields.current_tool", - "type": "fields", - "fieldName": "current_tool" - } - ] - }, - "_dynamicDependencies": { - "@fields.current_tool": [ - "value" - ] - } - }, - { - "name": "tool", - "value": "@local.module_id.@local.tool_id", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "tool", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.module_id.@local.tool_id", - "matchedExpression": "@local.module_id", - "type": "local", - "fieldName": "module_id" - }, - { - "fullExpression": "@local.module_id.@local.tool_id", - "matchedExpression": "@local.tool_id", - "type": "local", - "fieldName": "tool_id" - } - ] - }, - "_dynamicDependencies": { - "@local.module_id": [ - "value" - ], - "@local.tool_id": [ - "value" - ] - } - }, - { - "name": "tool_data", - "value": "@data.@local.tool", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "tool_data", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.@local.tool", - "matchedExpression": "@local.tool", - "type": "local", - "fieldName": "tool" - } - ] - }, - "_dynamicDependencies": { - "@local.tool": [ - "value" - ] - } - }, - { - "name": "url_description", - "value": "@local.tool_data.reference_link_title", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "url_description", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.tool_data.reference_link_title", - "matchedExpression": "@local.tool_data.reference_link_title", - "type": "local", - "fieldName": "tool_data" - } - ] - }, - "_dynamicDependencies": { - "@local.tool_data.reference_link_title": [ - "value" - ] - } - }, - { - "name": "url", - "value": "@local.tool_data.reference_link", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "url", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.tool_data.reference_link", - "matchedExpression": "@local.tool_data.reference_link", - "type": "local", - "fieldName": "tool_data" - } - ] - }, - "_dynamicDependencies": { - "@local.tool_data.reference_link": [ - "value" - ] - } - }, - { - "name": "url_2_description", - "value": "@local.tool_data.reference_link_title_2", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "url_2_description", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.tool_data.reference_link_title_2", - "matchedExpression": "@local.tool_data.reference_link_title_2", - "type": "local", - "fieldName": "tool_data" - } - ] - }, - "_dynamicDependencies": { - "@local.tool_data.reference_link_title_2": [ - "value" - ] - } - }, - { - "name": "url_2", - "value": "@local.tool_data.reference_link_2", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "url_2", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.tool_data.reference_link_2", - "matchedExpression": "@local.tool_data.reference_link_2", - "type": "local", - "fieldName": "tool_data" - } - ] - }, - "_dynamicDependencies": { - "@local.tool_data.reference_link_2": [ - "value" - ] - } - }, - { - "type": "text", - "name": "reference_text", - "value": "@local.tool_data.reference", - "_translations": { - "value": {} - }, - "condition": "!!@local.@local.tool_data.reference", - "exclude_from_translation": true, - "_nested_name": "reference_text", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.tool_data.reference", - "matchedExpression": "@local.tool_data.reference", - "type": "local", - "fieldName": "tool_data" - } - ], - "condition": [ - { - "fullExpression": "!!@local.@local.tool_data.reference", - "matchedExpression": "@local.tool_data.reference", - "type": "local", - "fieldName": "tool_data" - } - ] - }, - "_dynamicDependencies": { - "@local.tool_data.reference": [ - "value", - "condition" - ] - } - }, - { - "type": "tile_component", - "name": "reference_1", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "@local.url" - ], - "_raw": "click | go_to_url: @local.url", - "_cleaned": "click | go_to_url: @local.url" - } - ], - "parameter_list": { - "first_line_text": "@local.url_description", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "condition": "!!@local.url", - "exclude_from_translation": true, - "_nested_name": "reference_1", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "0": [ - { - "fullExpression": "@local.url", - "matchedExpression": "@local.url", - "type": "local", - "fieldName": "url" - } - ] - }, - "_raw": [ - { - "fullExpression": "click | go_to_url: @local.url", - "matchedExpression": "@local.url", - "type": "local", - "fieldName": "url" - } - ], - "_cleaned": [ - { - "fullExpression": "click | go_to_url: @local.url", - "matchedExpression": "@local.url", - "type": "local", - "fieldName": "url" - } - ] - } - }, - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@local.url_description", - "matchedExpression": "@local.url_description", - "type": "local", - "fieldName": "url_description" - } - ] - }, - "condition": [ - { - "fullExpression": "!!@local.url", - "matchedExpression": "!@local.url", - "type": "local", - "fieldName": "url" - } - ] - }, - "_dynamicDependencies": { - "@local.url": [ - "action_list.0.args.0", - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@local.url_description": [ - "parameter_list.first_line_text" - ], - "!@local.url": [ - "condition" - ] - } - }, - { - "type": "tile_component", - "name": "reference_2", - "action_list": [ - { - "trigger": "click", - "action_id": "go_to_url", - "args": [ - "@local.url_2" - ], - "_raw": "click | go_to_url: @local.url_2", - "_cleaned": "click | go_to_url: @local.url_2" - } - ], - "parameter_list": { - "first_line_text": "@local.url_2_description", - "left_icon_src": "globe-outline", - "style": "button_tile", - "icon_src": "chevron-forward-outline" - }, - "condition": "!!@local.url_2", - "exclude_from_translation": true, - "_nested_name": "reference_2", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "0": [ - { - "fullExpression": "@local.url_2", - "matchedExpression": "@local.url_2", - "type": "local", - "fieldName": "url_2" - } - ] - }, - "_raw": [ - { - "fullExpression": "click | go_to_url: @local.url_2", - "matchedExpression": "@local.url_2", - "type": "local", - "fieldName": "url_2" - } - ], - "_cleaned": [ - { - "fullExpression": "click | go_to_url: @local.url_2", - "matchedExpression": "@local.url_2", - "type": "local", - "fieldName": "url_2" - } - ] - } - }, - "parameter_list": { - "first_line_text": [ - { - "fullExpression": "@local.url_2_description", - "matchedExpression": "@local.url_2_description", - "type": "local", - "fieldName": "url_2_description" - } - ] - }, - "condition": [ - { - "fullExpression": "!!@local.url_2", - "matchedExpression": "!@local.url_2", - "type": "local", - "fieldName": "url_2" - } - ] - }, - "_dynamicDependencies": { - "@local.url_2": [ - "action_list.0.args.0", - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@local.url_2_description": [ - "parameter_list.first_line_text" - ], - "!@local.url_2": [ - "condition" - ] - } - } - ], - "_xlsxPath": "templates/global/app_menu.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/reset_app.json b/app_data/sheets/template/reset_app.json deleted file mode 100644 index 92d9ce5..0000000 --- a/app_data/sheets/template/reset_app.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "reset_app", - "status": "released", - "rows": [ - { - "type": "title", - "name": "title", - "value": "Reset App", - "_translations": { - "value": {} - }, - "_nested_name": "title" - }, - { - "type": "text", - "name": "text_1", - "value": "By clicking in the button below you will reset the app to its initial settings. \n\nThis means that all your progress and usage data will be deleted and your app will work as if it was just installed for the first time.\n\nNOTE: Resetting the app is permanent and you will not be able to recover any information.", - "_translations": { - "value": {} - }, - "_nested_name": "text_1" - }, - { - "type": "button", - "name": "button_1", - "value": "Reset App", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "click", - "action_id": "reset_app", - "args": [], - "_raw": "click | reset_app", - "_cleaned": "click | reset_app" - } - ], - "_nested_name": "button_1" - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/splash_partners.json b/app_data/sheets/template/splash_partners.json deleted file mode 100644 index 82f8b07..0000000 --- a/app_data/sheets/template/splash_partners.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "splash_partners", - "status": "released", - "rows": [ - { - "type": "text", - "value": "@global.app_name is brought to you by", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "large center" - }, - "name": "text_2", - "_nested_name": "text_2", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.app_name is brought to you by", - "matchedExpression": "@global.app_name", - "type": "global", - "fieldName": "app_name" - } - ] - }, - "_dynamicDependencies": { - "@global.app_name": [ - "value" - ] - } - }, - { - "type": "display_group", - "name": "global_partners", - "parameter_list": { - "style": "two_columns_images grid-spacing-sm" - }, - "rows": [ - { - "type": "items", - "name": "loop_partners", - "value": "@data.partners", - "rows": [ - { - "type": "image", - "name": "@item.id", - "value": "@item.image_asset", - "_translations": { - "value": {} - }, - "condition": "@item.splash_page == 1", - "_nested_name": "global_partners.loop_partners.@item.id", - "_dynamicFields": { - "name": [ - { - "fullExpression": "@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ], - "value": [ - { - "fullExpression": "@item.image_asset", - "matchedExpression": "@item.image_asset", - "type": "item", - "fieldName": "image_asset" - } - ], - "condition": [ - { - "fullExpression": "@item.splash_page == 1", - "matchedExpression": "@item.splash_page", - "type": "item", - "fieldName": "splash_page" - } - ], - "_nested_name": [ - { - "fullExpression": "global_partners.loop_partners.@item.id", - "matchedExpression": "@item.id", - "type": "item", - "fieldName": "id" - } - ] - }, - "_dynamicDependencies": { - "@item.id": [ - "name", - "_nested_name" - ], - "@item.image_asset": [ - "value" - ], - "@item.splash_page": [ - "condition" - ] - } - } - ], - "_nested_name": "global_partners.loop_partners", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@data.partners", - "matchedExpression": "@data.partners", - "type": "data", - "fieldName": "partners" - } - ] - }, - "_dynamicDependencies": { - "@data.partners": [ - "value" - ] - } - } - ], - "_nested_name": "global_partners" - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/splash_screens.json b/app_data/sheets/template/splash_screens.json deleted file mode 100644 index a53302b..0000000 --- a/app_data/sheets/template/splash_screens.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "splash_screens", - "status": "released", - "rows": [ - { - "name": "number", - "value": 210, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "number" - }, - { - "name": "skip_text", - "value": "Skip intro", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "skip_text" - }, - { - "type": "animated_slides", - "action_list": [ - { - "trigger": "completed", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "completed | emit:completed", - "_cleaned": "completed | emit:completed" - }, - { - "trigger": "uncompleted", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "uncompleted | emit:uncompleted", - "_cleaned": "uncompleted | emit:uncompleted" - } - ], - "parameter_list": { - "skip_text": "@local.skip_text", - "style": "light" - }, - "rows": [ - { - "type": "animated_section", - "parameter_list": { - "duration": "3.5" - }, - "rows": [ - { - "type": "image", - "name": "image", - "value": "essential_tools/mod1_fuzzy_circle.svg", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "_nested_name": "animated_slides_4.animated_section_1.image" - }, - { - "type": "text", - "name": "slogan", - "value": "Safe Water, Sanitation and Hygiene (WASH) is beneficial for you and your community", - "_translations": { - "value": {} - }, - "parameter_list": { - "text_align": "center" - }, - "_nested_name": "animated_slides_4.animated_section_1.slogan" - } - ], - "name": "animated_section_1", - "_nested_name": "animated_slides_4.animated_section_1" - }, - { - "type": "animated_section", - "parameter_list": { - "duration": "4" - }, - "rows": [ - { - "type": "template", - "name": "splash_partners", - "value": "splash_partners", - "rows": [], - "_nested_name": "animated_slides_4.animated_section_2.splash_partners" - } - ], - "name": "animated_section_2", - "_nested_name": "animated_slides_4.animated_section_2" - } - ], - "name": "animated_slides_4", - "_nested_name": "animated_slides_4", - "_dynamicFields": { - "parameter_list": { - "skip_text": [ - { - "fullExpression": "@local.skip_text", - "matchedExpression": "@local.skip_text", - "type": "local", - "fieldName": "skip_text" - } - ] - } - }, - "_dynamicDependencies": { - "@local.skip_text": [ - "parameter_list.skip_text" - ] - } - } - ], - "_xlsxPath": "templates/global/app_launch_templates.xlsx" -} \ No newline at end of file diff --git a/app_data/sheets/template/user_info.json b/app_data/sheets/template/user_info.json deleted file mode 100644 index 5b445aa..0000000 --- a/app_data/sheets/template/user_info.json +++ /dev/null @@ -1,615 +0,0 @@ -{ - "flow_type": "template", - "flow_name": "user_info", - "status": "released", - "rows": [ - { - "type": "title", - "name": "title", - "value": "@global.user_info", - "_translations": { - "value": {} - }, - "_nested_name": "title", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.user_info", - "matchedExpression": "@global.user_info", - "type": "global", - "fieldName": "user_info" - } - ] - }, - "_dynamicDependencies": { - "@global.user_info": [ - "value" - ] - } - }, - { - "type": "text", - "name": "name", - "value": "What is your name or nickname?", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "name" - }, - { - "name": "user_name", - "value": "@fields.user_name", - "_translations": { - "value": {} - }, - "type": "set_variable", - "_nested_name": "user_name", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields.user_name", - "matchedExpression": "@fields.user_name", - "type": "fields", - "fieldName": "user_name" - } - ] - }, - "_dynamicDependencies": { - "@fields.user_name": [ - "value" - ] - } - }, - { - "type": "text_box", - "name": "text_box", - "value": "@local.user_name", - "_translations": { - "value": {} - }, - "condition": "@local.user_name != @global.user_name_default", - "parameter_list": { - "placeholder": "@global.tap_and_type" - }, - "_nested_name": "text_box", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@local.user_name", - "matchedExpression": "@local.user_name", - "type": "local", - "fieldName": "user_name" - } - ], - "condition": [ - { - "fullExpression": "@local.user_name != @global.user_name_default", - "matchedExpression": "@local.user_name", - "type": "local", - "fieldName": "user_name" - }, - { - "fullExpression": "@local.user_name != @global.user_name_default", - "matchedExpression": "@global.user_name_default", - "type": "global", - "fieldName": "user_name_default" - } - ], - "parameter_list": { - "placeholder": [ - { - "fullExpression": "@global.tap_and_type", - "matchedExpression": "@global.tap_and_type", - "type": "global", - "fieldName": "tap_and_type" - } - ] - } - }, - "_dynamicDependencies": { - "@local.user_name": [ - "value", - "condition" - ], - "@global.user_name_default": [ - "condition" - ], - "@global.tap_and_type": [ - "parameter_list.placeholder" - ] - } - }, - { - "type": "text_box", - "name": "text_box", - "condition": "@local.user_name == @global.user_name_default", - "parameter_list": { - "placeholder": "@global.tap_and_type" - }, - "_nested_name": "text_box", - "_dynamicFields": { - "condition": [ - { - "fullExpression": "@local.user_name == @global.user_name_default", - "matchedExpression": "@local.user_name", - "type": "local", - "fieldName": "user_name" - }, - { - "fullExpression": "@local.user_name == @global.user_name_default", - "matchedExpression": "@global.user_name_default", - "type": "global", - "fieldName": "user_name_default" - } - ], - "parameter_list": { - "placeholder": [ - { - "fullExpression": "@global.tap_and_type", - "matchedExpression": "@global.tap_and_type", - "type": "global", - "fieldName": "tap_and_type" - } - ] - } - }, - "_dynamicDependencies": { - "@local.user_name": [ - "condition" - ], - "@global.user_name_default": [ - "condition" - ], - "@global.tap_and_type": [ - "parameter_list.placeholder" - ] - } - }, - { - "type": "text", - "name": "gender", - "value": "What is your gender?", - "_translations": { - "value": {} - }, - "parameter_list": { - "style": "emphasised" - }, - "_nested_name": "gender" - }, - { - "name": "answer_list", - "value": [ - { - "name": "male", - "text": "Man" - }, - { - "name": "female", - "text": "Woman" - }, - { - "name": "prefer_not_to_say", - "text": "Prefer not to say" - } - ], - "type": "set_variable", - "_nested_name": "answer_list" - }, - { - "type": "combo_box", - "name": "combo_box", - "value": "@fields.user_gender", - "_translations": { - "value": {} - }, - "action_list": [ - { - "trigger": "changed", - "action_id": "set_field", - "args": [ - "user_gender", - "this.value" - ], - "_raw": "changed | set_field: user_gender: @local.combo_box", - "_cleaned": "changed | set_field: user_gender: @local.combo_box" - } - ], - "parameter_list": { - "answer_list": "@local.answer_list", - "placeholder": "@global.tap_and_choose", - "input_allowed": "false" - }, - "_nested_name": "combo_box", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@fields.user_gender", - "matchedExpression": "@fields.user_gender", - "type": "fields", - "fieldName": "user_gender" - } - ], - "action_list": { - "0": { - "_raw": [ - { - "fullExpression": "changed | set_field: user_gender: @local.combo_box", - "matchedExpression": "@local.combo_box", - "type": "local", - "fieldName": "combo_box" - } - ], - "_cleaned": [ - { - "fullExpression": "changed | set_field: user_gender: @local.combo_box", - "matchedExpression": "@local.combo_box", - "type": "local", - "fieldName": "combo_box" - } - ] - } - }, - "parameter_list": { - "answer_list": [ - { - "fullExpression": "@local.answer_list", - "matchedExpression": "@local.answer_list", - "type": "local", - "fieldName": "answer_list" - } - ], - "placeholder": [ - { - "fullExpression": "@global.tap_and_choose", - "matchedExpression": "@global.tap_and_choose", - "type": "global", - "fieldName": "tap_and_choose" - } - ] - } - }, - "_dynamicDependencies": { - "@fields.user_gender": [ - "value" - ], - "@local.combo_box": [ - "action_list.0._raw", - "action_list.0._cleaned" - ], - "@local.answer_list": [ - "parameter_list.answer_list" - ], - "@global.tap_and_choose": [ - "parameter_list.placeholder" - ] - } - }, - { - "type": "template", - "name": "nav_buttons", - "value": "nav_buttons", - "action_list": [ - { - "trigger": "completed", - "action_id": "set_field", - "args": [ - "user_name", - "`@global.user_name_default`" - ], - "_raw": "completed | set_field: user_name:`@global.user_name_default`", - "_cleaned": "completed | set_field: user_name:`@global.user_name_default`" - }, - { - "trigger": "uncompleted", - "action_id": "set_field", - "args": [ - "user_name", - "`@global.user_name_default`" - ], - "_raw": "uncompleted | set_field: user_name:`@global.user_name_default`", - "_cleaned": "uncompleted | set_field: user_name:`@global.user_name_default`" - }, - { - "trigger": "completed", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "completed | emit:completed", - "_cleaned": "completed | emit:completed" - }, - { - "trigger": "uncompleted", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "uncompleted | emit:uncompleted", - "_cleaned": "uncompleted | emit:uncompleted" - } - ], - "condition": "!@local.text_box", - "rows": [ - { - "name": "display_back", - "value": false, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "nav_buttons.display_back" - }, - { - "name": "button_completed", - "value": "@global.save_button", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "nav_buttons.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.save_button", - "matchedExpression": "@global.save_button", - "type": "global", - "fieldName": "save_button" - } - ] - }, - "_dynamicDependencies": { - "@global.save_button": [ - "value" - ] - } - } - ], - "_nested_name": "nav_buttons", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "1": [ - { - "fullExpression": "`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ] - }, - "_raw": [ - { - "fullExpression": "completed | set_field: user_name:`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ], - "_cleaned": [ - { - "fullExpression": "completed | set_field: user_name:`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ] - }, - "1": { - "args": { - "1": [ - { - "fullExpression": "`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ] - }, - "_raw": [ - { - "fullExpression": "uncompleted | set_field: user_name:`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ], - "_cleaned": [ - { - "fullExpression": "uncompleted | set_field: user_name:`@global.user_name_default`", - "matchedExpression": "`@global.user_name_default", - "type": "raw", - "fieldName": "user_name_default" - } - ] - } - }, - "condition": [ - { - "fullExpression": "!@local.text_box", - "matchedExpression": "!@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - }, - "_dynamicDependencies": { - "`@global.user_name_default": [ - "action_list.0.args.1", - "action_list.0._raw", - "action_list.0._cleaned", - "action_list.1.args.1", - "action_list.1._raw", - "action_list.1._cleaned" - ], - "!@local.text_box": [ - "condition" - ] - } - }, - { - "type": "template", - "name": "nav_buttons", - "value": "nav_buttons", - "action_list": [ - { - "trigger": "completed", - "action_id": "set_field", - "args": [ - "user_name", - "@local.text_box" - ], - "_raw": "completed | set_field: user_name: @local.text_box", - "_cleaned": "completed | set_field: user_name: @local.text_box" - }, - { - "trigger": "uncompleted", - "action_id": "set_field", - "args": [ - "user_name", - "@local.text_box" - ], - "_raw": "uncompleted | set_field: user_name: @local.text_box", - "_cleaned": "uncompleted | set_field: user_name: @local.text_box" - }, - { - "trigger": "completed", - "action_id": "emit", - "args": [ - "completed" - ], - "_raw": "completed | emit:completed", - "_cleaned": "completed | emit:completed" - }, - { - "trigger": "uncompleted", - "action_id": "emit", - "args": [ - "uncompleted" - ], - "_raw": "uncompleted | emit:uncompleted", - "_cleaned": "uncompleted | emit:uncompleted" - } - ], - "condition": "@local.text_box", - "rows": [ - { - "name": "display_back", - "value": false, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "nav_buttons.display_back" - }, - { - "name": "button_completed", - "value": "@global.save_button", - "_translations": { - "value": {} - }, - "exclude_from_translation": true, - "type": "set_variable", - "_nested_name": "nav_buttons.button_completed", - "_dynamicFields": { - "value": [ - { - "fullExpression": "@global.save_button", - "matchedExpression": "@global.save_button", - "type": "global", - "fieldName": "save_button" - } - ] - }, - "_dynamicDependencies": { - "@global.save_button": [ - "value" - ] - } - } - ], - "_nested_name": "nav_buttons", - "_dynamicFields": { - "action_list": { - "0": { - "args": { - "1": [ - { - "fullExpression": "@local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - }, - "_raw": [ - { - "fullExpression": "completed | set_field: user_name: @local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ], - "_cleaned": [ - { - "fullExpression": "completed | set_field: user_name: @local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - }, - "1": { - "args": { - "1": [ - { - "fullExpression": "@local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - }, - "_raw": [ - { - "fullExpression": "uncompleted | set_field: user_name: @local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ], - "_cleaned": [ - { - "fullExpression": "uncompleted | set_field: user_name: @local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - } - }, - "condition": [ - { - "fullExpression": "@local.text_box", - "matchedExpression": "@local.text_box", - "type": "local", - "fieldName": "text_box" - } - ] - }, - "_dynamicDependencies": { - "@local.text_box": [ - "action_list.0.args.1", - "action_list.0._raw", - "action_list.0._cleaned", - "action_list.1.args.1", - "action_list.1._raw", - "action_list.1._cleaned", - "condition" - ] - } - } - ], - "_xlsxPath": "templates/global/app_settings.xlsx" -} \ No newline at end of file diff --git a/config.ts b/config.ts index 4ce3508..56944e9 100644 --- a/config.ts +++ b/config.ts @@ -6,7 +6,7 @@ config.google_drive.assets_folder_ids = ["1SzZiWN4hvv0snDdpd-BZYPjTC6RzC1uU"]; config.git = { content_repo: "https://github.com/IDEMSInternational/conflict-forecast-content.git", - content_tag_latest: "0.0.4", + content_tag_latest: "0.0.5", }; config.android = {