-
Notifications
You must be signed in to change notification settings - Fork 34
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
⚙️📊 Make the In-App Dashboard configurable #1055
Comments
While implementing this, we are going to transition from server-side computation to client-side computation for user metrics. In the current version on Transitioning to client-side computation for user metrics has a few advantages:
One caveat is that these advantages apply only for the user's metrics. Aggregate metrics (used for group comparisons, summaries for whole cohort, etc) will still need to be computed on the server. The steps I think are needed to this to happen for GPG:
At a later point in time, or gradually:
|
I have completed the first step on e-mission/e-mission-phone#1138 |
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)
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)
Up to now, the dashboard has only been shown for MULTILABEL configurations; on ENKETO configurations it was completely hidden. We are making the dashboard more configurable - e-mission/e-mission-docs#1055. The presence of a new field `metrics`.`phone_dashboard_ui` being defined will cause the dashboard to be shown. If `phone_dashboard_ui` is not defined, it will fall back to the current behavior (which is to only show dashboard for MULTILABEL configurations).
e-mission/e-mission-docs#1055 (comment) *** sections A list of sections to show in the dashboard UI. They will appear in the specified order from top to bottom. Options are footprint, active_travel, summary, engagement, surveys. Whichever sections are omitted will not be shown in the UI. Default: ["footprint", "active_travel", "summary"] ***
In the current version of the app, the Dashboard tab is completely hidden if
survey_info
.trip-labels
is set toENKETO
. This is largely because we couldn't compute carbon footprint without aMODE
input.However, the DFC fermata project will use Bluetooth sensing to detect mode. This means we will be able to show the carbon footprint even without user input.
We also want to show other metrics, including new sections for survey response rate, and potentially user engagement / gamification
I think we should expand the
metrics
field of the dynamic config. It already has one fieldinclude_test_users
.I propose adding a sub-field "phone_dashboard" that contains options that control the UI.
sections
A list of sections to show in the dashboard UI. They will appear in the specified order from top to bottom.
Options are
footprint
,active_travel
,summary
,engagement
,surveys
.Whichever sections are omitted will not be shown in the UI.
Default:
["footprint", "active_travel", "summary"]
footprint_options
.unlabeled_uncertainty
Whether to show the uncertainty on the carbon footprint charts.
Programs using MODE / PURPOSE labels will need this
true
. Programs using Bluetooth sensing can set thisfalse
.Default:
true
active_travel_options
.modes_list
Which modes to consider as "active" for the purpose of calculating "active minutes".
Default:
["walk", "bike"]
summary_options
.metrics_list
A list of metrics for which to show a graph and descriptives summarizing the metric by mode.
Options are
distance
,count
,duration
.(
mean_speed
used to also be one but it was removed because the computations were wrong. We can add it back if we fix it)Default:
["distance", "count", "duration"]
engagement_options
.leaderboard_metric
What metric to use as the basis for the leaderboard.
(I am not sure yet how this will be represented, but maybe something like
["distance", "e_car"]
to rank participants on miles driven in an EV. But if we do incentives based on survey response % instead, it will look different)@jiji14 and I will work together on implementing this
The text was updated successfully, but these errors were encountered: