{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/notifications-admin/issues/332","repository_url":"https://api.github.com/repos/alphagov/notifications-admin","labels_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/332/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/332/comments","events_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/332/events","html_url":"https://github.com/alphagov/notifications-admin/pull/332","id":142650178,"number":332,"title":"Set permissions with checkboxes, not yes/no inputs","user":{"login":"quis","id":355079,"avatar_url":"https://avatars.githubusercontent.com/u/355079?v=3","gravatar_id":"","url":"https://api.github.com/users/quis","html_url":"https://github.com/quis","followers_url":"https://api.github.com/users/quis/followers","following_url":"https://api.github.com/users/quis/following{/other_user}","gists_url":"https://api.github.com/users/quis/gists{/gist_id}","starred_url":"https://api.github.com/users/quis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quis/subscriptions","organizations_url":"https://api.github.com/users/quis/orgs","repos_url":"https://api.github.com/users/quis/repos","events_url":"https://api.github.com/users/quis/events{/privacy}","received_events_url":"https://api.github.com/users/quis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-22T13:28:27Z","updated_at":"2016-03-22T13:28:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/notifications-admin/pulls/332","html_url":"https://github.com/alphagov/notifications-admin/pull/332","diff_url":"https://github.com/alphagov/notifications-admin/pull/332.diff","patch_url":"https://github.com/alphagov/notifications-admin/pull/332.patch"},"body":"Before | After \r\n--- | ---\r\n<img width=\"521\" alt=\"screen shot 2016-03-22 at 10 35 00\" src=\"https://cloud.githubusercontent.com/assets/355079/13953048/c32e1edc-f031-11e5-86ff-75d620f088b9.png\"> | ![image](https://cloud.githubusercontent.com/assets/355079/13953040/b9762952-f031-11e5-86d6-898e11650ef3.png)\r\n\r\n\r\nThe yes/no pattern didn’t work too well, because:\r\n- it didn’t read naturally as a question and answer\r\n- often users left them completely unclicked if they didn’t want to set the permission (rather than clicking no)\r\n\r\nThis commit changes both the invite and edit user pages to use checkboxes to set permissions. If also rewords these pages to read more naturally, and explain what the permissions mean.\r\n\r\nThis meant changing some of the view logic around invites and permissions, and I ended up refactoring a bunch of it because I found it hard to understand what was going on."},"comment":{"url":"https://api.github.com/repos/alphagov/notifications-admin/issues/comments/199814884","html_url":"https://github.com/alphagov/notifications-admin/pull/332#issuecomment-199814884","issue_url":"https://api.github.com/repos/alphagov/notifications-admin/issues/332","id":199814884,"user":{"login":"quis","id":355079,"avatar_url":"https://avatars.githubusercontent.com/u/355079?v=3","gravatar_id":"","url":"https://api.github.com/users/quis","html_url":"https://github.com/quis","followers_url":"https://api.github.com/users/quis/followers","following_url":"https://api.github.com/users/quis/following{/other_user}","gists_url":"https://api.github.com/users/quis/gists{/gist_id}","starred_url":"https://api.github.com/users/quis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quis/subscriptions","organizations_url":"https://api.github.com/users/quis/orgs","repos_url":"https://api.github.com/users/quis/repos","events_url":"https://api.github.com/users/quis/events{/privacy}","received_events_url":"https://api.github.com/users/quis/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T13:28:41Z","updated_at":"2016-03-22T13:28:41Z","body":"![image](https://cloud.githubusercontent.com/assets/355079/13953090/fc33aa76-f031-11e5-9f82-a77922738a88.png)\r\n\r\n:boom: "}}