Add number of days request has been open to delivery map
piratefsh opened this issue · comments
This concerns the delivery needed map: https://crownheightsma.herokuapp.com/delivery-needed
We need some way of indicating how urgent a request is. This metric has not been defined but this is the feedback from the intake group:
- a helpful feature to have is something that indicates an urgency of a request.
- urgency is determined by a) when the request was received b) when intake happened and c) level of urgency of the request when it came in
- this urgency may change over time. currently it is ‘calculated’ by a human person who looks at the above 3 details
and possible solutions to surface urgency better:
- change color/size/shape of markers on the map
- add a new field to Airtable to surface the human-calculated sense of urgency
- maybe use deadlines instead of range timelines e.g. May 30th 2020 vs 3-4 days
To clarify, here's what I think would be the easiest way to start surfacing urgency:
We have data on how long ago the request was opened i.e. posted to Slack. This is available from the Slack post timestamp
in metadata. We can use a lightweight date library (anything but moment.js, it has a huge bundle footprint that can impact performance, unless that has changed since i last worked with it) to indicate how long the request has been open.
Things to consider:
- Deciding how to color-code the urgency. Suggestion:
- 1-2 days: green
- 2-5 days: orange
- 5 + days: red
- These colors should also be reflected on the individual map markers. Colors are set here.
- We'll need to change the cluster marker colors as well, something more muted.
- Changing the color of the household chip to something more muted. The time indicator should be of a higher priority.
Updated title to better reflect task.