{"action":"created","issue":{"url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/108","repository_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2","labels_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/108/comments","events_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/108/events","html_url":"https://github.com/Flaredown/FlaredownEmber-2/issues/108","id":174959826,"number":108,"title":"Allow user to track food","user":{"login":"lmerriam","id":1657444,"avatar_url":"https://avatars.githubusercontent.com/u/1657444?v=3","gravatar_id":"","url":"https://api.github.com/users/lmerriam","html_url":"https://github.com/lmerriam","followers_url":"https://api.github.com/users/lmerriam/followers","following_url":"https://api.github.com/users/lmerriam/following{/other_user}","gists_url":"https://api.github.com/users/lmerriam/gists{/gist_id}","starred_url":"https://api.github.com/users/lmerriam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmerriam/subscriptions","organizations_url":"https://api.github.com/users/lmerriam/orgs","repos_url":"https://api.github.com/users/lmerriam/repos","events_url":"https://api.github.com/users/lmerriam/events{/privacy}","received_events_url":"https://api.github.com/users/lmerriam/received_events","type":"User","site_admin":false},"labels":[{"id":436513898,"url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/labels/integration","name":"integration","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"mpugach","id":426179,"avatar_url":"https://avatars.githubusercontent.com/u/426179?v=3","gravatar_id":"","url":"https://api.github.com/users/mpugach","html_url":"https://github.com/mpugach","followers_url":"https://api.github.com/users/mpugach/followers","following_url":"https://api.github.com/users/mpugach/following{/other_user}","gists_url":"https://api.github.com/users/mpugach/gists{/gist_id}","starred_url":"https://api.github.com/users/mpugach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpugach/subscriptions","organizations_url":"https://api.github.com/users/mpugach/orgs","repos_url":"https://api.github.com/users/mpugach/repos","events_url":"https://api.github.com/users/mpugach/events{/privacy}","received_events_url":"https://api.github.com/users/mpugach/received_events","type":"User","site_admin":false},"assignees":[{"login":"mpugach","id":426179,"avatar_url":"https://avatars.githubusercontent.com/u/426179?v=3","gravatar_id":"","url":"https://api.github.com/users/mpugach","html_url":"https://github.com/mpugach","followers_url":"https://api.github.com/users/mpugach/followers","following_url":"https://api.github.com/users/mpugach/following{/other_user}","gists_url":"https://api.github.com/users/mpugach/gists{/gist_id}","starred_url":"https://api.github.com/users/mpugach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpugach/subscriptions","organizations_url":"https://api.github.com/users/mpugach/orgs","repos_url":"https://api.github.com/users/mpugach/repos","events_url":"https://api.github.com/users/mpugach/events{/privacy}","received_events_url":"https://api.github.com/users/mpugach/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/milestones/4","html_url":"https://github.com/Flaredown/FlaredownEmber-2/milestones/Integrations","labels_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/milestones/4/labels","id":1982426,"number":4,"title":"Integrations","description":"","creator":{"login":"lmerriam","id":1657444,"avatar_url":"https://avatars.githubusercontent.com/u/1657444?v=3","gravatar_id":"","url":"https://api.github.com/users/lmerriam","html_url":"https://github.com/lmerriam","followers_url":"https://api.github.com/users/lmerriam/followers","following_url":"https://api.github.com/users/lmerriam/following{/other_user}","gists_url":"https://api.github.com/users/lmerriam/gists{/gist_id}","starred_url":"https://api.github.com/users/lmerriam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmerriam/subscriptions","organizations_url":"https://api.github.com/users/lmerriam/orgs","repos_url":"https://api.github.com/users/lmerriam/repos","events_url":"https://api.github.com/users/lmerriam/events{/privacy}","received_events_url":"https://api.github.com/users/lmerriam/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2016-09-04T15:50:01Z","updated_at":"2016-09-06T13:28:32Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2016-09-04T17:30:41Z","updated_at":"2016-12-05T22:08:32Z","closed_at":null,"body":"Food is extremely important to all illnesses, and our users have asked to be able to track it many times. We would like to allow them to track the foods they eat each day so they can be related to their symptoms.\r\n\r\nWe will rename the \"Tags\" section of the check-in to \"Health factors\", and include a place to log food in that screen:\r\n![fd_food_tracker](https://cloud.githubusercontent.com/assets/1657444/20876001/f220fd24-ba8c-11e6-8435-c0d561aa46cf.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1657444/20876070/5ba49936-ba8d-11e6-9624-194a680d6bd5.png)\r\nUser flow:\r\n- User clicks \"add food\" input\r\n- Before user starts typing, they see a dropdown list with random popular food items\r\n- User starts typing and sees autocomplete results based on the current input\r\n- User selects a food from the list OR creates a new food\r\n- The food item is logged for the day and is displayed above the \"add food\" input\r\n- Clicking the food item removes it from the check-in\r\n*All of this behavior already exists in the \"Tags\" section of the same screen, refer to its components for the specific logic.*\r\n\r\nNon-goals:\r\nDisplaying nutrients\r\nDisplaying food groups\r\nTracking portions\r\n\r\nDatabases\r\nThe [USDA food database](https://ndb.nal.usda.gov/ndb/doc/) is a very promising (and free) option.\r\nI have a data.gov API key for this. It is also possible to [download the whole DB](https://www.ars.usda.gov/northeast-area/beltsville-md/beltsville-human-nutrition-research-center/nutrient-data-laboratory/docs/usda-national-nutrient-database-for-standard-reference/) which might be necessary for the autocomplete results. We should retain the IDs in case we need to look up the nutrients and food groups in the future."},"comment":{"url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/comments/264993637","html_url":"https://github.com/Flaredown/FlaredownEmber-2/issues/108#issuecomment-264993637","issue_url":"https://api.github.com/repos/Flaredown/FlaredownEmber-2/issues/108","id":264993637,"user":{"login":"safeforge","id":255455,"avatar_url":"https://avatars.githubusercontent.com/u/255455?v=3","gravatar_id":"","url":"https://api.github.com/users/safeforge","html_url":"https://github.com/safeforge","followers_url":"https://api.github.com/users/safeforge/followers","following_url":"https://api.github.com/users/safeforge/following{/other_user}","gists_url":"https://api.github.com/users/safeforge/gists{/gist_id}","starred_url":"https://api.github.com/users/safeforge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/safeforge/subscriptions","organizations_url":"https://api.github.com/users/safeforge/orgs","repos_url":"https://api.github.com/users/safeforge/repos","events_url":"https://api.github.com/users/safeforge/events{/privacy}","received_events_url":"https://api.github.com/users/safeforge/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T22:08:32Z","updated_at":"2016-12-05T22:08:32Z","body":"@mpugach I've pushed [4e7536c ] which fix backend's specs."}}
{"actor":{"display_login":"safeforge"}}