Skip to content

Commit

Permalink
Merge pull request #102 from IDEMSInternational/content/1.2.48
Browse files Browse the repository at this point in the history
content: 1.2.48
  • Loading branch information
esmeetewinkel authored Oct 10, 2024
2 parents 825957a + ae50fdc commit f18f063
Show file tree
Hide file tree
Showing 9 changed files with 119 additions and 44 deletions.
28 changes: 21 additions & 7 deletions app_data/sheets/data_list/comp_map_layer_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"property": "sum_Z",
"scale_max": 2000000,
"scale_min": 0,
"scale_fill": "#e7e1ef, #c994c7, #dd1c77",
"gradient_palette": "#e7e1ef, #c994c7, #dd1c77",
"scale_title": "Total Population",
"opacity": 0.8,
"visible_default": true
"visible_default": false
},
{
"id": "layer_2",
Expand All @@ -26,7 +26,7 @@
"property": "mean_Z",
"scale_max": 400,
"scale_min": 0,
"scale_fill": "#380645, #298680, yellow",
"gradient_palette": "#380645, #298680, yellow",
"scale_title": "Population Density (units)",
"visible_default": true
},
Expand All @@ -48,6 +48,9 @@
"type": "vector",
"fill": "red",
"stroke": "none",
"point_radius_max": 6,
"point_radius_property_max": 50,
"point_radius_property": "centroid_size_sum",
"scale_title": "County Centroids",
"opacity": 1,
"visible_default": true
Expand All @@ -59,15 +62,26 @@
"type": "vector",
"fill": "blue",
"stroke": "none",
"opacity": 1
"point_radius_max": 10,
"point_radius_property_max": 1,
"point_radius_property": "any_riot_4w",
"opacity": 0.5,
"visible_default": false
},
{
"id": "layer_6",
"name": "Conflict – Forecast",
"description": "Probability of conflict occuring in the next 4 weeks",
"source_asset": "map_data/forecast_data_geojson.json",
"type": "vector",
"fill": "orange",
"stroke": "none",
"type": "heatmap",
"property": "pred_prob_any_riot_4w",
"point_radius_max": 14,
"blur": 8,
"scale_max": 1,
"scale_min": 0,
"scale_bins": "0, 0.15, 0.3, 0.4, 0.6, 0.7, 0.8, 1",
"gradient_palette": "#c4c4c4, #f0e0cc, #e5c9a9, #d29780, #c4665c, #bc3630, #9d222e, #740035",
"scale_title": "Conflict probability (next 4 weeks)",
"opacity": 1
}
],
Expand Down
95 changes: 74 additions & 21 deletions app_data/sheets/template/component_demo/comp_audio.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,43 @@
"status": "released",
"flow_subtype": "component_demo",
"rows": [
{
"name": "audio_transcript",
"value": "This is an audio message in English.",
"_translations": {
"value": {
"es_sp": true
}
},
"type": "set_variable",
"_nested_name": "audio_transcript"
},
{
"type": "title",
"value": "Audio component demo",
"_translations": {
"value": {}
},
"name": "title_2",
"_nested_name": "title_2"
"name": "title_3",
"_nested_name": "title_3"
},
{
"type": "title",
"value": "Variant: compact (default)",
"_translations": {
"value": {}
},
"name": "title_3",
"_nested_name": "title_3"
"name": "title_4",
"_nested_name": "title_4"
},
{
"type": "text",
"value": "Default:",
"_translations": {
"value": {}
},
"name": "text_4",
"_nested_name": "text_4"
"name": "text_5",
"_nested_name": "text_5"
},
{
"type": "audio",
Expand All @@ -47,12 +58,51 @@
"_translations": {
"value": {}
},
"name": "text_6",
"_nested_name": "text_6"
"name": "text_7",
"_nested_name": "text_7"
},
{
"type": "audio",
"name": "audio_2",
"exclude_from_translation": true,
"parameter_list": {
"variant": "compact",
"title": "Audio player compact 2",
"src": "audio/test_audio.mp3",
"transcript_text": "@local.audio_transcript",
"play_icon_asset": "images/icons/audio/play-sharp.svg"
},
"_nested_name": "audio_2",
"_dynamicFields": {
"parameter_list": {
"transcript_text": [
{
"fullExpression": "@local.audio_transcript",
"matchedExpression": "@local.audio_transcript",
"type": "local",
"fieldName": "audio_transcript"
}
]
}
},
"_dynamicDependencies": {
"@local.audio_transcript": [
"parameter_list.transcript_text"
]
}
},
{
"type": "text",
"value": "Transcript pop-up (alt implementation):",
"_translations": {
"value": {}
},
"name": "text_9",
"_nested_name": "text_9"
},
{
"type": "audio",
"name": "audio_3",
"action_list": [
{
"trigger": "info_click",
Expand All @@ -72,44 +122,47 @@
"show_info_button": "true",
"play_icon_asset": "images/icons/audio/play-sharp.svg"
},
"_nested_name": "audio_2"
"_nested_name": "audio_3"
},
{
"type": "text",
"value": "Disabled (no asset path provided):",
"_translations": {
"value": {}
},
"name": "text_8",
"_nested_name": "text_8"
"name": "text_11",
"_nested_name": "text_11"
},
{
"type": "audio",
"name": "audio_3",
"name": "audio_4",
"exclude_from_translation": true,
"_nested_name": "audio_3"
"style_list": [
"audio_3"
],
"_nested_name": "audio_4"
},
{
"type": "title",
"value": "variant: large",
"_translations": {
"value": {}
},
"name": "title_10",
"_nested_name": "title_10"
"name": "title_13",
"_nested_name": "title_13"
},
{
"type": "text",
"value": "Range bar disabled:",
"_translations": {
"value": {}
},
"name": "text_11",
"_nested_name": "text_11"
"name": "text_14",
"_nested_name": "text_14"
},
{
"type": "audio",
"name": "audio_4",
"name": "audio_5",
"value": "audio/test_audio.mp3",
"_translations": {
"value": {}
Expand All @@ -120,11 +173,11 @@
"range_bar_disabled": "true",
"time_to_skip": "0.5"
},
"_nested_name": "audio_4"
"_nested_name": "audio_5"
},
{
"type": "audio",
"name": "audio_5",
"name": "audio_6",
"action_list": [
{
"trigger": "info_click",
Expand All @@ -148,7 +201,7 @@
"pause_icon_asset": "images/icons/audio/pause-sharp.svg",
"forward_icon_asset": "images/icons/audio/play-forward-sharp.svg"
},
"_nested_name": "audio_5"
"_nested_name": "audio_6"
}
],
"_xlsxPath": "component_sheets/component_audio.xlsx"
Expand Down
6 changes: 3 additions & 3 deletions app_data/sheets/template/component_demo/comp_button.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"value": {}
},
"parameter_list": {
"style": "card"
"variant": "card"
},
"name": "button_4",
"_nested_name": "button_4"
Expand All @@ -52,7 +52,7 @@
"value": {}
},
"parameter_list": {
"style": "card",
"variant": "card",
"icon": "images/icons/leaf_blue.svg"
},
"name": "button_5",
Expand All @@ -62,7 +62,7 @@
"type": "button",
"value": "Icon and toggle",
"parameter_list": {
"style": "card",
"variant": "card",
"icon": "images/icons/school_blue.svg"
},
"rows": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
"type": "text",
"value": "This is an audio message in English.",
"_translations": {
"value": {}
"value": {
"es_sp": true
}
},
"name": "text_2",
"_nested_name": "text_2"
Expand Down
3 changes: 2 additions & 1 deletion app_data/translations/es_sp/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,6 @@
"@global.language_global_2: text": "@global.language_global_2: texto",
"Text and @global.language_global_1": "Texto y @global.language_global_1",
"activities": "actividades",
"Featured": "Destacado"
"Featured": "Destacado",
"This is an audio message in English.": "Este es un mensaje de audio en inglés."
}
Original file line number Diff line number Diff line change
Expand Up @@ -253,5 +253,10 @@
"SourceText": "Featured",
"text": "Destacado",
"type": "template"
},
{
"SourceText": "This is an audio message in English.",
"text": "Este es un mensaje de audio en inglés.",
"type": "template"
}
]
2 changes: 1 addition & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ config.web.favicon_asset = "images/icons/favicon.svg";

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

config.app_config.ASSET_PACKS = {
Expand Down
10 changes: 5 additions & 5 deletions reports/summary.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
{
"type": "audio",
"count": 11
"count": 12
},
{
"type": "button",
Expand Down Expand Up @@ -166,7 +166,7 @@
},
{
"type": "set_variable",
"count": 507
"count": 508
},
{
"type": "simple_checkbox",
Expand Down Expand Up @@ -198,7 +198,7 @@
},
{
"type": "text",
"count": 638
"count": 639
},
{
"type": "text_area",
Expand Down Expand Up @@ -520,7 +520,7 @@
},
{
"path": "audio/test_audio.mp3",
"count": 6,
"count": 7,
"size_kb": 43.4
},
{
Expand Down Expand Up @@ -645,7 +645,7 @@
},
{
"path": "images/icons/audio/play-sharp.svg",
"count": 3,
"count": 4,
"size_kb": 0.1
},
{
Expand Down
Loading

0 comments on commit f18f063

Please sign in to comment.