Skip to content

Commit 5aa21c7

Browse files
committed
RBIM-54 Add sample app config properties
1 parent e67e56d commit 5aa21c7

File tree

1 file changed

+137
-0
lines changed

1 file changed

+137
-0
lines changed

app-config.json

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
{
2+
"theme": {
3+
"primaryColor": "#2196F3",
4+
"secondaryColor": "#757575",
5+
"backgroundColor": "#f8f9fa",
6+
"surfaceColor": "#ffffff",
7+
"textColor": "#212529",
8+
"fontFamily": "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
9+
"fontSize": 16,
10+
"spacing": {
11+
"xs": 4,
12+
"sm": 8,
13+
"md": 16,
14+
"lg": 24,
15+
"xl": 32
16+
},
17+
"borderRadius": {
18+
"sm": 4,
19+
"md": 8,
20+
"lg": 12
21+
},
22+
"button": {
23+
"borderRadius": 8,
24+
"backgroundColor": "#2196F3",
25+
"textColor": "#ffffff"
26+
},
27+
"card": {
28+
"backgroundColor": "#ffffff",
29+
"borderRadius": 12,
30+
"shadowColor": "#000000",
31+
"elevation": 2
32+
}
33+
},
34+
"header": {
35+
"title": "RADAR Demo App",
36+
"showSettings": true,
37+
"backgroundColor": "#2196F3",
38+
"textColor": "#ffffff"
39+
},
40+
"tabs": [
41+
{
42+
"label": "Home",
43+
"icon": "home",
44+
"screen": "homeScreen"
45+
},
46+
{
47+
"label": "Research",
48+
"icon": "clipboard",
49+
"screen": "researchScreen"
50+
},
51+
{
52+
"label": "Data",
53+
"icon": "chart",
54+
"screen": "dataScreen"
55+
},
56+
{
57+
"label": "Profile",
58+
"icon": "person",
59+
"screen": "profileScreen"
60+
}
61+
],
62+
"screens": {
63+
"homeScreen": {
64+
"scrollable": true,
65+
"blocks": [
66+
{
67+
"type": "QuestionnaireWidget",
68+
"id": "welcome_survey",
69+
"config": {
70+
"presentation": "card",
71+
"questionnaireId": "WELCOME_SURVEY",
72+
"title": "Welcome Survey",
73+
"description": "Help us understand your experience",
74+
"showProgress": true,
75+
"estimatedTime": "3 min"
76+
}
77+
},
78+
{
79+
"type": "VitalsWidget",
80+
"id": "health_overview",
81+
"config": {
82+
"presentation": "card",
83+
"title": "Health Overview",
84+
"category": "Health Metrics",
85+
"description": "Your recent health data summary"
86+
}
87+
}
88+
]
89+
},
90+
"researchScreen": {
91+
"scrollable": true,
92+
"blocks": [
93+
{
94+
"type": "QuestionnaireWidget",
95+
"id": "daily_checkin",
96+
"config": {
97+
"presentation": "card",
98+
"questionnaireId": "DAILY_CHECKIN",
99+
"title": "Daily Check-in",
100+
"description": "Quick daily mood and activity check",
101+
"showProgress": true
102+
}
103+
}
104+
]
105+
}
106+
},
107+
"widgets": [
108+
{
109+
"type": "QuestionnaireWidget",
110+
"name": "Questionnaire",
111+
"description": "Interactive questionnaire component",
112+
"category": "Assessment",
113+
"presentations": [
114+
"card",
115+
"fullscreen"
116+
],
117+
"configSchema": {
118+
"questionnaireId": {
119+
"type": "string",
120+
"required": true
121+
},
122+
"presentation": {
123+
"type": "string",
124+
"enum": [
125+
"card",
126+
"fullscreen"
127+
],
128+
"default": "card"
129+
},
130+
"showProgress": {
131+
"type": "boolean",
132+
"default": true
133+
}
134+
}
135+
}
136+
]
137+
}

0 commit comments

Comments
 (0)