Open onlyjsmith opened 6 years ago
I recommend that we don't do this now, but wait and come up with a better solution later.
The status
decorator is a special decorator we only use to color the response points.
There is no information tying them to a certain status, it just contains a condition for a certain color. We don't have any information to show a description for a color.
We're effectively calculating sprayed_status
twice - we use the same rules to compute two different properties which are different representations of the same value.
Not sure how we'd do this dynamically....
We've got a
status
and asprayed_status
property in the config (see locational/douma-app#106), but not sure how the colours of the points are determined - whether they come from thestatus
property, or somewhere else.