{"action":"created","comment":{"url":"https://api.github.com/repos/box/box-ui-elements/pulls/comments/302308146","pull_request_review_id":260400828,"id":302308146,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMjMwODE0Ng==","diff_hunk":"@@ -0,0 +1,39 @@\n+// @flow\n+import * as React from 'react';\n+import GridView from './GridView';\n+\n+type Props = {\n+    currentCollection: Collection,\n+    height: number,\n+    slotRenderer: (slotIndex: number) => React.Element<any>,\n+    width: number,\n+};\n+\n+const DEFAULT_COLUMN_COUNT = 5;\n+const MAX_COLUMN_COUNT = 5;\n+\n+const ONE_COLUMN_BREAKPOINT = 700;\n+const THREE_COLUMN_BREAKPOINT = 1400;\n+\n+const GridViewWrapper = ({ width, ...rest }: Props) => {\n+    /**\n+     * Determine the maximum number of columns based on the\n+     * current width of the ContentExplorer.\n+     *\n+     * @private\n+     * @return {number} - max number of columns\n+     */\n+    const getMaxColumns = (): number => {","path":"src/components/grid-view/GridViewWrapper.js","position":26,"original_position":26,"commit_id":"453051496b5141dd97925723f3d25d85dceb2d43","original_commit_id":"453051496b5141dd97925723f3d25d85dceb2d43","user":{"login":"jstoffan","id":3180267,"node_id":"MDQ6VXNlcjMxODAyNjc=","avatar_url":"https://avatars0.githubusercontent.com/u/3180267?v=4","gravatar_id":"","url":"https://api.github.com/users/jstoffan","html_url":"https://github.com/jstoffan","followers_url":"https://api.github.com/users/jstoffan/followers","following_url":"https://api.github.com/users/jstoffan/following{/other_user}","gists_url":"https://api.github.com/users/jstoffan/gists{/gist_id}","starred_url":"https://api.github.com/users/jstoffan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstoffan/subscriptions","organizations_url":"https://api.github.com/users/jstoffan/orgs","repos_url":"https://api.github.com/users/jstoffan/repos","events_url":"https://api.github.com/users/jstoffan/events{/privacy}","received_events_url":"https://api.github.com/users/jstoffan/received_events","type":"User","site_admin":false},"body":"This probably doesn't need to be a separate function anymore; it can just be calculated directly and passed to `Math.min` below.","created_at":"2019-07-10T23:11:18Z","updated_at":"2019-07-10T23:11:18Z","html_url":"https://github.com/box/box-ui-elements/pull/1372#discussion_r302308146","pull_request_url":"https://api.github.com/repos/box/box-ui-elements/pulls/1372","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/comments/302308146"},"html":{"href":"https://github.com/box/box-ui-elements/pull/1372#discussion_r302308146"},"pull_request":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/1372"}}},"pull_request":{"url":"https://api.github.com/repos/box/box-ui-elements/pulls/1372","id":295490518,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk1NDkwNTE4","html_url":"https://github.com/box/box-ui-elements/pull/1372","diff_url":"https://github.com/box/box-ui-elements/pull/1372.diff","patch_url":"https://github.com/box/box-ui-elements/pull/1372.patch","issue_url":"https://api.github.com/repos/box/box-ui-elements/issues/1372","number":1372,"state":"open","locked":false,"title":"feat(content-explorer): Show grid with icons","user":{"login":"rickstefanik","id":43506937,"node_id":"MDQ6VXNlcjQzNTA2OTM3","avatar_url":"https://avatars0.githubusercontent.com/u/43506937?v=4","gravatar_id":"","url":"https://api.github.com/users/rickstefanik","html_url":"https://github.com/rickstefanik","followers_url":"https://api.github.com/users/rickstefanik/followers","following_url":"https://api.github.com/users/rickstefanik/following{/other_user}","gists_url":"https://api.github.com/users/rickstefanik/gists{/gist_id}","starred_url":"https://api.github.com/users/rickstefanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickstefanik/subscriptions","organizations_url":"https://api.github.com/users/rickstefanik/orgs","repos_url":"https://api.github.com/users/rickstefanik/repos","events_url":"https://api.github.com/users/rickstefanik/events{/privacy}","received_events_url":"https://api.github.com/users/rickstefanik/received_events","type":"User","site_admin":false},"body":"Now displaying grid with functionality and generic icons. (Thumbnails of files will come in later PR.)","created_at":"2019-07-08T20:45:01Z","updated_at":"2019-07-10T23:11:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6a3fbc146007c7003a99748889c4deea9ddf8230","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/box/box-ui-elements/pulls/1372/commits","review_comments_url":"https://api.github.com/repos/box/box-ui-elements/pulls/1372/comments","review_comment_url":"https://api.github.com/repos/box/box-ui-elements/pulls/comments{/number}","comments_url":"https://api.github.com/repos/box/box-ui-elements/issues/1372/comments","statuses_url":"https://api.github.com/repos/box/box-ui-elements/statuses/453051496b5141dd97925723f3d25d85dceb2d43","head":{"label":"rickstefanik:show-grid-with-icons","ref":"show-grid-with-icons","sha":"453051496b5141dd97925723f3d25d85dceb2d43","user":{"login":"rickstefanik","id":43506937,"node_id":"MDQ6VXNlcjQzNTA2OTM3","avatar_url":"https://avatars0.githubusercontent.com/u/43506937?v=4","gravatar_id":"","url":"https://api.github.com/users/rickstefanik","html_url":"https://github.com/rickstefanik","followers_url":"https://api.github.com/users/rickstefanik/followers","following_url":"https://api.github.com/users/rickstefanik/following{/other_user}","gists_url":"https://api.github.com/users/rickstefanik/gists{/gist_id}","starred_url":"https://api.github.com/users/rickstefanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickstefanik/subscriptions","organizations_url":"https://api.github.com/users/rickstefanik/orgs","repos_url":"https://api.github.com/users/rickstefanik/repos","events_url":"https://api.github.com/users/rickstefanik/events{/privacy}","received_events_url":"https://api.github.com/users/rickstefanik/received_events","type":"User","site_admin":false},"repo":{"id":188313137,"node_id":"MDEwOlJlcG9zaXRvcnkxODgzMTMxMzc=","name":"box-ui-elements","full_name":"rickstefanik/box-ui-elements","private":false,"owner":{"login":"rickstefanik","id":43506937,"node_id":"MDQ6VXNlcjQzNTA2OTM3","avatar_url":"https://avatars0.githubusercontent.com/u/43506937?v=4","gravatar_id":"","url":"https://api.github.com/users/rickstefanik","html_url":"https://github.com/rickstefanik","followers_url":"https://api.github.com/users/rickstefanik/followers","following_url":"https://api.github.com/users/rickstefanik/following{/other_user}","gists_url":"https://api.github.com/users/rickstefanik/gists{/gist_id}","starred_url":"https://api.github.com/users/rickstefanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickstefanik/subscriptions","organizations_url":"https://api.github.com/users/rickstefanik/orgs","repos_url":"https://api.github.com/users/rickstefanik/repos","events_url":"https://api.github.com/users/rickstefanik/events{/privacy}","received_events_url":"https://api.github.com/users/rickstefanik/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rickstefanik/box-ui-elements","description":"Box UI Elements","fork":true,"url":"https://api.github.com/repos/rickstefanik/box-ui-elements","forks_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/forks","keys_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/teams","hooks_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/hooks","issue_events_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/issues/events{/number}","events_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/events","assignees_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/assignees{/user}","branches_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/branches{/branch}","tags_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/tags","blobs_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/statuses/{sha}","languages_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/languages","stargazers_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/stargazers","contributors_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/contributors","subscribers_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/subscribers","subscription_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/subscription","commits_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/contents/{+path}","compare_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/merges","archive_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/downloads","issues_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/issues{/number}","pulls_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/pulls{/number}","milestones_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/milestones{/number}","notifications_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/labels{/name}","releases_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/releases{/id}","deployments_url":"https://api.github.com/repos/rickstefanik/box-ui-elements/deployments","created_at":"2019-05-23T22:06:59Z","updated_at":"2019-07-08T20:49:30Z","pushed_at":"2019-07-10T21:12:53Z","git_url":"git://github.com/rickstefanik/box-ui-elements.git","ssh_url":"git@github.com:rickstefanik/box-ui-elements.git","clone_url":"https://github.com/rickstefanik/box-ui-elements.git","svn_url":"https://github.com/rickstefanik/box-ui-elements","homepage":"https://developer.box.com/docs/box-ui-elements","size":24413,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"box:master","ref":"master","sha":"ad2ef677974b2a11e16bcf933ba05205e67d6b38","user":{"login":"box","id":23900,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzOTAw","avatar_url":"https://avatars0.githubusercontent.com/u/23900?v=4","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"repo":{"id":95743138,"node_id":"MDEwOlJlcG9zaXRvcnk5NTc0MzEzOA==","name":"box-ui-elements","full_name":"box/box-ui-elements","private":false,"owner":{"login":"box","id":23900,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzOTAw","avatar_url":"https://avatars0.githubusercontent.com/u/23900?v=4","gravatar_id":"","url":"https://api.github.com/users/box","html_url":"https://github.com/box","followers_url":"https://api.github.com/users/box/followers","following_url":"https://api.github.com/users/box/following{/other_user}","gists_url":"https://api.github.com/users/box/gists{/gist_id}","starred_url":"https://api.github.com/users/box/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/box/subscriptions","organizations_url":"https://api.github.com/users/box/orgs","repos_url":"https://api.github.com/users/box/repos","events_url":"https://api.github.com/users/box/events{/privacy}","received_events_url":"https://api.github.com/users/box/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/box/box-ui-elements","description":"Box UI Elements","fork":false,"url":"https://api.github.com/repos/box/box-ui-elements","forks_url":"https://api.github.com/repos/box/box-ui-elements/forks","keys_url":"https://api.github.com/repos/box/box-ui-elements/keys{/key_id}","collaborators_url":"https://api.github.com/repos/box/box-ui-elements/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/box/box-ui-elements/teams","hooks_url":"https://api.github.com/repos/box/box-ui-elements/hooks","issue_events_url":"https://api.github.com/repos/box/box-ui-elements/issues/events{/number}","events_url":"https://api.github.com/repos/box/box-ui-elements/events","assignees_url":"https://api.github.com/repos/box/box-ui-elements/assignees{/user}","branches_url":"https://api.github.com/repos/box/box-ui-elements/branches{/branch}","tags_url":"https://api.github.com/repos/box/box-ui-elements/tags","blobs_url":"https://api.github.com/repos/box/box-ui-elements/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/box/box-ui-elements/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/box/box-ui-elements/git/refs{/sha}","trees_url":"https://api.github.com/repos/box/box-ui-elements/git/trees{/sha}","statuses_url":"https://api.github.com/repos/box/box-ui-elements/statuses/{sha}","languages_url":"https://api.github.com/repos/box/box-ui-elements/languages","stargazers_url":"https://api.github.com/repos/box/box-ui-elements/stargazers","contributors_url":"https://api.github.com/repos/box/box-ui-elements/contributors","subscribers_url":"https://api.github.com/repos/box/box-ui-elements/subscribers","subscription_url":"https://api.github.com/repos/box/box-ui-elements/subscription","commits_url":"https://api.github.com/repos/box/box-ui-elements/commits{/sha}","git_commits_url":"https://api.github.com/repos/box/box-ui-elements/git/commits{/sha}","comments_url":"https://api.github.com/repos/box/box-ui-elements/comments{/number}","issue_comment_url":"https://api.github.com/repos/box/box-ui-elements/issues/comments{/number}","contents_url":"https://api.github.com/repos/box/box-ui-elements/contents/{+path}","compare_url":"https://api.github.com/repos/box/box-ui-elements/compare/{base}...{head}","merges_url":"https://api.github.com/repos/box/box-ui-elements/merges","archive_url":"https://api.github.com/repos/box/box-ui-elements/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/box/box-ui-elements/downloads","issues_url":"https://api.github.com/repos/box/box-ui-elements/issues{/number}","pulls_url":"https://api.github.com/repos/box/box-ui-elements/pulls{/number}","milestones_url":"https://api.github.com/repos/box/box-ui-elements/milestones{/number}","notifications_url":"https://api.github.com/repos/box/box-ui-elements/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/box/box-ui-elements/labels{/name}","releases_url":"https://api.github.com/repos/box/box-ui-elements/releases{/id}","deployments_url":"https://api.github.com/repos/box/box-ui-elements/deployments","created_at":"2017-06-29T05:49:51Z","updated_at":"2019-07-10T19:10:56Z","pushed_at":"2019-07-10T23:09:14Z","git_url":"git://github.com/box/box-ui-elements.git","ssh_url":"git@github.com:box/box-ui-elements.git","clone_url":"https://github.com/box/box-ui-elements.git","svn_url":"https://github.com/box/box-ui-elements","homepage":"https://developer.box.com/docs/box-ui-elements","size":24507,"stargazers_count":455,"watchers_count":455,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":126,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":41,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":126,"open_issues":41,"watchers":455,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/1372"},"html":{"href":"https://github.com/box/box-ui-elements/pull/1372"},"issue":{"href":"https://api.github.com/repos/box/box-ui-elements/issues/1372"},"comments":{"href":"https://api.github.com/repos/box/box-ui-elements/issues/1372/comments"},"review_comments":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/1372/comments"},"review_comment":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/box/box-ui-elements/pulls/1372/commits"},"statuses":{"href":"https://api.github.com/repos/box/box-ui-elements/statuses/453051496b5141dd97925723f3d25d85dceb2d43"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jstoffan"}}