{"action":"created","comment":{"url":"https://api.github.com/repos/buildkite/frontend/pulls/comments/74165066","id":74165066,"diff_hunk":"@@ -0,0 +1,94 @@\n+import React from 'react';\n+import Relay from 'react-relay';\n+import shallowCompare from 'react-addons-shallow-compare';\n+\n+import Emojify from '../../shared/Emojify';\n+import UserAvatar from \"../../shared/UserAvatar\";\n+import Media from \"../../shared/Media\";\n+import FriendlyTime from \"../../shared/FriendlyTime\";\n+\n+class BuildTooltip extends React.Component {\n+  static propTypes = {\n+    visible: React.PropTypes.bool.isRequired,\n+    top: React.PropTypes.number.isRequired,\n+    left: React.PropTypes.number.isRequired,\n+    build: React.PropTypes.shape({\n+      createdBy: React.PropTypes.shape({\n+        name: React.PropTypes.string.isRequired,\n+        avatar: React.PropTypes.shape({\n+          url: React.PropTypes.string\n+        }).isRequired\n+      }),\n+      message: React.PropTypes.string,\n+      startedAt: React.PropTypes.string,\n+      finishedAt: React.PropTypes.string\n+    }).isRequired\n+  };\n+\n+  shouldComponentUpdate(nextProps, nextState) {\n+    return shallowCompare(this, nextProps, nextState);\n+  }\n+\n+  render() {\n+    if(this.props.visible) {\n+      return (\n+        <div>\n+          <div className=\"bg-white rounded shadow border border-gray p2 block absolute pointer-events-none z2\" style={{ left: this.props.left, top: this.props.top, width: 230 }}>\n+            <img src={require('../../../images/up-pointing-white-nib.svg')} width={32} height={20} alt=\"\" className=\"absolute pointer-events-none\" style={{top: -20, left: 7}} />\n+            <Media align=\"top\">\n+              <Media.Image className=\"mr2\" style={{width: 30, height: 30}} >\n+                <UserAvatar user={this.props.build.createdBy} className=\"fit\" />\n+              </Media.Image>\n+              <Media.Description className=\"truncate\">\n+                <Emojify className=\"block line-height-1 truncate\" text={this.props.build.message} />\n+                <small className=\"dark-gray\">{this.renderTime()}</small>\n+              </Media.Description>\n+            </Media>\n+          </div>\n+        </div>\n+      );\n+    } else {\n+      return <div></div>\n+    }\n+  }\n+\n+  renderTime() {\n+    if(this.props.build.startedAt || this.props.build.finishedAt) {\n+      return (\n+        <FriendlyTime value={this.props.build.finishedAt || this.props.build.startedAt} />\n+      )\n+    } else {\n+      return (\n+        <div>something</div>","path":"app/components/organization/Pipeline/build-tooltip.js","position":62,"original_position":62,"commit_id":"bcbfecc1556dcef5c18a638a49953baa780f17a3","original_commit_id":"bcbfecc1556dcef5c18a638a49953baa780f17a3","user":{"login":"keithpitt","id":25882,"avatar_url":"https://avatars.githubusercontent.com/u/25882?v=3","gravatar_id":"","url":"https://api.github.com/users/keithpitt","html_url":"https://github.com/keithpitt","followers_url":"https://api.github.com/users/keithpitt/followers","following_url":"https://api.github.com/users/keithpitt/following{/other_user}","gists_url":"https://api.github.com/users/keithpitt/gists{/gist_id}","starred_url":"https://api.github.com/users/keithpitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keithpitt/subscriptions","organizations_url":"https://api.github.com/users/keithpitt/orgs","repos_url":"https://api.github.com/users/keithpitt/repos","events_url":"https://api.github.com/users/keithpitt/events{/privacy}","received_events_url":"https://api.github.com/users/keithpitt/received_events","type":"User","site_admin":false},"body":"Oh right, ha ha! We'll fix it when we tweak the contents","created_at":"2016-08-09T23:49:02Z","updated_at":"2016-08-09T23:49:02Z","html_url":"https://github.com/buildkite/frontend/pull/39#discussion_r74165066","pull_request_url":"https://api.github.com/repos/buildkite/frontend/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/comments/74165066"},"html":{"href":"https://github.com/buildkite/frontend/pull/39#discussion_r74165066"},"pull_request":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/buildkite/frontend/pulls/39","id":80581407,"html_url":"https://github.com/buildkite/frontend/pull/39","diff_url":"https://github.com/buildkite/frontend/pull/39.diff","patch_url":"https://github.com/buildkite/frontend/pull/39.patch","issue_url":"https://api.github.com/repos/buildkite/frontend/issues/39","number":39,"state":"open","locked":false,"title":"Improve tooltip positions","user":{"login":"toolmantim","id":153,"avatar_url":"https://avatars.githubusercontent.com/u/153?v=3","gravatar_id":"","url":"https://api.github.com/users/toolmantim","html_url":"https://github.com/toolmantim","followers_url":"https://api.github.com/users/toolmantim/followers","following_url":"https://api.github.com/users/toolmantim/following{/other_user}","gists_url":"https://api.github.com/users/toolmantim/gists{/gist_id}","starred_url":"https://api.github.com/users/toolmantim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toolmantim/subscriptions","organizations_url":"https://api.github.com/users/toolmantim/orgs","repos_url":"https://api.github.com/users/toolmantim/repos","events_url":"https://api.github.com/users/toolmantim/events{/privacy}","received_events_url":"https://api.github.com/users/toolmantim/received_events","type":"User","site_admin":false},"body":"This updates the tooltip position and graph styling.\r\n\r\nBefore:\r\n\r\n![tooltips 1](https://cloud.githubusercontent.com/assets/153/17510052/7c7ddc32-5e60-11e6-9f28-35b2d01ff491.gif)\r\n\r\nAfter:\r\n\r\n![tooltips 2](https://cloud.githubusercontent.com/assets/153/17510057/7e0ba41c-5e60-11e6-8e80-7bff184896d1.gif)","created_at":"2016-08-09T08:38:58Z","updated_at":"2016-08-09T23:49:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d081d56f9b9a1fe815a635c9155f36fc1bb89cd","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/buildkite/frontend/pulls/39/commits","review_comments_url":"https://api.github.com/repos/buildkite/frontend/pulls/39/comments","review_comment_url":"https://api.github.com/repos/buildkite/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/buildkite/frontend/issues/39/comments","statuses_url":"https://api.github.com/repos/buildkite/frontend/statuses/bcbfecc1556dcef5c18a638a49953baa780f17a3","head":{"label":"buildkite:fixed-position-build-tooltips","ref":"fixed-position-build-tooltips","sha":"bcbfecc1556dcef5c18a638a49953baa780f17a3","user":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"repo":{"id":49398224,"name":"frontend","full_name":"buildkite/frontend","owner":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/buildkite/frontend","description":"The front end application code for https://buildkite.com","fork":false,"url":"https://api.github.com/repos/buildkite/frontend","forks_url":"https://api.github.com/repos/buildkite/frontend/forks","keys_url":"https://api.github.com/repos/buildkite/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buildkite/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buildkite/frontend/teams","hooks_url":"https://api.github.com/repos/buildkite/frontend/hooks","issue_events_url":"https://api.github.com/repos/buildkite/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/buildkite/frontend/events","assignees_url":"https://api.github.com/repos/buildkite/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/buildkite/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/buildkite/frontend/tags","blobs_url":"https://api.github.com/repos/buildkite/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buildkite/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buildkite/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/buildkite/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buildkite/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/buildkite/frontend/languages","stargazers_url":"https://api.github.com/repos/buildkite/frontend/stargazers","contributors_url":"https://api.github.com/repos/buildkite/frontend/contributors","subscribers_url":"https://api.github.com/repos/buildkite/frontend/subscribers","subscription_url":"https://api.github.com/repos/buildkite/frontend/subscription","commits_url":"https://api.github.com/repos/buildkite/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/buildkite/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/buildkite/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/buildkite/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/buildkite/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/buildkite/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buildkite/frontend/merges","archive_url":"https://api.github.com/repos/buildkite/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buildkite/frontend/downloads","issues_url":"https://api.github.com/repos/buildkite/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/buildkite/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/buildkite/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/buildkite/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buildkite/frontend/labels{/name}","releases_url":"https://api.github.com/repos/buildkite/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/buildkite/frontend/deployments","created_at":"2016-01-11T02:55:18Z","updated_at":"2016-07-19T09:51:28Z","pushed_at":"2016-08-09T08:38:58Z","git_url":"git://github.com/buildkite/frontend.git","ssh_url":"git@github.com:buildkite/frontend.git","clone_url":"https://github.com/buildkite/frontend.git","svn_url":"https://github.com/buildkite/frontend","homepage":null,"size":779,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":20,"default_branch":"master"}},"base":{"label":"buildkite:master","ref":"master","sha":"59ae7036e985044bb406a59aac718411eae42fe2","user":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"repo":{"id":49398224,"name":"frontend","full_name":"buildkite/frontend","owner":{"login":"buildkite","id":5055988,"avatar_url":"https://avatars.githubusercontent.com/u/5055988?v=3","gravatar_id":"","url":"https://api.github.com/users/buildkite","html_url":"https://github.com/buildkite","followers_url":"https://api.github.com/users/buildkite/followers","following_url":"https://api.github.com/users/buildkite/following{/other_user}","gists_url":"https://api.github.com/users/buildkite/gists{/gist_id}","starred_url":"https://api.github.com/users/buildkite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buildkite/subscriptions","organizations_url":"https://api.github.com/users/buildkite/orgs","repos_url":"https://api.github.com/users/buildkite/repos","events_url":"https://api.github.com/users/buildkite/events{/privacy}","received_events_url":"https://api.github.com/users/buildkite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/buildkite/frontend","description":"The front end application code for https://buildkite.com","fork":false,"url":"https://api.github.com/repos/buildkite/frontend","forks_url":"https://api.github.com/repos/buildkite/frontend/forks","keys_url":"https://api.github.com/repos/buildkite/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buildkite/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buildkite/frontend/teams","hooks_url":"https://api.github.com/repos/buildkite/frontend/hooks","issue_events_url":"https://api.github.com/repos/buildkite/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/buildkite/frontend/events","assignees_url":"https://api.github.com/repos/buildkite/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/buildkite/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/buildkite/frontend/tags","blobs_url":"https://api.github.com/repos/buildkite/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buildkite/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buildkite/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/buildkite/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buildkite/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/buildkite/frontend/languages","stargazers_url":"https://api.github.com/repos/buildkite/frontend/stargazers","contributors_url":"https://api.github.com/repos/buildkite/frontend/contributors","subscribers_url":"https://api.github.com/repos/buildkite/frontend/subscribers","subscription_url":"https://api.github.com/repos/buildkite/frontend/subscription","commits_url":"https://api.github.com/repos/buildkite/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/buildkite/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/buildkite/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/buildkite/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/buildkite/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/buildkite/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buildkite/frontend/merges","archive_url":"https://api.github.com/repos/buildkite/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buildkite/frontend/downloads","issues_url":"https://api.github.com/repos/buildkite/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/buildkite/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/buildkite/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/buildkite/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buildkite/frontend/labels{/name}","releases_url":"https://api.github.com/repos/buildkite/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/buildkite/frontend/deployments","created_at":"2016-01-11T02:55:18Z","updated_at":"2016-07-19T09:51:28Z","pushed_at":"2016-08-09T08:38:58Z","git_url":"git://github.com/buildkite/frontend.git","ssh_url":"git@github.com:buildkite/frontend.git","clone_url":"https://github.com/buildkite/frontend.git","svn_url":"https://github.com/buildkite/frontend","homepage":null,"size":779,"stargazers_count":20,"watchers_count":20,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/39"},"html":{"href":"https://github.com/buildkite/frontend/pull/39"},"issue":{"href":"https://api.github.com/repos/buildkite/frontend/issues/39"},"comments":{"href":"https://api.github.com/repos/buildkite/frontend/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/buildkite/frontend/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/buildkite/frontend/statuses/bcbfecc1556dcef5c18a638a49953baa780f17a3"}}}}
{"actor":{"display_login":"keithpitt"}}