{"action":"created","issue":{"url":"https://api.github.com/repos/diaspora/diaspora/issues/5594","labels_url":"https://api.github.com/repos/diaspora/diaspora/issues/5594/labels{/name}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/5594/comments","events_url":"https://api.github.com/repos/diaspora/diaspora/issues/5594/events","html_url":"https://github.com/diaspora/diaspora/pull/5594","id":55501820,"number":5594,"title":"4055 add contacts mobile","user":{"login":"Faldrian","id":1184859,"avatar_url":"https://avatars.githubusercontent.com/u/1184859?v=3","gravatar_id":"","url":"https://api.github.com/users/Faldrian","html_url":"https://github.com/Faldrian","followers_url":"https://api.github.com/users/Faldrian/followers","following_url":"https://api.github.com/users/Faldrian/following{/other_user}","gists_url":"https://api.github.com/users/Faldrian/gists{/gist_id}","starred_url":"https://api.github.com/users/Faldrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faldrian/subscriptions","organizations_url":"https://api.github.com/users/Faldrian/orgs","repos_url":"https://api.github.com/users/Faldrian/repos","events_url":"https://api.github.com/users/Faldrian/events{/privacy}","received_events_url":"https://api.github.com/users/Faldrian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T16:18:17Z","updated_at":"2015-01-26T16:27:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/5594","html_url":"https://github.com/diaspora/diaspora/pull/5594","diff_url":"https://github.com/diaspora/diaspora/pull/5594.diff","patch_url":"https://github.com/diaspora/diaspora/pull/5594.patch"},"body":"Added a \"add contact\" dropdown in mobile view.\r\nA user can add and remove people from existing aspects in mobile view.\r\nI use the first option in the select field to be a cover reflecting the current state (like the desktop-dropdown does). Since this option is marked disabled and shown in the popup, the user has some overview of the current status when adding a person to aspects.\r\n\r\n**Why select in single-select-mode and not \"multiple\"?**\r\nAdding people to aspects is a \"choose multiple\" task, similar to selecting aspects in the publisher. The multiple-select HTML-element would be perfect for that. Instead I did some JS-magic with the single-mode-select because mobile browsers are much more predictable how they display the select (firefox mobile was not very usable with multiple select).\r\n\r\n**The checks and dots are not well aligned!**\r\nYeah... since I did not find a way to style the selection popup. This is the best I could do with utf8 to let it look okay... If someone has a better idea, please comment.\r\n\r\nThis will solve #4055.\r\n\r\n(I have to write tests now...)\r\n\r\nScreenshots (Firefox mobile on Android):\r\n![profile1](https://cloud.githubusercontent.com/assets/1184859/5902944/ffa5e506-a57e-11e4-8175-903106fcca45.png)\r\n\r\n![profile2](https://cloud.githubusercontent.com/assets/1184859/5902945/03e432d0-a57f-11e4-87b4-792630cf40da.png)\r\n\r\nGoogle Chrome on Android:\r\n![profile3](https://cloud.githubusercontent.com/assets/1184859/5903097/f9c596f8-a57f-11e4-8289-7fbec7e4e805.png)\r\n"},"comment":{"url":"https://api.github.com/repos/diaspora/diaspora/issues/comments/71488779","html_url":"https://github.com/diaspora/diaspora/pull/5594#issuecomment-71488779","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/5594","id":71488779,"user":{"login":"Flaburgan","id":930064,"avatar_url":"https://avatars.githubusercontent.com/u/930064?v=3","gravatar_id":"","url":"https://api.github.com/users/Flaburgan","html_url":"https://github.com/Flaburgan","followers_url":"https://api.github.com/users/Flaburgan/followers","following_url":"https://api.github.com/users/Flaburgan/following{/other_user}","gists_url":"https://api.github.com/users/Flaburgan/gists{/gist_id}","starred_url":"https://api.github.com/users/Flaburgan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flaburgan/subscriptions","organizations_url":"https://api.github.com/users/Flaburgan/orgs","repos_url":"https://api.github.com/users/Flaburgan/repos","events_url":"https://api.github.com/users/Flaburgan/events{/privacy}","received_events_url":"https://api.github.com/users/Flaburgan/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T16:27:54Z","updated_at":"2015-01-26T16:27:54Z","body":"You're the man!"}}