Skip to content

Commit

Permalink
update dfc-fermata config to use new UI features
Browse files Browse the repository at this point in the history
This will allow us to test:
- conditional surveys (e-mission/e-mission-phone#1129, merged)
- configurable dashboard (e-mission/e-mission-docs#1055, still in progress)
  • Loading branch information
JGreenlee committed Mar 28, 2024
1 parent a5eaa17 commit 660bc8d
Showing 1 changed file with 49 additions and 4 deletions.
53 changes: 49 additions & 4 deletions configs/dfc-fermata.nrel-op.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,72 @@
"survey_info": {
"surveys": {
"UserProfileSurvey": {
"formPath": "https://raw.githubusercontent.com/JGreenlee/nrel-openpath-deploy-configs/fermata-demo/survey_resources/dfc-fermata/fermata-onboarding-v0.xml",
"formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/dfc-fermata/dfc-onboarding-v0.xml",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/demographic_survey",
"labelTemplate": { "en": "Answered" }
},
"TripConfirmSurvey": {
"formPath": "https://raw.githubusercontent.com/JGreenlee/nrel-openpath-deploy-configs/fermata-demo/survey_resources/dfc-fermata/fermata-ev-return-trip-v0.xml",
"DfcEvReturnTrip": {
"formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/dfc-fermata/dfc-ev-return-trip-v0.xml",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/trip_user_input",
"labelTemplate": { "en": "Answered" }
},
"DfcEvRoamingTrip": {
"formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/dfc-fermata/dfc-ev-roaming-trip-v0.xml",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/trip_user_input",
"labelTemplate": { "en": "Answered" }
},
"DfcGasTrip": {
"formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/dfc-fermata/dfc-gas-trip-v0.xml",
"version": 1,
"compatibleWith": 1,
"dataKey": "manual/trip_user_input",
"labelTemplate": { "en": "Answered" }
}
},
"buttons": {
"trip-label": [
{
"surveyName": "DfcGasTrip",
"not-filled-in-label": { "en": "Gas Car Survey" },
"showsIf": "sections[0].sensed_mode_str == 'CAR'"
},
{
"surveyName": "DfcEvRoamingTrip",
"not-filled-in-label": { "en": "EV Survey" },
"showsIf": "sections[0].sensed_mode_str != 'CAR' && !pointIsWithinBounds(end_loc.coordinates, [[-105.153, 39.745], [-105.150, 39.743]])"
},
{
"surveyName": "DfcEvReturnTrip",
"not-filled-in-label": { "en": "EV Survey" },
"showsIf": "sections[0].sensed_mode_str != 'CAR' && pointIsWithinBounds(end_loc.coordinates, [[-105.153, 39.745], [-105.150, 39.743]])"
}
]
},
"trip-labels": "ENKETO"
},
"display_config": {
"use_imperial": true
},
"metrics": {
"include_test_users": false
"include_test_users": false,
"phone_dashboard_ui": {
"sections": ["footprint", "summary", "engagement", "surveys"],
"footprint_options": {
"unlabeled_uncertainty": false
},
"summary_options": {
"metrics_list": ["distance", "count", "duration"]
},
"engagement_options": {
"leaderboard_metric": ["distance", "e_car"]
}
}
},
"profile_controls": {
"support_upload": false,
Expand Down

0 comments on commit 660bc8d

Please sign in to comment.