{"action":"created","comment":{"url":"https://api.github.com/repos/linode/manager/pulls/comments/68410040","id":68410040,"diff_hunk":"@@ -1,24 +1,54 @@\n-import React, { Component } from 'react';\n+import React, { Component, PropTypes } from 'react';\n import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';\n+import DistroVendor from './DistroVendor';\n+import _ from 'lodash';\n \n export default class SourceSelection extends Component {\n   constructor() {\n     super();\n     this.render = this.render.bind(this);\n     this.renderSourceTabs = this.renderSourceTabs.bind(this);\n     this.renderHeader = this.renderHeader.bind(this);\n+    this.renderDistros = this.renderDistros.bind(this);\n+  }\n+\n+  renderDistros() {\n+    const { distros, source, onSourceSelected } = this.props;\n+    const vendors = _.sortBy(\n+      _.map(\n+        _.groupBy(Object.values(distros), d => d.vendor),\n+        (v, k) => ({\n+          name: k,\n+          versions: _.orderBy(v, ['recommended', 'created'], ['desc', 'desc']),\n+        })\n+      ), vendor => vendor.name);\n+    return (\n+      <div className=\"distros\">\n+        {vendors.map(v =>\n+          <DistroVendor\n+            selected={source}\n+            vendor={v}\n+            key={v.name}\n+            onClick={s => onSourceSelected(s)}\n+          />)}\n+      </div>\n+    );\n   }\n \n   renderSourceTabs() {","path":"src/linodes/components/SourceSelection.js","position":39,"original_position":39,"commit_id":"9448be3468c140ecf0886671076fd8402006c52d","original_commit_id":"9448be3468c140ecf0886671076fd8402006c52d","user":{"login":"eatonphil","id":3925912,"avatar_url":"https://avatars.githubusercontent.com/u/3925912?v=3","gravatar_id":"","url":"https://api.github.com/users/eatonphil","html_url":"https://github.com/eatonphil","followers_url":"https://api.github.com/users/eatonphil/followers","following_url":"https://api.github.com/users/eatonphil/following{/other_user}","gists_url":"https://api.github.com/users/eatonphil/gists{/gist_id}","starred_url":"https://api.github.com/users/eatonphil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eatonphil/subscriptions","organizations_url":"https://api.github.com/users/eatonphil/orgs","repos_url":"https://api.github.com/users/eatonphil/repos","events_url":"https://api.github.com/users/eatonphil/events{/privacy}","received_events_url":"https://api.github.com/users/eatonphil/received_events","type":"User","site_admin":false},"body":"In addition to just doing this for you, it also already has tests so we don't need to be duplicating those.","created_at":"2016-06-24T14:53:53Z","updated_at":"2016-06-24T14:53:53Z","html_url":"https://github.com/linode/manager/pull/183#discussion_r68410040","pull_request_url":"https://api.github.com/repos/linode/manager/pulls/183","_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/comments/68410040"},"html":{"href":"https://github.com/linode/manager/pull/183#discussion_r68410040"},"pull_request":{"href":"https://api.github.com/repos/linode/manager/pulls/183"}}},"pull_request":{"url":"https://api.github.com/repos/linode/manager/pulls/183","id":75118960,"html_url":"https://github.com/linode/manager/pull/183","diff_url":"https://github.com/linode/manager/pull/183.diff","patch_url":"https://github.com/linode/manager/pull/183.patch","issue_url":"https://api.github.com/repos/linode/manager/issues/183","number":183,"state":"open","locked":false,"title":"Implement distro selection UI","user":{"login":"SirCmpwn","id":1310872,"avatar_url":"https://avatars.githubusercontent.com/u/1310872?v=3","gravatar_id":"","url":"https://api.github.com/users/SirCmpwn","html_url":"https://github.com/SirCmpwn","followers_url":"https://api.github.com/users/SirCmpwn/followers","following_url":"https://api.github.com/users/SirCmpwn/following{/other_user}","gists_url":"https://api.github.com/users/SirCmpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/SirCmpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SirCmpwn/subscriptions","organizations_url":"https://api.github.com/users/SirCmpwn/orgs","repos_url":"https://api.github.com/users/SirCmpwn/repos","events_url":"https://api.github.com/users/SirCmpwn/events{/privacy}","received_events_url":"https://api.github.com/users/SirCmpwn/received_events","type":"User","site_admin":false},"body":"![2016-06-24_10 03 47](https://cloud.githubusercontent.com/assets/1310872/16339862/f69167ec-39f2-11e6-833f-b47c551d934f.png)\r\n","created_at":"2016-06-24T14:05:33Z","updated_at":"2016-06-24T14:53:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5031b97ea7fdfaf2ab7bfc8d1b7f9bb63bfb90e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linode/manager/pulls/183/commits","review_comments_url":"https://api.github.com/repos/linode/manager/pulls/183/comments","review_comment_url":"https://api.github.com/repos/linode/manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linode/manager/issues/183/comments","statuses_url":"https://api.github.com/repos/linode/manager/statuses/9448be3468c140ecf0886671076fd8402006c52d","head":{"label":"linode:feature/distribution-selection","ref":"feature/distribution-selection","sha":"9448be3468c140ecf0886671076fd8402006c52d","user":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"name":"manager","full_name":"linode/manager","owner":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linode/manager","description":"The Linode manager","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2016-06-22T02:27:33Z","pushed_at":"2016-06-24T14:42:22Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":null,"size":683,"stargazers_count":61,"watchers_count":61,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":59,"forks":9,"open_issues":59,"watchers":61,"default_branch":"master"}},"base":{"label":"linode:master","ref":"master","sha":"0988c283ceef7631f539ebdd7f413c52c4177d9f","user":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"repo":{"id":58934207,"name":"manager","full_name":"linode/manager","owner":{"login":"linode","id":5184305,"avatar_url":"https://avatars.githubusercontent.com/u/5184305?v=3","gravatar_id":"","url":"https://api.github.com/users/linode","html_url":"https://github.com/linode","followers_url":"https://api.github.com/users/linode/followers","following_url":"https://api.github.com/users/linode/following{/other_user}","gists_url":"https://api.github.com/users/linode/gists{/gist_id}","starred_url":"https://api.github.com/users/linode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linode/subscriptions","organizations_url":"https://api.github.com/users/linode/orgs","repos_url":"https://api.github.com/users/linode/repos","events_url":"https://api.github.com/users/linode/events{/privacy}","received_events_url":"https://api.github.com/users/linode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linode/manager","description":"The Linode manager","fork":false,"url":"https://api.github.com/repos/linode/manager","forks_url":"https://api.github.com/repos/linode/manager/forks","keys_url":"https://api.github.com/repos/linode/manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linode/manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linode/manager/teams","hooks_url":"https://api.github.com/repos/linode/manager/hooks","issue_events_url":"https://api.github.com/repos/linode/manager/issues/events{/number}","events_url":"https://api.github.com/repos/linode/manager/events","assignees_url":"https://api.github.com/repos/linode/manager/assignees{/user}","branches_url":"https://api.github.com/repos/linode/manager/branches{/branch}","tags_url":"https://api.github.com/repos/linode/manager/tags","blobs_url":"https://api.github.com/repos/linode/manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linode/manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linode/manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/linode/manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linode/manager/statuses/{sha}","languages_url":"https://api.github.com/repos/linode/manager/languages","stargazers_url":"https://api.github.com/repos/linode/manager/stargazers","contributors_url":"https://api.github.com/repos/linode/manager/contributors","subscribers_url":"https://api.github.com/repos/linode/manager/subscribers","subscription_url":"https://api.github.com/repos/linode/manager/subscription","commits_url":"https://api.github.com/repos/linode/manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/linode/manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/linode/manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/linode/manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/linode/manager/contents/{+path}","compare_url":"https://api.github.com/repos/linode/manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linode/manager/merges","archive_url":"https://api.github.com/repos/linode/manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linode/manager/downloads","issues_url":"https://api.github.com/repos/linode/manager/issues{/number}","pulls_url":"https://api.github.com/repos/linode/manager/pulls{/number}","milestones_url":"https://api.github.com/repos/linode/manager/milestones{/number}","notifications_url":"https://api.github.com/repos/linode/manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linode/manager/labels{/name}","releases_url":"https://api.github.com/repos/linode/manager/releases{/id}","deployments_url":"https://api.github.com/repos/linode/manager/deployments","created_at":"2016-05-16T13:24:49Z","updated_at":"2016-06-22T02:27:33Z","pushed_at":"2016-06-24T14:42:22Z","git_url":"git://github.com/linode/manager.git","ssh_url":"git@github.com:linode/manager.git","clone_url":"https://github.com/linode/manager.git","svn_url":"https://github.com/linode/manager","homepage":null,"size":683,"stargazers_count":61,"watchers_count":61,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":59,"forks":9,"open_issues":59,"watchers":61,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linode/manager/pulls/183"},"html":{"href":"https://github.com/linode/manager/pull/183"},"issue":{"href":"https://api.github.com/repos/linode/manager/issues/183"},"comments":{"href":"https://api.github.com/repos/linode/manager/issues/183/comments"},"review_comments":{"href":"https://api.github.com/repos/linode/manager/pulls/183/comments"},"review_comment":{"href":"https://api.github.com/repos/linode/manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linode/manager/pulls/183/commits"},"statuses":{"href":"https://api.github.com/repos/linode/manager/statuses/9448be3468c140ecf0886671076fd8402006c52d"}}}}
{"actor":{"display_login":"eatonphil"}}