Skip to content
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

Adapt color scale of trees to also be influenced by user waterings #383

Open
2 tasks done
vogelino opened this issue Aug 25, 2021 · 0 comments
Open
2 tasks done

Adapt color scale of trees to also be influenced by user waterings #383

vogelino opened this issue Aug 25, 2021 · 0 comments
Labels
enhancement New feature or request Priority MIDDLE

Comments

@vogelino
Copy link
Collaborator

Background: Why this issue?

Currently, the color scale of trees in the default view is only based on the amount of rainwater but isn't influenced by how much water was added by the users.

This doesn't help users to identify which trees are lacking water and which don't. Even if it is possible to know which trees were watered in the last 30 days, all trees are colored the same and each tree needs to be clicked individually in order to know their watering amount.

Deliverables: How to fix the issue?

The API currently returns a list of trees and whether they were watered or adopted, but as a value of the watered property, the total amount of waterings is returned instead of the total liters of water. This could easily be fixed by changing the query on this line to sum the watering liters here.
This new value containing the total liters of water could then be added to the value passed to interpolateColor and thereby influence the final color of a tree.

Output: Gain of fixing the issue?

Adding this would:

  1. Better show how the community influences the watering of trees
    2.Better identify which trees are lacking water

Issue creation checklist

  • I have attached one of the priority labels HIGH, MIDDLE, LOW
  • I have attached other labels with regard to the issues purpose (i.e.enhancement, bug, community feedback)
@vogelino vogelino added enhancement New feature or request Priority MIDDLE labels Aug 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Priority MIDDLE
Projects
None yet
Development

No branches or pull requests

1 participant