{"action":"created","comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/comments/55621679","id":55621679,"diff_hunk":"@@ -16,6 +16,8 @@ require('./videos');\n \n window.React = require('react');\n window.ReactDOM = require('react-dom');\n+window.ColorPicker = require('react-color').default;","path":"code-studio/src/js/code-studio.js","position":4,"original_position":4,"commit_id":"5355ed57b079884a88a510f634a533ed38ee62fc","original_commit_id":"5242840156e1885933fc9f410c1c19184c970a29","user":{"login":"Bjvanminnen","id":1767466,"avatar_url":"https://avatars.githubusercontent.com/u/1767466?v=3","gravatar_id":"","url":"https://api.github.com/users/Bjvanminnen","html_url":"https://github.com/Bjvanminnen","followers_url":"https://api.github.com/users/Bjvanminnen/followers","following_url":"https://api.github.com/users/Bjvanminnen/following{/other_user}","gists_url":"https://api.github.com/users/Bjvanminnen/gists{/gist_id}","starred_url":"https://api.github.com/users/Bjvanminnen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bjvanminnen/subscriptions","organizations_url":"https://api.github.com/users/Bjvanminnen/orgs","repos_url":"https://api.github.com/users/Bjvanminnen/repos","events_url":"https://api.github.com/users/Bjvanminnen/events{/privacy}","received_events_url":"https://api.github.com/users/Bjvanminnen/received_events","type":"User","site_admin":false},"body":"I think I found a way to get this working: https://github.com/code-dot-org/code-dot-org/commit/38e4e5fa9dfbe81ce32df97d74bad8c87ca0b11c.\r\n\r\nThe problem is that a standard browserify transform does not run on anything in node_modules. For that you need a global transform (-g). It might also be possible to configure browserify-shim to just run globally instead of needing to introduce browserify-global-shim.\r\n\r\nI'm not 100% sure I want to introduce radium yet (i.e. this commit may never make it into staging), but it might be worth using this pattern for react-color","created_at":"2016-03-10T01:26:39Z","updated_at":"2016-03-10T01:26:39Z","html_url":"https://github.com/code-dot-org/code-dot-org/pull/7181#discussion_r55621679","pull_request_url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181","_links":{"self":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/comments/55621679"},"html":{"href":"https://github.com/code-dot-org/code-dot-org/pull/7181#discussion_r55621679"},"pull_request":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181"}}},"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181","id":62007598,"html_url":"https://github.com/code-dot-org/code-dot-org/pull/7181","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/7181.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/7181.patch","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/7181","number":7181,"state":"open","locked":false,"title":"Support transparent colors in app lab color picker","user":{"login":"pcardune","id":124827,"avatar_url":"https://avatars.githubusercontent.com/u/124827?v=3","gravatar_id":"","url":"https://api.github.com/users/pcardune","html_url":"https://github.com/pcardune","followers_url":"https://api.github.com/users/pcardune/followers","following_url":"https://api.github.com/users/pcardune/following{/other_user}","gists_url":"https://api.github.com/users/pcardune/gists{/gist_id}","starred_url":"https://api.github.com/users/pcardune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcardune/subscriptions","organizations_url":"https://api.github.com/users/pcardune/orgs","repos_url":"https://api.github.com/users/pcardune/repos","events_url":"https://api.github.com/users/pcardune/events{/privacy}","received_events_url":"https://api.github.com/users/pcardune/received_events","type":"User","site_admin":false},"body":"See pivotal task here: https://www.pivotaltracker.com/projects/1256654/stories/110126144\r\n\r\nThis replaces colpick.js jquery plugin with the react-color component, which includes support for alpha channel when selecting colors but otherwise functions largely the same.","created_at":"2016-03-08T00:53:11Z","updated_at":"2016-03-10T01:26:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1eaa0f897235c4782840082218b6025f8a96b777","assignee":{"login":"islemaster","id":1615761,"avatar_url":"https://avatars.githubusercontent.com/u/1615761?v=3","gravatar_id":"","url":"https://api.github.com/users/islemaster","html_url":"https://github.com/islemaster","followers_url":"https://api.github.com/users/islemaster/followers","following_url":"https://api.github.com/users/islemaster/following{/other_user}","gists_url":"https://api.github.com/users/islemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/islemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islemaster/subscriptions","organizations_url":"https://api.github.com/users/islemaster/orgs","repos_url":"https://api.github.com/users/islemaster/repos","events_url":"https://api.github.com/users/islemaster/events{/privacy}","received_events_url":"https://api.github.com/users/islemaster/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181/commits","review_comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181/comments","review_comment_url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/7181/comments","statuses_url":"https://api.github.com/repos/code-dot-org/code-dot-org/statuses/5355ed57b079884a88a510f634a533ed38ee62fc","head":{"label":"pcardune:pcardune-transparent-colors","ref":"pcardune-transparent-colors","sha":"5355ed57b079884a88a510f634a533ed38ee62fc","user":{"login":"pcardune","id":124827,"avatar_url":"https://avatars.githubusercontent.com/u/124827?v=3","gravatar_id":"","url":"https://api.github.com/users/pcardune","html_url":"https://github.com/pcardune","followers_url":"https://api.github.com/users/pcardune/followers","following_url":"https://api.github.com/users/pcardune/following{/other_user}","gists_url":"https://api.github.com/users/pcardune/gists{/gist_id}","starred_url":"https://api.github.com/users/pcardune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcardune/subscriptions","organizations_url":"https://api.github.com/users/pcardune/orgs","repos_url":"https://api.github.com/users/pcardune/repos","events_url":"https://api.github.com/users/pcardune/events{/privacy}","received_events_url":"https://api.github.com/users/pcardune/received_events","type":"User","site_admin":false},"repo":{"id":51559017,"name":"code-dot-org","full_name":"pcardune/code-dot-org","owner":{"login":"pcardune","id":124827,"avatar_url":"https://avatars.githubusercontent.com/u/124827?v=3","gravatar_id":"","url":"https://api.github.com/users/pcardune","html_url":"https://github.com/pcardune","followers_url":"https://api.github.com/users/pcardune/followers","following_url":"https://api.github.com/users/pcardune/following{/other_user}","gists_url":"https://api.github.com/users/pcardune/gists{/gist_id}","starred_url":"https://api.github.com/users/pcardune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pcardune/subscriptions","organizations_url":"https://api.github.com/users/pcardune/orgs","repos_url":"https://api.github.com/users/pcardune/repos","events_url":"https://api.github.com/users/pcardune/events{/privacy}","received_events_url":"https://api.github.com/users/pcardune/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pcardune/code-dot-org","description":"The code powering code.org and studio.code.org","fork":true,"url":"https://api.github.com/repos/pcardune/code-dot-org","forks_url":"https://api.github.com/repos/pcardune/code-dot-org/forks","keys_url":"https://api.github.com/repos/pcardune/code-dot-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pcardune/code-dot-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pcardune/code-dot-org/teams","hooks_url":"https://api.github.com/repos/pcardune/code-dot-org/hooks","issue_events_url":"https://api.github.com/repos/pcardune/code-dot-org/issues/events{/number}","events_url":"https://api.github.com/repos/pcardune/code-dot-org/events","assignees_url":"https://api.github.com/repos/pcardune/code-dot-org/assignees{/user}","branches_url":"https://api.github.com/repos/pcardune/code-dot-org/branches{/branch}","tags_url":"https://api.github.com/repos/pcardune/code-dot-org/tags","blobs_url":"https://api.github.com/repos/pcardune/code-dot-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pcardune/code-dot-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pcardune/code-dot-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/pcardune/code-dot-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pcardune/code-dot-org/statuses/{sha}","languages_url":"https://api.github.com/repos/pcardune/code-dot-org/languages","stargazers_url":"https://api.github.com/repos/pcardune/code-dot-org/stargazers","contributors_url":"https://api.github.com/repos/pcardune/code-dot-org/contributors","subscribers_url":"https://api.github.com/repos/pcardune/code-dot-org/subscribers","subscription_url":"https://api.github.com/repos/pcardune/code-dot-org/subscription","commits_url":"https://api.github.com/repos/pcardune/code-dot-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/pcardune/code-dot-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/pcardune/code-dot-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/pcardune/code-dot-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/pcardune/code-dot-org/contents/{+path}","compare_url":"https://api.github.com/repos/pcardune/code-dot-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pcardune/code-dot-org/merges","archive_url":"https://api.github.com/repos/pcardune/code-dot-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pcardune/code-dot-org/downloads","issues_url":"https://api.github.com/repos/pcardune/code-dot-org/issues{/number}","pulls_url":"https://api.github.com/repos/pcardune/code-dot-org/pulls{/number}","milestones_url":"https://api.github.com/repos/pcardune/code-dot-org/milestones{/number}","notifications_url":"https://api.github.com/repos/pcardune/code-dot-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pcardune/code-dot-org/labels{/name}","releases_url":"https://api.github.com/repos/pcardune/code-dot-org/releases{/id}","deployments_url":"https://api.github.com/repos/pcardune/code-dot-org/deployments","created_at":"2016-02-12T00:48:29Z","updated_at":"2016-02-12T00:50:11Z","pushed_at":"2016-03-09T01:40:36Z","git_url":"git://github.com/pcardune/code-dot-org.git","ssh_url":"git@github.com:pcardune/code-dot-org.git","clone_url":"https://github.com/pcardune/code-dot-org.git","svn_url":"https://github.com/pcardune/code-dot-org","homepage":"http://code.org","size":4185218,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"staging"}},"base":{"label":"code-dot-org:staging","ref":"staging","sha":"a98bde8f85097066c6002950f5d7a80d0e65ece5","user":{"login":"code-dot-org","id":5124627,"avatar_url":"https://avatars.githubusercontent.com/u/5124627?v=3","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"repo":{"id":24250009,"name":"code-dot-org","full_name":"code-dot-org/code-dot-org","owner":{"login":"code-dot-org","id":5124627,"avatar_url":"https://avatars.githubusercontent.com/u/5124627?v=3","gravatar_id":"","url":"https://api.github.com/users/code-dot-org","html_url":"https://github.com/code-dot-org","followers_url":"https://api.github.com/users/code-dot-org/followers","following_url":"https://api.github.com/users/code-dot-org/following{/other_user}","gists_url":"https://api.github.com/users/code-dot-org/gists{/gist_id}","starred_url":"https://api.github.com/users/code-dot-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-dot-org/subscriptions","organizations_url":"https://api.github.com/users/code-dot-org/orgs","repos_url":"https://api.github.com/users/code-dot-org/repos","events_url":"https://api.github.com/users/code-dot-org/events{/privacy}","received_events_url":"https://api.github.com/users/code-dot-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-dot-org/code-dot-org","description":"The code powering code.org and studio.code.org","fork":false,"url":"https://api.github.com/repos/code-dot-org/code-dot-org","forks_url":"https://api.github.com/repos/code-dot-org/code-dot-org/forks","keys_url":"https://api.github.com/repos/code-dot-org/code-dot-org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-dot-org/code-dot-org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-dot-org/code-dot-org/teams","hooks_url":"https://api.github.com/repos/code-dot-org/code-dot-org/hooks","issue_events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/events{/number}","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/events","assignees_url":"https://api.github.com/repos/code-dot-org/code-dot-org/assignees{/user}","branches_url":"https://api.github.com/repos/code-dot-org/code-dot-org/branches{/branch}","tags_url":"https://api.github.com/repos/code-dot-org/code-dot-org/tags","blobs_url":"https://api.github.com/repos/code-dot-org/code-dot-org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-dot-org/code-dot-org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-dot-org/code-dot-org/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-dot-org/code-dot-org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-dot-org/code-dot-org/statuses/{sha}","languages_url":"https://api.github.com/repos/code-dot-org/code-dot-org/languages","stargazers_url":"https://api.github.com/repos/code-dot-org/code-dot-org/stargazers","contributors_url":"https://api.github.com/repos/code-dot-org/code-dot-org/contributors","subscribers_url":"https://api.github.com/repos/code-dot-org/code-dot-org/subscribers","subscription_url":"https://api.github.com/repos/code-dot-org/code-dot-org/subscription","commits_url":"https://api.github.com/repos/code-dot-org/code-dot-org/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-dot-org/code-dot-org/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-dot-org/code-dot-org/contents/{+path}","compare_url":"https://api.github.com/repos/code-dot-org/code-dot-org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-dot-org/code-dot-org/merges","archive_url":"https://api.github.com/repos/code-dot-org/code-dot-org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-dot-org/code-dot-org/downloads","issues_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues{/number}","pulls_url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls{/number}","milestones_url":"https://api.github.com/repos/code-dot-org/code-dot-org/milestones{/number}","notifications_url":"https://api.github.com/repos/code-dot-org/code-dot-org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/labels{/name}","releases_url":"https://api.github.com/repos/code-dot-org/code-dot-org/releases{/id}","deployments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/deployments","created_at":"2014-09-20T00:46:11Z","updated_at":"2016-03-08T16:29:30Z","pushed_at":"2016-03-10T01:22:59Z","git_url":"git://github.com/code-dot-org/code-dot-org.git","ssh_url":"git@github.com:code-dot-org/code-dot-org.git","clone_url":"https://github.com/code-dot-org/code-dot-org.git","svn_url":"https://github.com/code-dot-org/code-dot-org","homepage":"http://code.org","size":4391089,"stargazers_count":97,"watchers_count":97,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":50,"mirror_url":null,"open_issues_count":72,"forks":50,"open_issues":72,"watchers":97,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181"},"html":{"href":"https://github.com/code-dot-org/code-dot-org/pull/7181"},"issue":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/7181"},"comments":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/7181/comments"},"review_comments":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181/comments"},"review_comment":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/7181/commits"},"statuses":{"href":"https://api.github.com/repos/code-dot-org/code-dot-org/statuses/5355ed57b079884a88a510f634a533ed38ee62fc"}}}}