{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/1263","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/1263/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/1263/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/1263/events","html_url":"https://github.com/medic/medic-webapp/issues/1263","id":104954897,"number":1263,"title":"[Contacts] Action bar updates","user":{"login":"abbyad","id":789512,"avatar_url":"https://avatars.githubusercontent.com/u/789512?v=3","gravatar_id":"","url":"https://api.github.com/users/abbyad","html_url":"https://github.com/abbyad","followers_url":"https://api.github.com/users/abbyad/followers","following_url":"https://api.github.com/users/abbyad/following{/other_user}","gists_url":"https://api.github.com/users/abbyad/gists{/gist_id}","starred_url":"https://api.github.com/users/abbyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abbyad/subscriptions","organizations_url":"https://api.github.com/users/abbyad/orgs","repos_url":"https://api.github.com/users/abbyad/repos","events_url":"https://api.github.com/users/abbyad/events{/privacy}","received_events_url":"https://api.github.com/users/abbyad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/1%20-%20Scheduled","name":"1 - Scheduled","color":"bfd4d2"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/UI/UX","name":"UI/UX","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/35","html_url":"https://github.com/medic/medic-webapp/milestones/Iteration%202015-39:%20Mobile%20Application%20Ready%20for%20Internal%20Testing","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/35/labels","id":1294425,"number":35,"title":"Iteration 2015-39: Mobile Application Ready for Internal Testing","description":"","creator":{"login":"browndav","id":763977,"avatar_url":"https://avatars.githubusercontent.com/u/763977?v=3","gravatar_id":"","url":"https://api.github.com/users/browndav","html_url":"https://github.com/browndav","followers_url":"https://api.github.com/users/browndav/followers","following_url":"https://api.github.com/users/browndav/following{/other_user}","gists_url":"https://api.github.com/users/browndav/gists{/gist_id}","starred_url":"https://api.github.com/users/browndav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browndav/subscriptions","organizations_url":"https://api.github.com/users/browndav/orgs","repos_url":"https://api.github.com/users/browndav/repos","events_url":"https://api.github.com/users/browndav/events{/privacy}","received_events_url":"https://api.github.com/users/browndav/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":20,"state":"open","created_at":"2015-09-07T23:17:19Z","updated_at":"2015-10-02T01:02:32Z","due_on":"2015-10-05T07:00:00Z","closed_at":null},"comments":5,"created_at":"2015-09-04T19:26:30Z","updated_at":"2015-10-02T01:02:32Z","closed_at":"2015-10-02T01:02:32Z","body":"As seen in #1261 and #1262, the action bar has updated actions:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/789512/9692644/691ac9f6-5318-11e5-90fa-6310f0b52659.png)\r\n\r\n\r\n- **Call**: In mobile/tablet view this should be a link to call the primary phone number for the contact (eg `href=\"tel:+16505551234\"`) which we need to then handle in medic-android. In desktop view this can be either disabled, or replaced with the SMS action.\r\n- **Add**: Opens a list of all the possible reports that can be submitted for this person/place. This would also include adding more people to a place, send SMS to the contact, and SMS all where appropriate.\r\n- **Edit**: Edit the current person/place's basic info.\r\n- **Delete**: As expected, deletes the person or place, but only if there are no people/places associated to it. If there are those must first be deleted or reassigned."},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/144891108","html_url":"https://github.com/medic/medic-webapp/issues/1263#issuecomment-144891108","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/1263","id":144891108,"user":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T01:02:32Z","updated_at":"2015-10-02T01:02:32Z","body":"Quite a confusing range of options here...\r\n\r\n*Call*: Invokes the dialer with the \"tel:\" protocol. Hidden on desktop. Disabled if contact doesn't have a phone number.\r\n*Message*: On mobile invokes a messaging app with \"sms:\" protocol. On desktop launches the Send Message modal. On desktop if contact is a health center shows a dropdown for Send Message or Message All. Disabled if contact doesn't have a phone number.\r\n*Edit*: Always enabled and displayed on all devices.\r\n*Delete*: Displayed on all devices. Disabled if the contact is a Primary Contact or has Children."}}