{"action":"created","comment":{"url":"https://api.github.com/repos/tidepool-org/viz/pulls/comments/79471552","id":79471552,"diff_hunk":"@@ -305,40 +305,24 @@ export class TrendsContainer extends React.Component {\n   }\n \n   render() {\n-    const { timePrefs } = this.props;\n-    const timezone = datetime.getTimezoneFromTimePrefs(timePrefs);\n-    if (this.props.showingSmbg) {\n-      const { smbgTrendsComponent: SMBGTrendsContainer } = this.props;\n-      return (\n-        <SMBGTrendsContainer\n-          bgClasses={this.props.bgClasses}\n-          bgDomain={[this.state.bgDomain.lo, this.state.bgDomain.hi]}\n-          bgUnits={this.props.bgUnits}\n-          boxOverlay={this.props.smbgRangeOverlay}\n-          data={this.state.currentSmbgData}\n-          grouped={this.props.smbgGrouped}\n-          onSelectDay={this.props.onSelectDay}\n-          showingLines={this.props.smbgLines}\n-          timezone={timezone}\n-        />\n-      );\n-    } else if (this.props.showingCbg) {\n-      return (\n-        <CBGTrendsContainer\n-          bgBounds={this.props.bgBounds}\n-          bgUnits={this.props.bgUnits}\n-          data={this.state.currentCbgData}\n-          focusedSlice={this.props.viz.trends.focusedCbgSlice}\n-          focusedSliceKeys={this.props.viz.trends.focusedCbgSliceKeys}\n-          focusSlice={this.props.focusTrendsCbgSlice}\n-          unfocusSlice={this.props.unfocusTrendsCbgSlice}\n-          timezone={timezone}\n-          xScale={this.state.xScale}\n-          yScale={this.state.yScale}\n-        />\n-      );\n-    }\n-    return null;\n+    return (\n+      <TrendsSVGContainer\n+        bgBounds={this.props.bgBounds}\n+        bgUnits={this.props.bgUnits}\n+        data={this.state.currentCbgData}\n+        focusedSlice={this.props.viz.trends.focusedCbgSlice}\n+        focusedSliceKeys={this.props.viz.trends.focusedCbgSliceKeys}\n+        focusRange={(d) => { console.log('focusRange', d); }}","path":"src/containers/trends/TrendsContainer.js","position":54,"original_position":54,"commit_id":"08c0a2d66e9a285ca64fc073228d91d771185898","original_commit_id":"08c0a2d66e9a285ca64fc073228d91d771185898","user":{"login":"jebeck","id":1588547,"avatar_url":"https://avatars.githubusercontent.com/u/1588547?v=3","gravatar_id":"","url":"https://api.github.com/users/jebeck","html_url":"https://github.com/jebeck","followers_url":"https://api.github.com/users/jebeck/followers","following_url":"https://api.github.com/users/jebeck/following{/other_user}","gists_url":"https://api.github.com/users/jebeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jebeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebeck/subscriptions","organizations_url":"https://api.github.com/users/jebeck/orgs","repos_url":"https://api.github.com/users/jebeck/repos","events_url":"https://api.github.com/users/jebeck/events{/privacy}","received_events_url":"https://api.github.com/users/jebeck/received_events","type":"User","site_admin":false},"body":"Yep.","created_at":"2016-09-19T19:37:32Z","updated_at":"2016-09-19T19:37:32Z","html_url":"https://github.com/tidepool-org/viz/pull/12#discussion_r79471552","pull_request_url":"https://api.github.com/repos/tidepool-org/viz/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/comments/79471552"},"html":{"href":"https://github.com/tidepool-org/viz/pull/12#discussion_r79471552"},"pull_request":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/tidepool-org/viz/pulls/12","id":85499351,"html_url":"https://github.com/tidepool-org/viz/pull/12","diff_url":"https://github.com/tidepool-org/viz/pull/12.diff","patch_url":"https://github.com/tidepool-org/viz/pull/12.patch","issue_url":"https://api.github.com/repos/tidepool-org/viz/issues/12","number":12,"state":"open","locked":false,"title":"render smbg range overlay","user":{"login":"jebeck","id":1588547,"avatar_url":"https://avatars.githubusercontent.com/u/1588547?v=3","gravatar_id":"","url":"https://api.github.com/users/jebeck","html_url":"https://github.com/jebeck","followers_url":"https://api.github.com/users/jebeck/followers","following_url":"https://api.github.com/users/jebeck/following{/other_user}","gists_url":"https://api.github.com/users/jebeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jebeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jebeck/subscriptions","organizations_url":"https://api.github.com/users/jebeck/orgs","repos_url":"https://api.github.com/users/jebeck/repos","events_url":"https://api.github.com/users/jebeck/events{/privacy}","received_events_url":"https://api.github.com/users/jebeck/received_events","type":"User","site_admin":false},"body":"This is a first chunk of the work to port the smbg version of the trends view into this repo. Here we have the stats calculation for the smbg display and render the min/max overlay and mean circle with animated transition as you change day filters and/or navigate along the time dimension.\r\n\r\nPing @jh-bate for review and I can now show you a refactoring task that you could take to build off this.","created_at":"2016-09-15T23:42:04Z","updated_at":"2016-09-19T19:37:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44d270cc2d7635c49eca547ed7c7522b8ce64a1e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/tidepool-org/viz/pulls/12/commits","review_comments_url":"https://api.github.com/repos/tidepool-org/viz/pulls/12/comments","review_comment_url":"https://api.github.com/repos/tidepool-org/viz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tidepool-org/viz/issues/12/comments","statuses_url":"https://api.github.com/repos/tidepool-org/viz/statuses/08c0a2d66e9a285ca64fc073228d91d771185898","head":{"label":"tidepool-org:jebeck/render-smbg-range-overlay","ref":"jebeck/render-smbg-range-overlay","sha":"08c0a2d66e9a285ca64fc073228d91d771185898","user":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"repo":{"id":62839276,"name":"viz","full_name":"tidepool-org/viz","owner":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tidepool-org/viz","description":"Tidepool data visualization for diabetes device data.","fork":false,"url":"https://api.github.com/repos/tidepool-org/viz","forks_url":"https://api.github.com/repos/tidepool-org/viz/forks","keys_url":"https://api.github.com/repos/tidepool-org/viz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tidepool-org/viz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tidepool-org/viz/teams","hooks_url":"https://api.github.com/repos/tidepool-org/viz/hooks","issue_events_url":"https://api.github.com/repos/tidepool-org/viz/issues/events{/number}","events_url":"https://api.github.com/repos/tidepool-org/viz/events","assignees_url":"https://api.github.com/repos/tidepool-org/viz/assignees{/user}","branches_url":"https://api.github.com/repos/tidepool-org/viz/branches{/branch}","tags_url":"https://api.github.com/repos/tidepool-org/viz/tags","blobs_url":"https://api.github.com/repos/tidepool-org/viz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tidepool-org/viz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tidepool-org/viz/git/refs{/sha}","trees_url":"https://api.github.com/repos/tidepool-org/viz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tidepool-org/viz/statuses/{sha}","languages_url":"https://api.github.com/repos/tidepool-org/viz/languages","stargazers_url":"https://api.github.com/repos/tidepool-org/viz/stargazers","contributors_url":"https://api.github.com/repos/tidepool-org/viz/contributors","subscribers_url":"https://api.github.com/repos/tidepool-org/viz/subscribers","subscription_url":"https://api.github.com/repos/tidepool-org/viz/subscription","commits_url":"https://api.github.com/repos/tidepool-org/viz/commits{/sha}","git_commits_url":"https://api.github.com/repos/tidepool-org/viz/git/commits{/sha}","comments_url":"https://api.github.com/repos/tidepool-org/viz/comments{/number}","issue_comment_url":"https://api.github.com/repos/tidepool-org/viz/issues/comments{/number}","contents_url":"https://api.github.com/repos/tidepool-org/viz/contents/{+path}","compare_url":"https://api.github.com/repos/tidepool-org/viz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tidepool-org/viz/merges","archive_url":"https://api.github.com/repos/tidepool-org/viz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tidepool-org/viz/downloads","issues_url":"https://api.github.com/repos/tidepool-org/viz/issues{/number}","pulls_url":"https://api.github.com/repos/tidepool-org/viz/pulls{/number}","milestones_url":"https://api.github.com/repos/tidepool-org/viz/milestones{/number}","notifications_url":"https://api.github.com/repos/tidepool-org/viz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tidepool-org/viz/labels{/name}","releases_url":"https://api.github.com/repos/tidepool-org/viz/releases{/id}","deployments_url":"https://api.github.com/repos/tidepool-org/viz/deployments","created_at":"2016-07-07T21:30:33Z","updated_at":"2016-07-11T20:07:44Z","pushed_at":"2016-09-19T00:50:06Z","git_url":"git://github.com/tidepool-org/viz.git","ssh_url":"git@github.com:tidepool-org/viz.git","clone_url":"https://github.com/tidepool-org/viz.git","svn_url":"https://github.com/tidepool-org/viz","homepage":"","size":350,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"tidepool-org:port-smbg-trends","ref":"port-smbg-trends","sha":"8b650b28c484e9f2fcf7f42fa3a4ea28ac4cb67a","user":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"repo":{"id":62839276,"name":"viz","full_name":"tidepool-org/viz","owner":{"login":"tidepool-org","id":4390820,"avatar_url":"https://avatars.githubusercontent.com/u/4390820?v=3","gravatar_id":"","url":"https://api.github.com/users/tidepool-org","html_url":"https://github.com/tidepool-org","followers_url":"https://api.github.com/users/tidepool-org/followers","following_url":"https://api.github.com/users/tidepool-org/following{/other_user}","gists_url":"https://api.github.com/users/tidepool-org/gists{/gist_id}","starred_url":"https://api.github.com/users/tidepool-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidepool-org/subscriptions","organizations_url":"https://api.github.com/users/tidepool-org/orgs","repos_url":"https://api.github.com/users/tidepool-org/repos","events_url":"https://api.github.com/users/tidepool-org/events{/privacy}","received_events_url":"https://api.github.com/users/tidepool-org/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tidepool-org/viz","description":"Tidepool data visualization for diabetes device data.","fork":false,"url":"https://api.github.com/repos/tidepool-org/viz","forks_url":"https://api.github.com/repos/tidepool-org/viz/forks","keys_url":"https://api.github.com/repos/tidepool-org/viz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tidepool-org/viz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tidepool-org/viz/teams","hooks_url":"https://api.github.com/repos/tidepool-org/viz/hooks","issue_events_url":"https://api.github.com/repos/tidepool-org/viz/issues/events{/number}","events_url":"https://api.github.com/repos/tidepool-org/viz/events","assignees_url":"https://api.github.com/repos/tidepool-org/viz/assignees{/user}","branches_url":"https://api.github.com/repos/tidepool-org/viz/branches{/branch}","tags_url":"https://api.github.com/repos/tidepool-org/viz/tags","blobs_url":"https://api.github.com/repos/tidepool-org/viz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tidepool-org/viz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tidepool-org/viz/git/refs{/sha}","trees_url":"https://api.github.com/repos/tidepool-org/viz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tidepool-org/viz/statuses/{sha}","languages_url":"https://api.github.com/repos/tidepool-org/viz/languages","stargazers_url":"https://api.github.com/repos/tidepool-org/viz/stargazers","contributors_url":"https://api.github.com/repos/tidepool-org/viz/contributors","subscribers_url":"https://api.github.com/repos/tidepool-org/viz/subscribers","subscription_url":"https://api.github.com/repos/tidepool-org/viz/subscription","commits_url":"https://api.github.com/repos/tidepool-org/viz/commits{/sha}","git_commits_url":"https://api.github.com/repos/tidepool-org/viz/git/commits{/sha}","comments_url":"https://api.github.com/repos/tidepool-org/viz/comments{/number}","issue_comment_url":"https://api.github.com/repos/tidepool-org/viz/issues/comments{/number}","contents_url":"https://api.github.com/repos/tidepool-org/viz/contents/{+path}","compare_url":"https://api.github.com/repos/tidepool-org/viz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tidepool-org/viz/merges","archive_url":"https://api.github.com/repos/tidepool-org/viz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tidepool-org/viz/downloads","issues_url":"https://api.github.com/repos/tidepool-org/viz/issues{/number}","pulls_url":"https://api.github.com/repos/tidepool-org/viz/pulls{/number}","milestones_url":"https://api.github.com/repos/tidepool-org/viz/milestones{/number}","notifications_url":"https://api.github.com/repos/tidepool-org/viz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tidepool-org/viz/labels{/name}","releases_url":"https://api.github.com/repos/tidepool-org/viz/releases{/id}","deployments_url":"https://api.github.com/repos/tidepool-org/viz/deployments","created_at":"2016-07-07T21:30:33Z","updated_at":"2016-07-11T20:07:44Z","pushed_at":"2016-09-19T00:50:06Z","git_url":"git://github.com/tidepool-org/viz.git","ssh_url":"git@github.com:tidepool-org/viz.git","clone_url":"https://github.com/tidepool-org/viz.git","svn_url":"https://github.com/tidepool-org/viz","homepage":"","size":350,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/12"},"html":{"href":"https://github.com/tidepool-org/viz/pull/12"},"issue":{"href":"https://api.github.com/repos/tidepool-org/viz/issues/12"},"comments":{"href":"https://api.github.com/repos/tidepool-org/viz/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tidepool-org/viz/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/tidepool-org/viz/statuses/08c0a2d66e9a285ca64fc073228d91d771185898"}}}}
{"actor":{"display_login":"jebeck"}}