As a user, I'd like to be able to click on an icon to show that I've completed a habit today where the habit is something I only need to do once in the day (and click on the icon again to show that it's not done).
ACCs
An icon to toggle the habit completed state
Clicking on the greyed out icon for an uncompleted habit will:
Toggle the habit to the done state
Log the time and date of completion
Clicking on the completed icon for a complete habit will:
Toggle the habit to the not done state
Remove any habit entries from today
Approach
[x] Make the completed icon clickable
[x] Send "complete the habit" (most likely in the form of an "add entry") request to the JSON habit service
[x] Update the API to handle requests for adding an entry
Notes
Get adding the completed state working first - can refine the logic of figuring out how to remove history effectively once that's done.
Story
As a user, I'd like to be able to click on an icon to show that I've completed a habit today where the habit is something I only need to do once in the day (and click on the icon again to show that it's not done).
ACCs
Approach
Notes
Get adding the completed state working first - can refine the logic of figuring out how to remove history effectively once that's done.