Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 137 additions & 0 deletions app-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"theme": {
"primaryColor": "#2196F3",
"secondaryColor": "#757575",
"backgroundColor": "#f8f9fa",
"surfaceColor": "#ffffff",
"textColor": "#212529",
"fontFamily": "Inter, -apple-system, BlinkMacSystemFont, sans-serif",
"fontSize": 16,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we discussed that we will set specific font styles such as h1 or subtitle then configure the font size based on that.

"spacing": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these do not need to be configured?

"xs": 4,
"sm": 8,
"md": 16,
"lg": 24,
"xl": 32
},
"borderRadius": {
"sm": 4,
"md": 8,
"lg": 12
},
"button": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These might just need to rely on the theme configuration.

"borderRadius": 8,
"backgroundColor": "#2196F3",
"textColor": "#ffffff"
},
"card": {
"backgroundColor": "#ffffff",
"borderRadius": 12,
"shadowColor": "#000000",
"elevation": 2
}
},
"header": {
"title": "RADAR Demo App",
"showSettings": true,
"backgroundColor": "#2196F3",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we don't need the background color here and we can rely on the theme instead.

"textColor": "#ffffff"
},
"tabs": [
{
"label": "Home",
"icon": "home",
"screen": "homeScreen"
},
{
"label": "Research",
"icon": "clipboard",
"screen": "researchScreen"
},
{
"label": "Data",
"icon": "chart",
"screen": "dataScreen"
},
{
"label": "Profile",
"icon": "person",
"screen": "profileScreen"
}
],
"screens": {
"homeScreen": {
"scrollable": true,
"blocks": [
{
"type": "QuestionnaireWidget",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can show the whole schedule/questionnaires scheduled rather than single questionnaires.

"id": "welcome_survey",
"config": {
"presentation": "card",
"questionnaireId": "WELCOME_SURVEY",
"title": "Welcome Survey",
"description": "Help us understand your experience",
"showProgress": true,
"estimatedTime": "3 min"
}
},
{
"type": "VitalsWidget",
"id": "health_overview",
"config": {
"presentation": "card",
"title": "Health Overview",
"category": "Health Metrics",
"description": "Your recent health data summary"
}
}
]
},
"researchScreen": {
"scrollable": true,
"blocks": [
{
"type": "QuestionnaireWidget",
"id": "daily_checkin",
"config": {
"presentation": "card",
"questionnaireId": "DAILY_CHECKIN",
"title": "Daily Check-in",
"description": "Quick daily mood and activity check",
"showProgress": true
}
}
]
}
},
"widgets": [
{
"type": "QuestionnaireWidget",
"name": "Questionnaire",
"description": "Interactive questionnaire component",
"category": "Assessment",
"presentations": [
"card",
"fullscreen"
],
"configSchema": {
"questionnaireId": {
"type": "string",
"required": true
},
"presentation": {
"type": "string",
"enum": [
"card",
"fullscreen"
],
"default": "card"
},
"showProgress": {
"type": "boolean",
"default": true
}
}
}
]
}