{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/112486836","pull_request_review_id":33806099,"id":112486836,"diff_hunk":"@@ -45,20 +66,24 @@ const StatsNavigation = ( props ) => {\n \t\t\t\t\t{ sectionTitles.year }\n \t\t\t\t</NavItem>\n \t\t\t</NavTabs>\n+\t\t\t{ statsControl }\n \t\t\t<FollowersCount />\n \t\t</SectionNav>\n \t);\n };\n \n StatsNavigation.propTypes = {\n+\tisJetpack: PropTypes.bool,\n+\tisWooConnect: PropTypes.bool,\n \tsection: PropTypes.string.isRequired,\n \tslug: PropTypes.string,\n+\tsiteId: PropTypes.number,\n };\n \n const connectComponent = connect(\n-\tstate => {\n+\t( state, props ) => {\n \t\treturn {\n-\t\t\tslug: getSelectedSiteSlug( state )\n+\t\t\tisWooConnect: props.isJetpack && hasActivePlugin( state, props.siteId, 'woocommerce' )","path":"client/my-sites/stats/stats-navigation/index.jsx","position":67,"original_position":67,"commit_id":"0d0b1d13491a241bdefdbfec6823734e2694659b","original_commit_id":"0d0b1d13491a241bdefdbfec6823734e2694659b","user":{"login":"samouri","id":4656974,"avatar_url":"https://avatars2.githubusercontent.com/u/4656974?v=3","gravatar_id":"","url":"https://api.github.com/users/samouri","html_url":"https://github.com/samouri","followers_url":"https://api.github.com/users/samouri/followers","following_url":"https://api.github.com/users/samouri/following{/other_user}","gists_url":"https://api.github.com/users/samouri/gists{/gist_id}","starred_url":"https://api.github.com/users/samouri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samouri/subscriptions","organizations_url":"https://api.github.com/users/samouri/orgs","repos_url":"https://api.github.com/users/samouri/repos","events_url":"https://api.github.com/users/samouri/events{/privacy}","received_events_url":"https://api.github.com/users/samouri/received_events","type":"User","site_admin":false},"body":"is there a difference between: \r\n`props.isJetpack && hasActivePlugin(...)` vs. `hasActivePlugin(...)`?\r\n\r\nI would assume that if isJetpack were false then hasActivePlugin would be false as well.","created_at":"2017-04-20T15:38:24Z","updated_at":"2017-04-20T15:38:25Z","html_url":"https://github.com/Automattic/wp-calypso/pull/13021#discussion_r112486836","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/112486836"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/13021#discussion_r112486836"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021","id":115442152,"html_url":"https://github.com/Automattic/wp-calypso/pull/13021","diff_url":"https://github.com/Automattic/wp-calypso/pull/13021.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/13021.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/13021","number":13021,"state":"open","locked":false,"title":"Woo Connect-Insights: Add Store Stats toggle","user":{"login":"psealock","id":1922453,"avatar_url":"https://avatars1.githubusercontent.com/u/1922453?v=3","gravatar_id":"","url":"https://api.github.com/users/psealock","html_url":"https://github.com/psealock","followers_url":"https://api.github.com/users/psealock/followers","following_url":"https://api.github.com/users/psealock/following{/other_user}","gists_url":"https://api.github.com/users/psealock/gists{/gist_id}","starred_url":"https://api.github.com/users/psealock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psealock/subscriptions","organizations_url":"https://api.github.com/users/psealock/orgs","repos_url":"https://api.github.com/users/psealock/repos","events_url":"https://api.github.com/users/psealock/events{/privacy}","received_events_url":"https://api.github.com/users/psealock/received_events","type":"User","site_admin":false},"body":"Create a way to toggle between Store Stats and Site stats for jetpack enabled stores with WooCommerce plugin. These changes provides a link to `/store/stats`.\r\n\r\nDepends on https://github.com/Automattic/wp-calypso/pull/12940\r\n\r\n### Before\r\n![screen shot 2017-04-12 at 12 21 26 pm](https://cloud.githubusercontent.com/assets/1922453/24936104/a02b39b4-1f7a-11e7-80ee-336a8cbe6158.png)\r\n\r\n### After\r\n![screen shot 2017-04-10 at 11 52 41 am](https://cloud.githubusercontent.com/assets/1922453/24936084/74c392da-1f7a-11e7-9db6-396291fe01dd.png)\r\n\r\n### Notes\r\n* This pill control is hidden behind the turned off feature flag `woocommerce/extension-stats`\r\n* Designs for this function are not final. cc @raoulwegat @olaolusoga \r\n\r\n### Test\r\n* `ENABLE_FEATURES=woocommerce/extension-stats make run`\r\n* Navigate to `http://calypso.localhost:3000/stats/day/my-cool-website.com`, but will only work if https://github.com/Automattic/wp-calypso/pull/12940 is merged.\r\n\r\nFixes https://github.com/Automattic/wp-calypso/issues/12971\r\n","created_at":"2017-04-12T00:27:12Z","updated_at":"2017-04-20T15:38:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd1222058e0830ed0342f7707f625cc56d7d1fd2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/13021/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/0d0b1d13491a241bdefdbfec6823734e2694659b","head":{"label":"Automattic:add/store-stats-toggle-ui-master","ref":"add/store-stats-toggle-ui-master","sha":"0d0b1d13491a241bdefdbfec6823734e2694659b","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2017-04-20T07:32:22Z","pushed_at":"2017-04-20T15:31:51Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":59593,"stargazers_count":8670,"watchers_count":8670,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1118,"mirror_url":null,"open_issues_count":1906,"forks":1118,"open_issues":1906,"watchers":8670,"default_branch":"master"}},"base":{"label":"Automattic:master","ref":"master","sha":"5a0ad4ef359b404eec128eec336e1f417acd297e","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars2.githubusercontent.com/u/887802?v=3","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The new JavaScript- and API-powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2017-04-20T07:32:22Z","pushed_at":"2017-04-20T15:31:51Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":59593,"stargazers_count":8670,"watchers_count":8670,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1118,"mirror_url":null,"open_issues_count":1906,"forks":1118,"open_issues":1906,"watchers":8670,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/13021"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/13021"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/13021/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/13021/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/0d0b1d13491a241bdefdbfec6823734e2694659b"}}}}
{"actor":{"display_login":"samouri"}}