{"action":"created","comment":{"url":"https://api.github.com/repos/Vizzuality/trase/pulls/comments/173460419","pull_request_review_id":102658863,"id":173460419,"diff_hunk":"@@ -0,0 +1,121 @@\n+import React from 'react';\n+import Siema from 'react-siema';\n+import Link from 'redux-first-router-link';\n+import debounce from 'lodash/debounce';\n+\n+class Entrypoints extends React.PureComponent {\n+  static getIsMobile() {\n+    return window.innerWidth <= 700;\n+  }\n+  constructor(props) {\n+    super(props);\n+    this.state = {\n+      currentSlide: 0,\n+      isMobile: Entrypoints.getIsMobile()\n+    };\n+    this.entrypoints = [\n+      {\n+        link: { type: 'profileRoot' },\n+        subtitle: 'Profile',\n+        text:\n+          'View the trade and sustainability profile of a particular' +\n+          ' company or production region.',\n+        className: '-start'\n+      },\n+      {\n+        link: { type: 'tool' },\n+        subtitle: 'Supply Chain',\n+        text:\n+          'Follow trade flows to identify sourcing regions, profile supply chain risks and' +\n+          ' assess opportunities for sustainable production.',\n+        className: '-mid'\n+      },\n+      {\n+        link: { type: 'tool', payload: { state: { isMapVisible: true } } },\n+        subtitle: 'Map',\n+        text:\n+          'Explore the sustainability of different production regions and identify risks and' +\n+          ' opportunities facing downstream buyers.',\n+        className: '-end'\n+      }\n+    ];\n+    this.getSliderRef = this.getSliderRef.bind(this);\n+    this.onClickPrev = this.onClickPrev.bind(this);\n+    this.onClickNext = this.onClickNext.bind(this);\n+    this.onResize = debounce(this.onResize.bind(this), 300);\n+    this.renderEntrypoints = this.renderEntrypoints.bind(this);","path":"frontend/scripts/react-components/home/entrypoints.component.jsx","position":46,"original_position":46,"commit_id":"4cd7381d19e01886f1742898e8049e39a65442c0","original_commit_id":"4cd7381d19e01886f1742898e8049e39a65442c0","user":{"login":"sorodrigo","id":12124839,"avatar_url":"https://avatars0.githubusercontent.com/u/12124839?v=4","gravatar_id":"","url":"https://api.github.com/users/sorodrigo","html_url":"https://github.com/sorodrigo","followers_url":"https://api.github.com/users/sorodrigo/followers","following_url":"https://api.github.com/users/sorodrigo/following{/other_user}","gists_url":"https://api.github.com/users/sorodrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/sorodrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorodrigo/subscriptions","organizations_url":"https://api.github.com/users/sorodrigo/orgs","repos_url":"https://api.github.com/users/sorodrigo/repos","events_url":"https://api.github.com/users/sorodrigo/events{/privacy}","received_events_url":"https://api.github.com/users/sorodrigo/received_events","type":"User","site_admin":false},"body":"We do cause we’re accessing this.state and this.entrypoints","created_at":"2018-03-09T14:16:51Z","updated_at":"2018-03-09T14:16:51Z","html_url":"https://github.com/Vizzuality/trase/pull/346#discussion_r173460419","pull_request_url":"https://api.github.com/repos/Vizzuality/trase/pulls/346","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/comments/173460419"},"html":{"href":"https://github.com/Vizzuality/trase/pull/346#discussion_r173460419"},"pull_request":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/346"}},"in_reply_to_id":173456471},"pull_request":{"url":"https://api.github.com/repos/Vizzuality/trase/pulls/346","id":174005506,"html_url":"https://github.com/Vizzuality/trase/pull/346","diff_url":"https://github.com/Vizzuality/trase/pull/346.diff","patch_url":"https://github.com/Vizzuality/trase/pull/346.patch","issue_url":"https://api.github.com/repos/Vizzuality/trase/issues/346","number":346,"state":"open","locked":false,"title":"Feat: entrypoints slider","user":{"login":"sorodrigo","id":12124839,"avatar_url":"https://avatars0.githubusercontent.com/u/12124839?v=4","gravatar_id":"","url":"https://api.github.com/users/sorodrigo","html_url":"https://github.com/sorodrigo","followers_url":"https://api.github.com/users/sorodrigo/followers","following_url":"https://api.github.com/users/sorodrigo/following{/other_user}","gists_url":"https://api.github.com/users/sorodrigo/gists{/gist_id}","starred_url":"https://api.github.com/users/sorodrigo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorodrigo/subscriptions","organizations_url":"https://api.github.com/users/sorodrigo/orgs","repos_url":"https://api.github.com/users/sorodrigo/repos","events_url":"https://api.github.com/users/sorodrigo/events{/privacy}","received_events_url":"https://api.github.com/users/sorodrigo/received_events","type":"User","site_admin":false},"body":"This PR includes the new entrypoints. A slider for medium/large screens and vertical stacked cards for mobile.","created_at":"2018-03-09T13:30:59Z","updated_at":"2018-03-09T14:16:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b1b087ca4d925667a0d605ff2c0886a3040dd6f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tiagojsag","id":973964,"avatar_url":"https://avatars1.githubusercontent.com/u/973964?v=4","gravatar_id":"","url":"https://api.github.com/users/tiagojsag","html_url":"https://github.com/tiagojsag","followers_url":"https://api.github.com/users/tiagojsag/followers","following_url":"https://api.github.com/users/tiagojsag/following{/other_user}","gists_url":"https://api.github.com/users/tiagojsag/gists{/gist_id}","starred_url":"https://api.github.com/users/tiagojsag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiagojsag/subscriptions","organizations_url":"https://api.github.com/users/tiagojsag/orgs","repos_url":"https://api.github.com/users/tiagojsag/repos","events_url":"https://api.github.com/users/tiagojsag/events{/privacy}","received_events_url":"https://api.github.com/users/tiagojsag/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Vizzuality/trase/pulls/346/commits","review_comments_url":"https://api.github.com/repos/Vizzuality/trase/pulls/346/comments","review_comment_url":"https://api.github.com/repos/Vizzuality/trase/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Vizzuality/trase/issues/346/comments","statuses_url":"https://api.github.com/repos/Vizzuality/trase/statuses/4cd7381d19e01886f1742898e8049e39a65442c0","head":{"label":"Vizzuality:feat/entrypoints-slider","ref":"feat/entrypoints-slider","sha":"4cd7381d19e01886f1742898e8049e39a65442c0","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":82197942,"name":"trase","full_name":"Vizzuality/trase","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/trase","description":"Source code for Trase API and Frontend applications","fork":false,"url":"https://api.github.com/repos/Vizzuality/trase","forks_url":"https://api.github.com/repos/Vizzuality/trase/forks","keys_url":"https://api.github.com/repos/Vizzuality/trase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/trase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/trase/teams","hooks_url":"https://api.github.com/repos/Vizzuality/trase/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/trase/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/trase/events","assignees_url":"https://api.github.com/repos/Vizzuality/trase/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/trase/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/trase/tags","blobs_url":"https://api.github.com/repos/Vizzuality/trase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/trase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/trase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/trase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/trase/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/trase/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/trase/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/trase/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/trase/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/trase/subscription","commits_url":"https://api.github.com/repos/Vizzuality/trase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/trase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/trase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/trase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/trase/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/trase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/trase/merges","archive_url":"https://api.github.com/repos/Vizzuality/trase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/trase/downloads","issues_url":"https://api.github.com/repos/Vizzuality/trase/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/trase/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/trase/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/trase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/trase/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/trase/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/trase/deployments","created_at":"2017-02-16T15:55:05Z","updated_at":"2017-12-20T09:17:13Z","pushed_at":"2018-03-09T14:14:00Z","git_url":"git://github.com/Vizzuality/trase.git","ssh_url":"git@github.com:Vizzuality/trase.git","clone_url":"https://github.com/Vizzuality/trase.git","svn_url":"https://github.com/Vizzuality/trase","homepage":"https://trase.earth","size":58547,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":55,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":55,"watchers":3,"default_branch":"develop"}},"base":{"label":"Vizzuality:develop","ref":"develop","sha":"282a2fb567cffe7f1db6fce44702206dbc0f83db","user":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"repo":{"id":82197942,"name":"trase","full_name":"Vizzuality/trase","owner":{"login":"Vizzuality","id":305994,"avatar_url":"https://avatars3.githubusercontent.com/u/305994?v=4","gravatar_id":"","url":"https://api.github.com/users/Vizzuality","html_url":"https://github.com/Vizzuality","followers_url":"https://api.github.com/users/Vizzuality/followers","following_url":"https://api.github.com/users/Vizzuality/following{/other_user}","gists_url":"https://api.github.com/users/Vizzuality/gists{/gist_id}","starred_url":"https://api.github.com/users/Vizzuality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vizzuality/subscriptions","organizations_url":"https://api.github.com/users/Vizzuality/orgs","repos_url":"https://api.github.com/users/Vizzuality/repos","events_url":"https://api.github.com/users/Vizzuality/events{/privacy}","received_events_url":"https://api.github.com/users/Vizzuality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Vizzuality/trase","description":"Source code for Trase API and Frontend applications","fork":false,"url":"https://api.github.com/repos/Vizzuality/trase","forks_url":"https://api.github.com/repos/Vizzuality/trase/forks","keys_url":"https://api.github.com/repos/Vizzuality/trase/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Vizzuality/trase/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Vizzuality/trase/teams","hooks_url":"https://api.github.com/repos/Vizzuality/trase/hooks","issue_events_url":"https://api.github.com/repos/Vizzuality/trase/issues/events{/number}","events_url":"https://api.github.com/repos/Vizzuality/trase/events","assignees_url":"https://api.github.com/repos/Vizzuality/trase/assignees{/user}","branches_url":"https://api.github.com/repos/Vizzuality/trase/branches{/branch}","tags_url":"https://api.github.com/repos/Vizzuality/trase/tags","blobs_url":"https://api.github.com/repos/Vizzuality/trase/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Vizzuality/trase/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Vizzuality/trase/git/refs{/sha}","trees_url":"https://api.github.com/repos/Vizzuality/trase/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Vizzuality/trase/statuses/{sha}","languages_url":"https://api.github.com/repos/Vizzuality/trase/languages","stargazers_url":"https://api.github.com/repos/Vizzuality/trase/stargazers","contributors_url":"https://api.github.com/repos/Vizzuality/trase/contributors","subscribers_url":"https://api.github.com/repos/Vizzuality/trase/subscribers","subscription_url":"https://api.github.com/repos/Vizzuality/trase/subscription","commits_url":"https://api.github.com/repos/Vizzuality/trase/commits{/sha}","git_commits_url":"https://api.github.com/repos/Vizzuality/trase/git/commits{/sha}","comments_url":"https://api.github.com/repos/Vizzuality/trase/comments{/number}","issue_comment_url":"https://api.github.com/repos/Vizzuality/trase/issues/comments{/number}","contents_url":"https://api.github.com/repos/Vizzuality/trase/contents/{+path}","compare_url":"https://api.github.com/repos/Vizzuality/trase/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Vizzuality/trase/merges","archive_url":"https://api.github.com/repos/Vizzuality/trase/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Vizzuality/trase/downloads","issues_url":"https://api.github.com/repos/Vizzuality/trase/issues{/number}","pulls_url":"https://api.github.com/repos/Vizzuality/trase/pulls{/number}","milestones_url":"https://api.github.com/repos/Vizzuality/trase/milestones{/number}","notifications_url":"https://api.github.com/repos/Vizzuality/trase/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Vizzuality/trase/labels{/name}","releases_url":"https://api.github.com/repos/Vizzuality/trase/releases{/id}","deployments_url":"https://api.github.com/repos/Vizzuality/trase/deployments","created_at":"2017-02-16T15:55:05Z","updated_at":"2017-12-20T09:17:13Z","pushed_at":"2018-03-09T14:14:00Z","git_url":"git://github.com/Vizzuality/trase.git","ssh_url":"git@github.com:Vizzuality/trase.git","clone_url":"https://github.com/Vizzuality/trase.git","svn_url":"https://github.com/Vizzuality/trase","homepage":"https://trase.earth","size":58547,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":55,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":55,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/346"},"html":{"href":"https://github.com/Vizzuality/trase/pull/346"},"issue":{"href":"https://api.github.com/repos/Vizzuality/trase/issues/346"},"comments":{"href":"https://api.github.com/repos/Vizzuality/trase/issues/346/comments"},"review_comments":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/346/comments"},"review_comment":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Vizzuality/trase/pulls/346/commits"},"statuses":{"href":"https://api.github.com/repos/Vizzuality/trase/statuses/4cd7381d19e01886f1742898e8049e39a65442c0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sorodrigo"}}