Skip to content

Commit d08561a

Browse files
Merge pull request #108 from ParentingForLifelongHealth/content/1.1.75
content: 1.1.75
2 parents 9613f29 + 6a60a81 commit d08561a

10 files changed

+581
-182
lines changed

app_data/sheets/contents.json

+5
Original file line numberDiff line numberDiff line change
@@ -2254,6 +2254,11 @@
22542254
"flow_name": "comic_bubble",
22552255
"_xlsxPath": "templates/modules/articles.xlsx"
22562256
},
2257+
"countdown_days": {
2258+
"flow_type": "template",
2259+
"flow_name": "countdown_days",
2260+
"_xlsxPath": "KW app_navigation.xlsx"
2261+
},
22572262
"enter_dev_mode": {
22582263
"flow_type": "template",
22592264
"flow_name": "enter_dev_mode",

app_data/sheets/global/deployment_global_kw.json

+13
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,19 @@
8282
"_translations": {
8383
"value": {}
8484
}
85+
},
86+
{
87+
"type": "declare_global_constant",
88+
"name": "test_mode_code",
89+
"value": "DayemTest",
90+
"_translations": {
91+
"value": {}
92+
}
93+
},
94+
{
95+
"type": "declare_field_default",
96+
"name": "countdown_days",
97+
"value": 7
8598
}
8699
],
87100
"_xlsxPath": "deployment_data_kw.xlsx"

app_data/sheets/template/app_menu.json

+20
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,26 @@
1616
"name": "debug_toggle",
1717
"_nested_name": "dg_dev.debug_toggle"
1818
},
19+
{
20+
"type": "button",
21+
"name": "button_delay_days",
22+
"value": "Change countdown days",
23+
"_translations": {
24+
"value": {}
25+
},
26+
"action_list": [
27+
{
28+
"trigger": "click",
29+
"action_id": "go_to",
30+
"args": [
31+
"countdown_days"
32+
],
33+
"_raw": "click | go_to: countdown_days",
34+
"_cleaned": "click | go_to: countdown_days"
35+
}
36+
],
37+
"_nested_name": "dg_dev.button_delay_days"
38+
},
1939
{
2040
"type": "button",
2141
"name": "button_templates",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
{
2+
"flow_type": "template",
3+
"flow_name": "countdown_days",
4+
"status": "released",
5+
"rows": [
6+
{
7+
"type": "title",
8+
"name": "title",
9+
"value": "Change countdown days",
10+
"_translations": {
11+
"value": {}
12+
},
13+
"_nested_name": "title"
14+
},
15+
{
16+
"type": "text",
17+
"name": "text_1",
18+
"value": "Countdown days: @fields.countdown_days",
19+
"_translations": {
20+
"value": {}
21+
},
22+
"_nested_name": "text_1",
23+
"_dynamicFields": {
24+
"value": [
25+
{
26+
"fullExpression": "Countdown days: @fields.countdown_days",
27+
"matchedExpression": "@fields.countdown_days",
28+
"type": "fields",
29+
"fieldName": "countdown_days"
30+
}
31+
]
32+
},
33+
"_dynamicDependencies": {
34+
"@fields.countdown_days": [
35+
"value"
36+
]
37+
}
38+
},
39+
{
40+
"type": "text",
41+
"name": "text_2",
42+
"value": "Choose a number of days to count down",
43+
"_translations": {
44+
"value": {}
45+
},
46+
"_nested_name": "text_2"
47+
},
48+
{
49+
"type": "number_selector",
50+
"name": "countdown_days",
51+
"value": "@fields.countdown_days",
52+
"_translations": {
53+
"value": {}
54+
},
55+
"parameter_list": {
56+
"max_value": "14"
57+
},
58+
"_nested_name": "countdown_days",
59+
"_dynamicFields": {
60+
"value": [
61+
{
62+
"fullExpression": "@fields.countdown_days",
63+
"matchedExpression": "@fields.countdown_days",
64+
"type": "fields",
65+
"fieldName": "countdown_days"
66+
}
67+
]
68+
},
69+
"_dynamicDependencies": {
70+
"@fields.countdown_days": [
71+
"value"
72+
]
73+
}
74+
},
75+
{
76+
"type": "button",
77+
"name": "button",
78+
"value": "Save",
79+
"_translations": {
80+
"value": {
81+
"kw_ar": true
82+
}
83+
},
84+
"action_list": [
85+
{
86+
"trigger": "click",
87+
"action_id": "set_field",
88+
"args": [
89+
"countdown_days",
90+
"@local.countdown_days"
91+
],
92+
"_raw": "click | set_field: countdown_days: @local.countdown_days",
93+
"_cleaned": "click | set_field: countdown_days: @local.countdown_days"
94+
},
95+
{
96+
"trigger": "click",
97+
"action_id": "emit",
98+
"args": [
99+
"completed"
100+
],
101+
"_raw": "click | emit: completed",
102+
"_cleaned": "click | emit: completed"
103+
}
104+
],
105+
"_nested_name": "button",
106+
"_dynamicFields": {
107+
"action_list": {
108+
"0": {
109+
"args": {
110+
"1": [
111+
{
112+
"fullExpression": "@local.countdown_days",
113+
"matchedExpression": "@local.countdown_days",
114+
"type": "local",
115+
"fieldName": "countdown_days"
116+
}
117+
]
118+
},
119+
"_raw": [
120+
{
121+
"fullExpression": "click | set_field: countdown_days: @local.countdown_days",
122+
"matchedExpression": "@local.countdown_days",
123+
"type": "local",
124+
"fieldName": "countdown_days"
125+
}
126+
],
127+
"_cleaned": [
128+
{
129+
"fullExpression": "click | set_field: countdown_days: @local.countdown_days",
130+
"matchedExpression": "@local.countdown_days",
131+
"type": "local",
132+
"fieldName": "countdown_days"
133+
}
134+
]
135+
}
136+
}
137+
},
138+
"_dynamicDependencies": {
139+
"@local.countdown_days": [
140+
"action_list.0.args.1",
141+
"action_list.0._raw",
142+
"action_list.0._cleaned"
143+
]
144+
}
145+
}
146+
],
147+
"_xlsxPath": "KW app_navigation.xlsx"
148+
}

0 commit comments

Comments
 (0)