{"action":"created","comment":{"url":"https://api.github.com/repos/guardian/grid/pulls/comments/40767226","id":40767226,"diff_hunk":"@@ -0,0 +1,31 @@\n+gr-add-preset-label{\n+    display: flex;\n+    height: 25px;\n+    padding: 5px;\n+}\n+\n+gr-add-preset-label:hover {\n+    color: white;\n+}\n+\n+gr-add-preset-label .small {\n+    border: none;\n+    padding: 0;\n+}\n+\n+.gr-add-preset-label__form {\n+    display: flex;\n+}\n+\n+.gr-add-preset-label__form__input {\n+    width: 150px;\n+}\n+\n+.gr-add-preset-label__form__buttons {","path":"kahuna/public/js/components/gr-add-preset-label/gr-add-preset-label.css","position":24,"original_position":24,"commit_id":"966414905d9d6e63ca2f31067b87b60f719a6c89","original_commit_id":"966414905d9d6e63ca2f31067b87b60f719a6c89","user":{"login":"jamesgorrie","id":31692,"avatar_url":"https://avatars.githubusercontent.com/u/31692?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesgorrie","html_url":"https://github.com/jamesgorrie","followers_url":"https://api.github.com/users/jamesgorrie/followers","following_url":"https://api.github.com/users/jamesgorrie/following{/other_user}","gists_url":"https://api.github.com/users/jamesgorrie/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesgorrie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesgorrie/subscriptions","organizations_url":"https://api.github.com/users/jamesgorrie/orgs","repos_url":"https://api.github.com/users/jamesgorrie/repos","events_url":"https://api.github.com/users/jamesgorrie/events{/privacy}","received_events_url":"https://api.github.com/users/jamesgorrie/received_events","type":"User","site_admin":false},"body":"BEM is only really effective with one layer deep, otherwise it almost destroys it's own usefulness.\r\n\r\nYou could have something like `gr-add-preset-label__form-input` or to be more descriptive `gr-add-preset-label__label-input`.","created_at":"2015-09-30T07:59:08Z","updated_at":"2015-09-30T07:59:08Z","html_url":"https://github.com/guardian/grid/pull/1314#discussion_r40767226","pull_request_url":"https://api.github.com/repos/guardian/grid/pulls/1314","_links":{"self":{"href":"https://api.github.com/repos/guardian/grid/pulls/comments/40767226"},"html":{"href":"https://github.com/guardian/grid/pull/1314#discussion_r40767226"},"pull_request":{"href":"https://api.github.com/repos/guardian/grid/pulls/1314"}}},"pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/1314","id":46302761,"html_url":"https://github.com/guardian/grid/pull/1314","diff_url":"https://github.com/guardian/grid/pull/1314.diff","patch_url":"https://github.com/guardian/grid/pull/1314.patch","issue_url":"https://api.github.com/repos/guardian/grid/issues/1314","number":1314,"state":"open","locked":false,"title":"[WIP] automatically add labels to uploads","user":{"login":"tsop14","id":8484757,"avatar_url":"https://avatars.githubusercontent.com/u/8484757?v=3","gravatar_id":"","url":"https://api.github.com/users/tsop14","html_url":"https://github.com/tsop14","followers_url":"https://api.github.com/users/tsop14/followers","following_url":"https://api.github.com/users/tsop14/following{/other_user}","gists_url":"https://api.github.com/users/tsop14/gists{/gist_id}","starred_url":"https://api.github.com/users/tsop14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsop14/subscriptions","organizations_url":"https://api.github.com/users/tsop14/orgs","repos_url":"https://api.github.com/users/tsop14/repos","events_url":"https://api.github.com/users/tsop14/events{/privacy}","received_events_url":"https://api.github.com/users/tsop14/received_events","type":"User","site_admin":false},"body":"Allows users to create a list of labels that will be automatically added to every upload. \r\n\r\nThese labels are stored in local storage. \r\n\r\n![labels22](https://cloud.githubusercontent.com/assets/8484757/10170839/d37a0b12-66ce-11e5-9865-abf6d0b18f76.gif)\r\n\r\nTODO\r\n\r\n- [ ] Allow users to add more than one label at a time to their list of preset labels using a comma (to make consistent with original add label)\r\n- [ ] Suggest labels?\r\n- [ ] Move presetLabeller files out of prompt folder","created_at":"2015-09-29T16:50:06Z","updated_at":"2015-09-30T07:59:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44d1d9cd0371f2f9a3bd72e344c0d2c75ca2a10d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/grid/pulls/1314/commits","review_comments_url":"https://api.github.com/repos/guardian/grid/pulls/1314/comments","review_comment_url":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/grid/issues/1314/comments","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/966414905d9d6e63ca2f31067b87b60f719a6c89","head":{"label":"guardian:em-upload-labels","ref":"em-upload-labels","sha":"966414905d9d6e63ca2f31067b87b60f719a6c89","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","created_at":"2013-08-22T13:49:31Z","updated_at":"2015-09-30T02:57:07Z","pushed_at":"2015-09-29T16:56:37Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":23488,"stargazers_count":929,"watchers_count":929,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":60,"forks":44,"open_issues":60,"watchers":929,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"db32e9e657939d8c91562ce59f104e58e6a87c85","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","created_at":"2013-08-22T13:49:31Z","updated_at":"2015-09-30T02:57:07Z","pushed_at":"2015-09-29T16:56:37Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":23488,"stargazers_count":929,"watchers_count":929,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":60,"forks":44,"open_issues":60,"watchers":929,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/grid/pulls/1314"},"html":{"href":"https://github.com/guardian/grid/pull/1314"},"issue":{"href":"https://api.github.com/repos/guardian/grid/issues/1314"},"comments":{"href":"https://api.github.com/repos/guardian/grid/issues/1314/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/grid/pulls/1314/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/grid/pulls/1314/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/grid/statuses/966414905d9d6e63ca2f31067b87b60f719a6c89"}}}}