ti-app / tia-client

MIT License
9 stars 0 forks source link

Plant watering #26

Open anandundavia opened 5 years ago

anandundavia commented 5 years ago
  1. Skipping fetching of nearby plants if the plant details is opened.

    • This was done because fetching plants again when one tree is already in focus is unncessary
    • Fetching of nearby plants also sets the state which re renders the UI which in turn, closes the plant details :joy:
  2. Plant watering:

    • The "WATER" button changes text to "PLEASE WAIT..." till the request is made. I somehow could not get it to be disabled.
    • Integrated with API, the plant health is updated which can be seen on the map