{"action":"created","comment":{"url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/comments/228767015","pull_request_review_id":169111239,"id":228767015,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODc2NzAxNQ==","diff_hunk":"@@ -0,0 +1,127 @@\n+import React, { Component } from 'react';\n+import PropTypes from 'prop-types';\n+import { inject } from 'lib/Injector';\n+import i18n from 'i18n';\n+import { Button } from 'reactstrap';\n+\n+class ColorPickerField extends Component {\n+  constructor(props) {\n+    super(props);\n+\n+    this.handleToggle = this.handleToggle.bind(this);\n+\n+    this.state = {\n+      isOpen: false,\n+      value: props.value,\n+    };\n+  }\n+\n+  handleToggle() {\n+    this.setState({\n+      isOpen: !this.state.isOpen\n+    });\n+  }\n+\n+  renderButton() {\n+    const { value } = this.state;\n+    const { colors, name } = this.props;\n+    let color;\n+\n+    if (value) {\n+      color = colors.find(({ CSSClass }) => CSSClass === value);\n+    }\n+    if (!color) {\n+      color = colors[0];\n+    }\n+\n+    return (\n+      <Button\n+        id={`Popover_${name}`}\n+        onClick={this.handleToggle}\n+        className=\"color-picker-field-button\"\n+      >\n+        <div\n+          className=\"color-picker-field-button__color-icon\"\n+          style={{ backgroundColor: color ? color.Color : 'transparent' }}\n+        />\n+        <div className=\"color-picker-field-button__color-label\">\n+          { color ? color.Title : <em>None</em> }","path":"client/src/components/ColorPickerField/ColorPickerField.js","position":48,"original_position":48,"commit_id":"d756ace43b8fd7572234a87bedcebea77f80a051","original_commit_id":"d756ace43b8fd7572234a87bedcebea77f80a051","user":{"login":"scott1702","id":10215604,"node_id":"MDQ6VXNlcjEwMjE1NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/10215604?v=4","gravatar_id":"","url":"https://api.github.com/users/scott1702","html_url":"https://github.com/scott1702","followers_url":"https://api.github.com/users/scott1702/followers","following_url":"https://api.github.com/users/scott1702/following{/other_user}","gists_url":"https://api.github.com/users/scott1702/gists{/gist_id}","starred_url":"https://api.github.com/users/scott1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott1702/subscriptions","organizations_url":"https://api.github.com/users/scott1702/orgs","repos_url":"https://api.github.com/users/scott1702/repos","events_url":"https://api.github.com/users/scott1702/events{/privacy}","received_events_url":"https://api.github.com/users/scott1702/received_events","type":"User","site_admin":false},"body":"translate 'None'","created_at":"2018-10-28T21:49:34Z","updated_at":"2018-10-28T21:49:35Z","html_url":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4#discussion_r228767015","pull_request_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/comments/228767015"},"html":{"href":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4#discussion_r228767015"},"pull_request":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4","id":226399631,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2Mzk5NjMx","html_url":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4","diff_url":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4.diff","patch_url":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4.patch","issue_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/4","number":4,"state":"open","locked":false,"title":"NEW Color picker field","user":{"login":"scott1702","id":10215604,"node_id":"MDQ6VXNlcjEwMjE1NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/10215604?v=4","gravatar_id":"","url":"https://api.github.com/users/scott1702","html_url":"https://github.com/scott1702","followers_url":"https://api.github.com/users/scott1702/followers","following_url":"https://api.github.com/users/scott1702/following{/other_user}","gists_url":"https://api.github.com/users/scott1702/gists{/gist_id}","starred_url":"https://api.github.com/users/scott1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott1702/subscriptions","organizations_url":"https://api.github.com/users/scott1702/orgs","repos_url":"https://api.github.com/users/scott1702/repos","events_url":"https://api.github.com/users/scott1702/events{/privacy}","received_events_url":"https://api.github.com/users/scott1702/received_events","type":"User","site_admin":false},"body":"Just a PR to cleanly see all the changes made by everyone before progressing the changes forward to the upstream PR","created_at":"2018-10-28T21:43:17Z","updated_at":"2018-10-28T21:49:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"905e1259ee321a01a5f0f2ec04f78189031b8310","assignee":{"login":"scott1702","id":10215604,"node_id":"MDQ6VXNlcjEwMjE1NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/10215604?v=4","gravatar_id":"","url":"https://api.github.com/users/scott1702","html_url":"https://github.com/scott1702","followers_url":"https://api.github.com/users/scott1702/followers","following_url":"https://api.github.com/users/scott1702/following{/other_user}","gists_url":"https://api.github.com/users/scott1702/gists{/gist_id}","starred_url":"https://api.github.com/users/scott1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott1702/subscriptions","organizations_url":"https://api.github.com/users/scott1702/orgs","repos_url":"https://api.github.com/users/scott1702/repos","events_url":"https://api.github.com/users/scott1702/events{/privacy}","received_events_url":"https://api.github.com/users/scott1702/received_events","type":"User","site_admin":false},"assignees":[{"login":"scott1702","id":10215604,"node_id":"MDQ6VXNlcjEwMjE1NjA0","avatar_url":"https://avatars3.githubusercontent.com/u/10215604?v=4","gravatar_id":"","url":"https://api.github.com/users/scott1702","html_url":"https://github.com/scott1702","followers_url":"https://api.github.com/users/scott1702/followers","following_url":"https://api.github.com/users/scott1702/following{/other_user}","gists_url":"https://api.github.com/users/scott1702/gists{/gist_id}","starred_url":"https://api.github.com/users/scott1702/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott1702/subscriptions","organizations_url":"https://api.github.com/users/scott1702/orgs","repos_url":"https://api.github.com/users/scott1702/repos","events_url":"https://api.github.com/users/scott1702/events{/privacy}","received_events_url":"https://api.github.com/users/scott1702/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4/commits","review_comments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4/comments","review_comment_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/4/comments","statuses_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/statuses/d756ace43b8fd7572234a87bedcebea77f80a051","head":{"label":"spaceship-operators:feature/color-picker-field","ref":"feature/color-picker-field","sha":"d756ace43b8fd7572234a87bedcebea77f80a051","user":{"login":"spaceship-operators","id":18562743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTYyNzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18562743?v=4","gravatar_id":"","url":"https://api.github.com/users/spaceship-operators","html_url":"https://github.com/spaceship-operators","followers_url":"https://api.github.com/users/spaceship-operators/followers","following_url":"https://api.github.com/users/spaceship-operators/following{/other_user}","gists_url":"https://api.github.com/users/spaceship-operators/gists{/gist_id}","starred_url":"https://api.github.com/users/spaceship-operators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaceship-operators/subscriptions","organizations_url":"https://api.github.com/users/spaceship-operators/orgs","repos_url":"https://api.github.com/users/spaceship-operators/repos","events_url":"https://api.github.com/users/spaceship-operators/events{/privacy}","received_events_url":"https://api.github.com/users/spaceship-operators/received_events","type":"Organization","site_admin":false},"repo":{"id":149542636,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1NDI2MzY=","name":"cwp-agencyextensions","full_name":"spaceship-operators/cwp-agencyextensions","private":false,"owner":{"login":"spaceship-operators","id":18562743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTYyNzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18562743?v=4","gravatar_id":"","url":"https://api.github.com/users/spaceship-operators","html_url":"https://github.com/spaceship-operators","followers_url":"https://api.github.com/users/spaceship-operators/followers","following_url":"https://api.github.com/users/spaceship-operators/following{/other_user}","gists_url":"https://api.github.com/users/spaceship-operators/gists{/gist_id}","starred_url":"https://api.github.com/users/spaceship-operators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaceship-operators/subscriptions","organizations_url":"https://api.github.com/users/spaceship-operators/orgs","repos_url":"https://api.github.com/users/spaceship-operators/repos","events_url":"https://api.github.com/users/spaceship-operators/events{/privacy}","received_events_url":"https://api.github.com/users/spaceship-operators/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spaceship-operators/cwp-agencyextensions","description":"Provides extra CWP functionality for self-managed agency style websites","fork":true,"url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions","forks_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/forks","keys_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/teams","hooks_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/hooks","issue_events_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/events{/number}","events_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/events","assignees_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/assignees{/user}","branches_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/branches{/branch}","tags_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/tags","blobs_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/statuses/{sha}","languages_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/languages","stargazers_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/stargazers","contributors_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/contributors","subscribers_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/subscribers","subscription_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/subscription","commits_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/contents/{+path}","compare_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/merges","archive_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/downloads","issues_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues{/number}","pulls_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls{/number}","milestones_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/milestones{/number}","notifications_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/labels{/name}","releases_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/releases{/id}","deployments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/deployments","created_at":"2018-09-20T02:55:55Z","updated_at":"2018-09-20T02:55:57Z","pushed_at":"2018-10-28T21:43:17Z","git_url":"git://github.com/spaceship-operators/cwp-agencyextensions.git","ssh_url":"git@github.com:spaceship-operators/cwp-agencyextensions.git","clone_url":"https://github.com/spaceship-operators/cwp-agencyextensions.git","svn_url":"https://github.com/spaceship-operators/cwp-agencyextensions","homepage":null,"size":326,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"spaceship-operators:feature/watea-plus","ref":"feature/watea-plus","sha":"d821959e2331b67525919abe4e31f7e7ee278449","user":{"login":"spaceship-operators","id":18562743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTYyNzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18562743?v=4","gravatar_id":"","url":"https://api.github.com/users/spaceship-operators","html_url":"https://github.com/spaceship-operators","followers_url":"https://api.github.com/users/spaceship-operators/followers","following_url":"https://api.github.com/users/spaceship-operators/following{/other_user}","gists_url":"https://api.github.com/users/spaceship-operators/gists{/gist_id}","starred_url":"https://api.github.com/users/spaceship-operators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaceship-operators/subscriptions","organizations_url":"https://api.github.com/users/spaceship-operators/orgs","repos_url":"https://api.github.com/users/spaceship-operators/repos","events_url":"https://api.github.com/users/spaceship-operators/events{/privacy}","received_events_url":"https://api.github.com/users/spaceship-operators/received_events","type":"Organization","site_admin":false},"repo":{"id":149542636,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk1NDI2MzY=","name":"cwp-agencyextensions","full_name":"spaceship-operators/cwp-agencyextensions","private":false,"owner":{"login":"spaceship-operators","id":18562743,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NTYyNzQz","avatar_url":"https://avatars1.githubusercontent.com/u/18562743?v=4","gravatar_id":"","url":"https://api.github.com/users/spaceship-operators","html_url":"https://github.com/spaceship-operators","followers_url":"https://api.github.com/users/spaceship-operators/followers","following_url":"https://api.github.com/users/spaceship-operators/following{/other_user}","gists_url":"https://api.github.com/users/spaceship-operators/gists{/gist_id}","starred_url":"https://api.github.com/users/spaceship-operators/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spaceship-operators/subscriptions","organizations_url":"https://api.github.com/users/spaceship-operators/orgs","repos_url":"https://api.github.com/users/spaceship-operators/repos","events_url":"https://api.github.com/users/spaceship-operators/events{/privacy}","received_events_url":"https://api.github.com/users/spaceship-operators/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/spaceship-operators/cwp-agencyextensions","description":"Provides extra CWP functionality for self-managed agency style websites","fork":true,"url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions","forks_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/forks","keys_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/teams","hooks_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/hooks","issue_events_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/events{/number}","events_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/events","assignees_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/assignees{/user}","branches_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/branches{/branch}","tags_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/tags","blobs_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/refs{/sha}","trees_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/statuses/{sha}","languages_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/languages","stargazers_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/stargazers","contributors_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/contributors","subscribers_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/subscribers","subscription_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/subscription","commits_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/commits{/sha}","git_commits_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/git/commits{/sha}","comments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/comments{/number}","issue_comment_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/comments{/number}","contents_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/contents/{+path}","compare_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/merges","archive_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/downloads","issues_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues{/number}","pulls_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls{/number}","milestones_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/milestones{/number}","notifications_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/labels{/name}","releases_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/releases{/id}","deployments_url":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/deployments","created_at":"2018-09-20T02:55:55Z","updated_at":"2018-09-20T02:55:57Z","pushed_at":"2018-10-28T21:43:17Z","git_url":"git://github.com/spaceship-operators/cwp-agencyextensions.git","ssh_url":"git@github.com:spaceship-operators/cwp-agencyextensions.git","clone_url":"https://github.com/spaceship-operators/cwp-agencyextensions.git","svn_url":"https://github.com/spaceship-operators/cwp-agencyextensions","homepage":null,"size":326,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4"},"html":{"href":"https://github.com/spaceship-operators/cwp-agencyextensions/pull/4"},"issue":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/4"},"comments":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/spaceship-operators/cwp-agencyextensions/statuses/d756ace43b8fd7572234a87bedcebea77f80a051"}},"author_association":"NONE"}}
{"actor":{"display_login":"scott1702"}}