{"action":"created","comment":{"url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/comments/48039842","id":48039842,"diff_hunk":"@@ -0,0 +1,60 @@\n+/* global window document */\n+import React from 'react';\n+import Icon from '@economist/component-icon';\n+import LinkButton from '@economist/component-link-button';\n+import BarWrapper from '@economist/component-bar-wrapper';\n+\n+const betaText = [\n+  (\n+    <span key=\"1\" className=\"beta-bar--message-first\">\n+      You're viewing a beta release of\n+      <span className=\"beta-bar--message-economist\">\n+        {\" The Economist\"}\n+      </span>\n+      's new website\n+    </span>\n+  ),\n+  (\n+    <span key=\"2\" className=\"beta-bar--message-second\">\n+      {' We would like to hear what you think'}\n+    </span>\n+  ),\n+];\n+\n+const googleForm = 'https://docs.google.com/forms/d/1ZCdwituoyhHAPKjCKvDvzRp66zwOv23GrCPH4rGINrE/viewform';\n+\n+export default class BetaBar extends React.Component {\n+  constructor(...args) {\n+    super(...args);\n+    this.handleOldVersion = this.handleOldVersion.bind(this);\n+  }\n+  handleOldVersion(ev) {\n+    // TODO\n+    ev.preventDefault();\n+  }\n+  render() {\n+    const feedbackButton = (\n+      <LinkButton className=\"beta-bar--feedback\" href={googleForm}>\n+        Leave feedback\n+      </LinkButton>\n+    );\n+    const oldVersionButton = (\n+      <a\n+        className=\"beta-bar--old-version\"\n+        href=\"#\"\n+        onClick={this.handleOldVersion}\n+      >\n+        Back to old version\n+      </a>\n+    );\n+    return (\n+      <BarWrapper className=\"beta-bar\" classNamePrefix=\"beta-bar\">\n+        {betaText}\n+        <div className=\"beta-bar--buttons-wrapper\">\n+          {feedbackButton}\n+          {oldVersionButton}","path":"index.es6","position":null,"original_position":55,"commit_id":"ceb3b79ee53082b3b386e331e8fa9ea680569a2d","original_commit_id":"daf755c6986c198a3f3799e4ffd0318406b7fb7a","user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"body":"I've changed that concept to \"fallback\", also \"close\" to \"dismiss\".","created_at":"2015-12-18T16:06:52Z","updated_at":"2015-12-18T16:06:52Z","html_url":"https://github.com/economist-components/component-beta-bar/pull/1#discussion_r48039842","pull_request_url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/comments/48039842"},"html":{"href":"https://github.com/economist-components/component-beta-bar/pull/1#discussion_r48039842"},"pull_request":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1","id":54005809,"html_url":"https://github.com/economist-components/component-beta-bar/pull/1","diff_url":"https://github.com/economist-components/component-beta-bar/pull/1.diff","patch_url":"https://github.com/economist-components/component-beta-bar/pull/1.patch","issue_url":"https://api.github.com/repos/economist-components/component-beta-bar/issues/1","number":1,"state":"open","locked":false,"title":"initial version","user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-17T17:24:33Z","updated_at":"2015-12-18T16:06:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"19ff97f8ff56255692007bd00d385c4c3ba512a7","assignee":{"login":"umbobabo","id":752680,"avatar_url":"https://avatars.githubusercontent.com/u/752680?v=3","gravatar_id":"","url":"https://api.github.com/users/umbobabo","html_url":"https://github.com/umbobabo","followers_url":"https://api.github.com/users/umbobabo/followers","following_url":"https://api.github.com/users/umbobabo/following{/other_user}","gists_url":"https://api.github.com/users/umbobabo/gists{/gist_id}","starred_url":"https://api.github.com/users/umbobabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umbobabo/subscriptions","organizations_url":"https://api.github.com/users/umbobabo/orgs","repos_url":"https://api.github.com/users/umbobabo/repos","events_url":"https://api.github.com/users/umbobabo/events{/privacy}","received_events_url":"https://api.github.com/users/umbobabo/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1/commits","review_comments_url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1/comments","review_comment_url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/economist-components/component-beta-bar/issues/1/comments","statuses_url":"https://api.github.com/repos/economist-components/component-beta-bar/statuses/ceb3b79ee53082b3b386e331e8fa9ea680569a2d","head":{"label":"fabiosantoscode:master","ref":"master","sha":"ceb3b79ee53082b3b386e331e8fa9ea680569a2d","user":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"repo":{"id":48188117,"name":"component-beta-bar","full_name":"fabiosantoscode/component-beta-bar","owner":{"login":"fabiosantoscode","id":1611595,"avatar_url":"https://avatars.githubusercontent.com/u/1611595?v=3","gravatar_id":"","url":"https://api.github.com/users/fabiosantoscode","html_url":"https://github.com/fabiosantoscode","followers_url":"https://api.github.com/users/fabiosantoscode/followers","following_url":"https://api.github.com/users/fabiosantoscode/following{/other_user}","gists_url":"https://api.github.com/users/fabiosantoscode/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiosantoscode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiosantoscode/subscriptions","organizations_url":"https://api.github.com/users/fabiosantoscode/orgs","repos_url":"https://api.github.com/users/fabiosantoscode/repos","events_url":"https://api.github.com/users/fabiosantoscode/events{/privacy}","received_events_url":"https://api.github.com/users/fabiosantoscode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fabiosantoscode/component-beta-bar","description":"","fork":true,"url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar","forks_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/forks","keys_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/teams","hooks_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/hooks","issue_events_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/issues/events{/number}","events_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/events","assignees_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/assignees{/user}","branches_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/branches{/branch}","tags_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/tags","blobs_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/git/refs{/sha}","trees_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/statuses/{sha}","languages_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/languages","stargazers_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/stargazers","contributors_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/contributors","subscribers_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/subscribers","subscription_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/subscription","commits_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/commits{/sha}","git_commits_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/git/commits{/sha}","comments_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/comments{/number}","issue_comment_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/issues/comments{/number}","contents_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/contents/{+path}","compare_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/merges","archive_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/downloads","issues_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/issues{/number}","pulls_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/pulls{/number}","milestones_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/milestones{/number}","notifications_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/labels{/name}","releases_url":"https://api.github.com/repos/fabiosantoscode/component-beta-bar/releases{/id}","created_at":"2015-12-17T17:21:07Z","updated_at":"2015-12-17T17:21:56Z","pushed_at":"2015-12-18T15:47:12Z","git_url":"git://github.com/fabiosantoscode/component-beta-bar.git","ssh_url":"git@github.com:fabiosantoscode/component-beta-bar.git","clone_url":"https://github.com/fabiosantoscode/component-beta-bar.git","svn_url":"https://github.com/fabiosantoscode/component-beta-bar","homepage":null,"size":639,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"economist-components:master","ref":"master","sha":"1bb1be6b0e8f3c2dc3bd7c0abaa94bf335326452","user":{"login":"economist-components","id":14197671,"avatar_url":"https://avatars.githubusercontent.com/u/14197671?v=3","gravatar_id":"","url":"https://api.github.com/users/economist-components","html_url":"https://github.com/economist-components","followers_url":"https://api.github.com/users/economist-components/followers","following_url":"https://api.github.com/users/economist-components/following{/other_user}","gists_url":"https://api.github.com/users/economist-components/gists{/gist_id}","starred_url":"https://api.github.com/users/economist-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/economist-components/subscriptions","organizations_url":"https://api.github.com/users/economist-components/orgs","repos_url":"https://api.github.com/users/economist-components/repos","events_url":"https://api.github.com/users/economist-components/events{/privacy}","received_events_url":"https://api.github.com/users/economist-components/received_events","type":"Organization","site_admin":false},"repo":{"id":48188102,"name":"component-beta-bar","full_name":"economist-components/component-beta-bar","owner":{"login":"economist-components","id":14197671,"avatar_url":"https://avatars.githubusercontent.com/u/14197671?v=3","gravatar_id":"","url":"https://api.github.com/users/economist-components","html_url":"https://github.com/economist-components","followers_url":"https://api.github.com/users/economist-components/followers","following_url":"https://api.github.com/users/economist-components/following{/other_user}","gists_url":"https://api.github.com/users/economist-components/gists{/gist_id}","starred_url":"https://api.github.com/users/economist-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/economist-components/subscriptions","organizations_url":"https://api.github.com/users/economist-components/orgs","repos_url":"https://api.github.com/users/economist-components/repos","events_url":"https://api.github.com/users/economist-components/events{/privacy}","received_events_url":"https://api.github.com/users/economist-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/economist-components/component-beta-bar","description":"","fork":false,"url":"https://api.github.com/repos/economist-components/component-beta-bar","forks_url":"https://api.github.com/repos/economist-components/component-beta-bar/forks","keys_url":"https://api.github.com/repos/economist-components/component-beta-bar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/economist-components/component-beta-bar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/economist-components/component-beta-bar/teams","hooks_url":"https://api.github.com/repos/economist-components/component-beta-bar/hooks","issue_events_url":"https://api.github.com/repos/economist-components/component-beta-bar/issues/events{/number}","events_url":"https://api.github.com/repos/economist-components/component-beta-bar/events","assignees_url":"https://api.github.com/repos/economist-components/component-beta-bar/assignees{/user}","branches_url":"https://api.github.com/repos/economist-components/component-beta-bar/branches{/branch}","tags_url":"https://api.github.com/repos/economist-components/component-beta-bar/tags","blobs_url":"https://api.github.com/repos/economist-components/component-beta-bar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/economist-components/component-beta-bar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/economist-components/component-beta-bar/git/refs{/sha}","trees_url":"https://api.github.com/repos/economist-components/component-beta-bar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/economist-components/component-beta-bar/statuses/{sha}","languages_url":"https://api.github.com/repos/economist-components/component-beta-bar/languages","stargazers_url":"https://api.github.com/repos/economist-components/component-beta-bar/stargazers","contributors_url":"https://api.github.com/repos/economist-components/component-beta-bar/contributors","subscribers_url":"https://api.github.com/repos/economist-components/component-beta-bar/subscribers","subscription_url":"https://api.github.com/repos/economist-components/component-beta-bar/subscription","commits_url":"https://api.github.com/repos/economist-components/component-beta-bar/commits{/sha}","git_commits_url":"https://api.github.com/repos/economist-components/component-beta-bar/git/commits{/sha}","comments_url":"https://api.github.com/repos/economist-components/component-beta-bar/comments{/number}","issue_comment_url":"https://api.github.com/repos/economist-components/component-beta-bar/issues/comments{/number}","contents_url":"https://api.github.com/repos/economist-components/component-beta-bar/contents/{+path}","compare_url":"https://api.github.com/repos/economist-components/component-beta-bar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/economist-components/component-beta-bar/merges","archive_url":"https://api.github.com/repos/economist-components/component-beta-bar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/economist-components/component-beta-bar/downloads","issues_url":"https://api.github.com/repos/economist-components/component-beta-bar/issues{/number}","pulls_url":"https://api.github.com/repos/economist-components/component-beta-bar/pulls{/number}","milestones_url":"https://api.github.com/repos/economist-components/component-beta-bar/milestones{/number}","notifications_url":"https://api.github.com/repos/economist-components/component-beta-bar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/economist-components/component-beta-bar/labels{/name}","releases_url":"https://api.github.com/repos/economist-components/component-beta-bar/releases{/id}","created_at":"2015-12-17T17:20:49Z","updated_at":"2015-12-17T17:20:49Z","pushed_at":"2015-12-18T15:47:13Z","git_url":"git://github.com/economist-components/component-beta-bar.git","ssh_url":"git@github.com:economist-components/component-beta-bar.git","clone_url":"https://github.com/economist-components/component-beta-bar.git","svn_url":"https://github.com/economist-components/component-beta-bar","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1"},"html":{"href":"https://github.com/economist-components/component-beta-bar/pull/1"},"issue":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/issues/1"},"comments":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/economist-components/component-beta-bar/statuses/ceb3b79ee53082b3b386e331e8fa9ea680569a2d"}}}}