{"action":"created","comment":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments/71251105","id":71251105,"diff_hunk":"@@ -0,0 +1,34 @@\n+React = require 'react'\n+\n+FILTERS = {\n+    invert: \"url('#svg-invert-filter')\"\n+}\n+\n+INVERT =\n+  '<svg style=\"position: fixed; right: 100%; top: 100%; visibility: hidden;\">\n+    <defs>\n+      <filter id=\"svg-invert-filter\">\n+        <feComponentTransfer>\n+          <feFuncR type=\"table\" tableValues=\"1 0\"/>\n+          <feFuncG type=\"table\" tableValues=\"1 0\"/>\n+          <feFuncB type=\"table\" tableValues=\"1 0\"/>\n+        </feComponentTransfer>\n+      </filter>\n+    </defs>\n+  </svg>'\n+\n+module.exports = React.createClass\n+  displayName: 'ModifiedImage'\n+\n+  componentWillMount: ->\n+    @setElements()","path":"app/components/modified-image.cjsx","position":24,"original_position":24,"commit_id":"ba460d4b98384e9bfaab1558f36e5c28f624ddc7","original_commit_id":"ba460d4b98384e9bfaab1558f36e5c28f624ddc7","user":{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false},"body":"You should do this once, outside the component lifecycle. As written, it'll add a new `#svg-invert-filter` every time one of these mounts.","created_at":"2016-07-18T23:43:51Z","updated_at":"2016-07-18T23:43:51Z","html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803#discussion_r71251105","pull_request_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803","_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments/71251105"},"html":{"href":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803#discussion_r71251105"},"pull_request":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803"}}},"pull_request":{"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803","id":77838245,"html_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803","diff_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803.diff","patch_url":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803.patch","issue_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2803","number":2803,"state":"open","locked":false,"title":"Add Invert Image Tool","user":{"login":"wgranger","id":14099077,"avatar_url":"https://avatars.githubusercontent.com/u/14099077?v=3","gravatar_id":"","url":"https://api.github.com/users/wgranger","html_url":"https://github.com/wgranger","followers_url":"https://api.github.com/users/wgranger/followers","following_url":"https://api.github.com/users/wgranger/following{/other_user}","gists_url":"https://api.github.com/users/wgranger/gists{/gist_id}","starred_url":"https://api.github.com/users/wgranger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wgranger/subscriptions","organizations_url":"https://api.github.com/users/wgranger/orgs","repos_url":"https://api.github.com/users/wgranger/repos","events_url":"https://api.github.com/users/wgranger/events{/privacy}","received_events_url":"https://api.github.com/users/wgranger/received_events","type":"User","site_admin":false},"body":"The invert tool allows users to invert the colors of an image/subject in order to more easily notice objects. This branch was tested and should be working on all browsers (IE, Safari, Firefox, Chrome). I tried to abstract the invert into a modification property to allow the `ModifiedImage` component to be more flexible with other filters in the future.\r\n\r\nStaged branch at https://invert-tool.pfe-preview.zooniverse.org/projects/wgranger-test/invert-testing/classify ","created_at":"2016-07-18T16:31:42Z","updated_at":"2016-07-18T23:43:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8cf8759f78bc530554ee6ddb9ecfe9ce86c82dd","assignee":{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false},"assignees":[{"login":"brian-c","id":464389,"avatar_url":"https://avatars.githubusercontent.com/u/464389?v=3","gravatar_id":"","url":"https://api.github.com/users/brian-c","html_url":"https://github.com/brian-c","followers_url":"https://api.github.com/users/brian-c/followers","following_url":"https://api.github.com/users/brian-c/following{/other_user}","gists_url":"https://api.github.com/users/brian-c/gists{/gist_id}","starred_url":"https://api.github.com/users/brian-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brian-c/subscriptions","organizations_url":"https://api.github.com/users/brian-c/orgs","repos_url":"https://api.github.com/users/brian-c/repos","events_url":"https://api.github.com/users/brian-c/events{/privacy}","received_events_url":"https://api.github.com/users/brian-c/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803/commits","review_comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803/comments","review_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2803/comments","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/ba460d4b98384e9bfaab1558f36e5c28f624ddc7","head":{"label":"zooniverse:invert-tool","ref":"invert-tool","sha":"ba460d4b98384e9bfaab1558f36e5c28f624ddc7","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19498290,"name":"Panoptes-Front-End","full_name":"zooniverse/Panoptes-Front-End","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes-Front-End","description":"Front end for zooniverse/Panoptes","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End","forks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/releases{/id}","deployments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/deployments","created_at":"2014-05-06T14:53:43Z","updated_at":"2016-06-27T09:17:39Z","pushed_at":"2016-07-18T20:55:14Z","git_url":"git://github.com/zooniverse/Panoptes-Front-End.git","ssh_url":"git@github.com:zooniverse/Panoptes-Front-End.git","clone_url":"https://github.com/zooniverse/Panoptes-Front-End.git","svn_url":"https://github.com/zooniverse/Panoptes-Front-End","homepage":"","size":28061,"stargazers_count":28,"watchers_count":28,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":383,"forks":29,"open_issues":383,"watchers":28,"default_branch":"master"}},"base":{"label":"zooniverse:master","ref":"master","sha":"3ddb5cc2fbb8bd923f51c5539b5f9f8192677480","user":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"repo":{"id":19498290,"name":"Panoptes-Front-End","full_name":"zooniverse/Panoptes-Front-End","owner":{"login":"zooniverse","id":106856,"avatar_url":"https://avatars.githubusercontent.com/u/106856?v=3","gravatar_id":"","url":"https://api.github.com/users/zooniverse","html_url":"https://github.com/zooniverse","followers_url":"https://api.github.com/users/zooniverse/followers","following_url":"https://api.github.com/users/zooniverse/following{/other_user}","gists_url":"https://api.github.com/users/zooniverse/gists{/gist_id}","starred_url":"https://api.github.com/users/zooniverse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zooniverse/subscriptions","organizations_url":"https://api.github.com/users/zooniverse/orgs","repos_url":"https://api.github.com/users/zooniverse/repos","events_url":"https://api.github.com/users/zooniverse/events{/privacy}","received_events_url":"https://api.github.com/users/zooniverse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zooniverse/Panoptes-Front-End","description":"Front end for zooniverse/Panoptes","fork":false,"url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End","forks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/forks","keys_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/teams","hooks_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/hooks","issue_events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/events{/number}","events_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/events","assignees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/assignees{/user}","branches_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/branches{/branch}","tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/tags","blobs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/refs{/sha}","trees_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/{sha}","languages_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/languages","stargazers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/stargazers","contributors_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contributors","subscribers_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscribers","subscription_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/subscription","commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/commits{/sha}","git_commits_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/git/commits{/sha}","comments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/comments{/number}","issue_comment_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/comments{/number}","contents_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/contents/{+path}","compare_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/merges","archive_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/downloads","issues_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues{/number}","pulls_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls{/number}","milestones_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/milestones{/number}","notifications_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/labels{/name}","releases_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/releases{/id}","deployments_url":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/deployments","created_at":"2014-05-06T14:53:43Z","updated_at":"2016-06-27T09:17:39Z","pushed_at":"2016-07-18T20:55:14Z","git_url":"git://github.com/zooniverse/Panoptes-Front-End.git","ssh_url":"git@github.com:zooniverse/Panoptes-Front-End.git","clone_url":"https://github.com/zooniverse/Panoptes-Front-End.git","svn_url":"https://github.com/zooniverse/Panoptes-Front-End","homepage":"","size":28061,"stargazers_count":28,"watchers_count":28,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":383,"forks":29,"open_issues":383,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803"},"html":{"href":"https://github.com/zooniverse/Panoptes-Front-End/pull/2803"},"issue":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2803"},"comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/issues/2803/comments"},"review_comments":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803/comments"},"review_comment":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/pulls/2803/commits"},"statuses":{"href":"https://api.github.com/repos/zooniverse/Panoptes-Front-End/statuses/ba460d4b98384e9bfaab1558f36e5c28f624ddc7"}}}}
{"actor":{"display_login":"brian-c"}}