OpenDashboard
Display a dashboard with open mode. Where Program start date is consider when user join the program.
Open dashboard configuration in navigation menu.
{
"query": "program open from -6 to +12 months",
"mode": "open",
"title": "Open programs",
"programStatsQuery": "program open from -6 to +12 months with [any]",
"participantQuery": "program open from -6 to +12 months with [any] participant = trainer",
"programKindGroup": {
"excludes": [
"skill",
"challenge"
]
}
}
Open dashboard configuration in layout menu
For more details about the configured attribute see the
{
"classes": {
"container": "m-0 p-0"
},
"rows": [
{
"cols": [
{
"title": "General dashboard",
"tile": "statistics",
"participant": "given program [%program]",
"query": "given program [%program], given program-id [$empty, %program] from today to -30 days",
"isOpen": true,
"showProgram": false,
"columns": [
{
"show": "programDay"
}
],
"startDate": "user",
"fields": [
"sameProgramCompletions",
"sameProgramIncomplete"
],
"dayKey": "participantDay",
"className": {
"table": "mt-2"
},
"classes": {
"root": "test"
},
"stats": [
{
"handles": [
"preprogramDiet",
"preprogramEquipment",
"preprogramPhysical",
"preprogramPhotos",
"preprogramDiet2",
"preprogramEquipment2",
"preprogramPhysical2",
"startPhoto"
],
"title": "Pre program",
"tracking": "pre-program",
"icon": "fal fa-clipboard-check"
},
{"...": "..."}
],
"_id": "28"
}
]
}
]
}