-
Notifications
You must be signed in to change notification settings - Fork 0
RBIM-54 Introduce sample app configuration properties #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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, | ||
| "spacing": { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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": { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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", | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
There was a problem hiding this comment.
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
h1orsubtitlethen configure the font size based on that.