From 660bc8d008f4a4b6e9c000f18b529835a5069fc0 Mon Sep 17 00:00:00 2001 From: Jack Greenlee Date: Thu, 28 Mar 2024 12:04:41 -0400 Subject: [PATCH] update dfc-fermata config to use new UI features This will allow us to test: - conditional surveys (https://github.com/e-mission/e-mission-phone/pull/1129, merged) - configurable dashboard (https://github.com/e-mission/e-mission-docs/issues/1055, still in progress) --- configs/dfc-fermata.nrel-op.json | 53 +++++++++++++++++++++++++++++--- 1 file changed, 49 insertions(+), 4 deletions(-) diff --git a/configs/dfc-fermata.nrel-op.json b/configs/dfc-fermata.nrel-op.json index 8b335fc0..b659bab1 100644 --- a/configs/dfc-fermata.nrel-op.json +++ b/configs/dfc-fermata.nrel-op.json @@ -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,