{"action":"created","comment":{"url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/comments/184227544","pull_request_review_id":115380701,"id":184227544,"diff_hunk":"@@ -56,30 +62,61 @@ class _TeamComponent extends React.PureComponent<Props, State> {\n     }\n \n     public render() {\n-        return <div>\n-            <h1>Team</h1>\n-            <h2>{this.props.teamName}</h2>\n-            <table>\n-                <tbody>\n-                    <tr>\n-                        <td>Total points:</td>\n-                        <td>{this.props.totalPointsAllTime}</td>\n-                    </tr>\n-                    <tr>\n-                        <td>Saltines:</td>\n-                        <td>{this.props.totalPoints}</td>\n-                    </tr>\n-                </tbody>\n-            </table>\n-            <h3>Your team</h3>\n-            <ul>\n-                <li>{this.props.myName} (You!) <OnlineIndicator when={this.props.isOnline}/> <AdminIndicator when={this.props.isTeamAdmin}/> </li>\n-                {this.props.otherTeamMembers.map(member =>\n-                    <li key={member.id}>{member.name} <OnlineIndicator when={member.online}/> <AdminIndicator when={member.isAdmin}/> </li>\n-                )}\n-            </ul>\n+        const { teamView } = this.state;\n+        return <div className=\"teams\">\n+            <nav className=\"tabs\">\n+                <button onClick={this.switchTab} value=\"team\" className={teamView ? 'active' : ''}>Team</button>\n+                <button onClick={this.switchTab} className={teamView ? '' : 'active'}>Leaderboards</button>\n+            </nav>\n+            { teamView &&\n+                <div>\n+                    <h1>{this.props.teamName}</h1>\n+                    <div className=\"saltines-count\">\n+                        <h3>Saltines</h3>\n+                        <p><img height=\"20\" width=\"20\" src={saltine} alt=\"Saltine\" /><span>{this.props.totalPoints}</span>(current balance)</p>\n+                        <p><img height=\"20\" width=\"20\" src={saltine} alt=\"Saltine\" /><span>{this.props.totalPointsAllTime}</span>(earned all-time)</p>\n+                    </div>\n+                    <div className=\"rankings-snapshot\">\n+                        <h3>Rank</h3>\n+                        <button onClick={this.switchTab}><sup>#</sup>2<span>in Vancouver</span></button>\n+                        <button onClick={this.switchTab}><sup>#</sup>78<span>in Canada</span></button>\n+                    </div>\n+                    <h3>Your team</h3>\n+                    <ul className=\"team\">\n+                        <li>{this.props.isTeamAdmin && <button onClick={this.switchTeamAdmin}>X</button>}{this.props.myName} (That's you!) <OnlineIndicator when={this.props.isOnline}/> <AdminIndicator when={this.props.isTeamAdmin}/> </li>\n+                        {this.props.otherTeamMembers.map(member =>\n+                            <li key={member.id}>{member.name} <OnlineIndicator when={member.online}/> <AdminIndicator when={member.isAdmin}/>{this.props.isTeamAdmin && <button value={member.name} onClick={this.removeTeamMember}>X</button>} </li>\n+                        )}\n+                        {this.props.otherTeamMembers.length < 4 && <li><button onClick={this.addTeamMemberPrompt}>Add Team Member</button></li>}\n+                    </ul>\n+                </div>\n+            }\n+            { !teamView &&\n+                <div>\n+                    <p>Here be the leaderboards component.</p>\n+                </div>\n+            }\n+            \n         </div>;\n     }\n+\n+    @bind private switchTab(event: React.MouseEvent<HTMLButtonElement>) {\n+        const tab = event.currentTarget.value\n+        tab ? this.setState({ teamView: true }) : this.setState({ teamView: false })\n+    }\n+\n+    @bind private addTeamMemberPrompt(event: React.MouseEvent<HTMLButtonElement>) {\n+        confirm('To add someone to your team, give them your team code: ' + this.props.teamCode + '. Your team can have a maximum of 5 people.')","path":"frontend/lobby/team.tsx","position":121,"original_position":121,"commit_id":"43424b1eeb9fd7e90b4d5409026ce926829f32a6","original_commit_id":"43424b1eeb9fd7e90b4d5409026ce926829f32a6","user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars2.githubusercontent.com/u/945577?v=4","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"body":"Can we get rid of the \"Add Team Member\" button and just put this text there in its place, below the list of users? (When the team isn't full.) I don't see why it should be a button.","created_at":"2018-04-25T22:46:06Z","updated_at":"2018-04-25T22:46:06Z","html_url":"https://github.com/from-the-storm/BORIS/pull/7#discussion_r184227544","pull_request_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/comments/184227544"},"html":{"href":"https://github.com/from-the-storm/BORIS/pull/7#discussion_r184227544"},"pull_request":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7","id":184154480,"html_url":"https://github.com/from-the-storm/BORIS/pull/7","diff_url":"https://github.com/from-the-storm/BORIS/pull/7.diff","patch_url":"https://github.com/from-the-storm/BORIS/pull/7.patch","issue_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/7","number":7,"state":"open","locked":false,"title":"Team details styling","user":{"login":"andrewmunroe","id":1463539,"avatar_url":"https://avatars0.githubusercontent.com/u/1463539?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewmunroe","html_url":"https://github.com/andrewmunroe","followers_url":"https://api.github.com/users/andrewmunroe/followers","following_url":"https://api.github.com/users/andrewmunroe/following{/other_user}","gists_url":"https://api.github.com/users/andrewmunroe/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewmunroe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewmunroe/subscriptions","organizations_url":"https://api.github.com/users/andrewmunroe/orgs","repos_url":"https://api.github.com/users/andrewmunroe/repos","events_url":"https://api.github.com/users/andrewmunroe/events{/privacy}","received_events_url":"https://api.github.com/users/andrewmunroe/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-25T20:30:25Z","updated_at":"2018-04-25T22:46:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ec01c817953834c77f78e9b2a5bb2401177b11d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7/commits","review_comments_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7/comments","review_comment_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/7/comments","statuses_url":"https://api.github.com/repos/from-the-storm/BORIS/statuses/43424b1eeb9fd7e90b4d5409026ce926829f32a6","head":{"label":"from-the-storm:team-details-styling","ref":"team-details-styling","sha":"43424b1eeb9fd7e90b4d5409026ce926829f32a6","user":{"login":"from-the-storm","id":32181860,"avatar_url":"https://avatars3.githubusercontent.com/u/32181860?v=4","gravatar_id":"","url":"https://api.github.com/users/from-the-storm","html_url":"https://github.com/from-the-storm","followers_url":"https://api.github.com/users/from-the-storm/followers","following_url":"https://api.github.com/users/from-the-storm/following{/other_user}","gists_url":"https://api.github.com/users/from-the-storm/gists{/gist_id}","starred_url":"https://api.github.com/users/from-the-storm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/from-the-storm/subscriptions","organizations_url":"https://api.github.com/users/from-the-storm/orgs","repos_url":"https://api.github.com/users/from-the-storm/repos","events_url":"https://api.github.com/users/from-the-storm/events{/privacy}","received_events_url":"https://api.github.com/users/from-the-storm/received_events","type":"Organization","site_admin":false},"repo":{"id":104410190,"name":"BORIS","full_name":"from-the-storm/BORIS","owner":{"login":"from-the-storm","id":32181860,"avatar_url":"https://avatars3.githubusercontent.com/u/32181860?v=4","gravatar_id":"","url":"https://api.github.com/users/from-the-storm","html_url":"https://github.com/from-the-storm","followers_url":"https://api.github.com/users/from-the-storm/followers","following_url":"https://api.github.com/users/from-the-storm/following{/other_user}","gists_url":"https://api.github.com/users/from-the-storm/gists{/gist_id}","starred_url":"https://api.github.com/users/from-the-storm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/from-the-storm/subscriptions","organizations_url":"https://api.github.com/users/from-the-storm/orgs","repos_url":"https://api.github.com/users/from-the-storm/repos","events_url":"https://api.github.com/users/from-the-storm/events{/privacy}","received_events_url":"https://api.github.com/users/from-the-storm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/from-the-storm/BORIS","description":"BORIS","fork":false,"url":"https://api.github.com/repos/from-the-storm/BORIS","forks_url":"https://api.github.com/repos/from-the-storm/BORIS/forks","keys_url":"https://api.github.com/repos/from-the-storm/BORIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/from-the-storm/BORIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/from-the-storm/BORIS/teams","hooks_url":"https://api.github.com/repos/from-the-storm/BORIS/hooks","issue_events_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/events{/number}","events_url":"https://api.github.com/repos/from-the-storm/BORIS/events","assignees_url":"https://api.github.com/repos/from-the-storm/BORIS/assignees{/user}","branches_url":"https://api.github.com/repos/from-the-storm/BORIS/branches{/branch}","tags_url":"https://api.github.com/repos/from-the-storm/BORIS/tags","blobs_url":"https://api.github.com/repos/from-the-storm/BORIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/from-the-storm/BORIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/from-the-storm/BORIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/from-the-storm/BORIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/from-the-storm/BORIS/statuses/{sha}","languages_url":"https://api.github.com/repos/from-the-storm/BORIS/languages","stargazers_url":"https://api.github.com/repos/from-the-storm/BORIS/stargazers","contributors_url":"https://api.github.com/repos/from-the-storm/BORIS/contributors","subscribers_url":"https://api.github.com/repos/from-the-storm/BORIS/subscribers","subscription_url":"https://api.github.com/repos/from-the-storm/BORIS/subscription","commits_url":"https://api.github.com/repos/from-the-storm/BORIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/from-the-storm/BORIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/from-the-storm/BORIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/from-the-storm/BORIS/contents/{+path}","compare_url":"https://api.github.com/repos/from-the-storm/BORIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/from-the-storm/BORIS/merges","archive_url":"https://api.github.com/repos/from-the-storm/BORIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/from-the-storm/BORIS/downloads","issues_url":"https://api.github.com/repos/from-the-storm/BORIS/issues{/number}","pulls_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls{/number}","milestones_url":"https://api.github.com/repos/from-the-storm/BORIS/milestones{/number}","notifications_url":"https://api.github.com/repos/from-the-storm/BORIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/from-the-storm/BORIS/labels{/name}","releases_url":"https://api.github.com/repos/from-the-storm/BORIS/releases{/id}","deployments_url":"https://api.github.com/repos/from-the-storm/BORIS/deployments","created_at":"2017-09-21T23:56:08Z","updated_at":"2018-04-24T23:36:14Z","pushed_at":"2018-04-25T20:45:48Z","git_url":"git://github.com/from-the-storm/BORIS.git","ssh_url":"git@github.com:from-the-storm/BORIS.git","clone_url":"https://github.com/from-the-storm/BORIS.git","svn_url":"https://github.com/from-the-storm/BORIS","homepage":null,"size":935,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"from-the-storm:master","ref":"master","sha":"3d01294d21acc1ebc65f9769744f062b0bb26c5d","user":{"login":"from-the-storm","id":32181860,"avatar_url":"https://avatars3.githubusercontent.com/u/32181860?v=4","gravatar_id":"","url":"https://api.github.com/users/from-the-storm","html_url":"https://github.com/from-the-storm","followers_url":"https://api.github.com/users/from-the-storm/followers","following_url":"https://api.github.com/users/from-the-storm/following{/other_user}","gists_url":"https://api.github.com/users/from-the-storm/gists{/gist_id}","starred_url":"https://api.github.com/users/from-the-storm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/from-the-storm/subscriptions","organizations_url":"https://api.github.com/users/from-the-storm/orgs","repos_url":"https://api.github.com/users/from-the-storm/repos","events_url":"https://api.github.com/users/from-the-storm/events{/privacy}","received_events_url":"https://api.github.com/users/from-the-storm/received_events","type":"Organization","site_admin":false},"repo":{"id":104410190,"name":"BORIS","full_name":"from-the-storm/BORIS","owner":{"login":"from-the-storm","id":32181860,"avatar_url":"https://avatars3.githubusercontent.com/u/32181860?v=4","gravatar_id":"","url":"https://api.github.com/users/from-the-storm","html_url":"https://github.com/from-the-storm","followers_url":"https://api.github.com/users/from-the-storm/followers","following_url":"https://api.github.com/users/from-the-storm/following{/other_user}","gists_url":"https://api.github.com/users/from-the-storm/gists{/gist_id}","starred_url":"https://api.github.com/users/from-the-storm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/from-the-storm/subscriptions","organizations_url":"https://api.github.com/users/from-the-storm/orgs","repos_url":"https://api.github.com/users/from-the-storm/repos","events_url":"https://api.github.com/users/from-the-storm/events{/privacy}","received_events_url":"https://api.github.com/users/from-the-storm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/from-the-storm/BORIS","description":"BORIS","fork":false,"url":"https://api.github.com/repos/from-the-storm/BORIS","forks_url":"https://api.github.com/repos/from-the-storm/BORIS/forks","keys_url":"https://api.github.com/repos/from-the-storm/BORIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/from-the-storm/BORIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/from-the-storm/BORIS/teams","hooks_url":"https://api.github.com/repos/from-the-storm/BORIS/hooks","issue_events_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/events{/number}","events_url":"https://api.github.com/repos/from-the-storm/BORIS/events","assignees_url":"https://api.github.com/repos/from-the-storm/BORIS/assignees{/user}","branches_url":"https://api.github.com/repos/from-the-storm/BORIS/branches{/branch}","tags_url":"https://api.github.com/repos/from-the-storm/BORIS/tags","blobs_url":"https://api.github.com/repos/from-the-storm/BORIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/from-the-storm/BORIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/from-the-storm/BORIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/from-the-storm/BORIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/from-the-storm/BORIS/statuses/{sha}","languages_url":"https://api.github.com/repos/from-the-storm/BORIS/languages","stargazers_url":"https://api.github.com/repos/from-the-storm/BORIS/stargazers","contributors_url":"https://api.github.com/repos/from-the-storm/BORIS/contributors","subscribers_url":"https://api.github.com/repos/from-the-storm/BORIS/subscribers","subscription_url":"https://api.github.com/repos/from-the-storm/BORIS/subscription","commits_url":"https://api.github.com/repos/from-the-storm/BORIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/from-the-storm/BORIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/from-the-storm/BORIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/from-the-storm/BORIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/from-the-storm/BORIS/contents/{+path}","compare_url":"https://api.github.com/repos/from-the-storm/BORIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/from-the-storm/BORIS/merges","archive_url":"https://api.github.com/repos/from-the-storm/BORIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/from-the-storm/BORIS/downloads","issues_url":"https://api.github.com/repos/from-the-storm/BORIS/issues{/number}","pulls_url":"https://api.github.com/repos/from-the-storm/BORIS/pulls{/number}","milestones_url":"https://api.github.com/repos/from-the-storm/BORIS/milestones{/number}","notifications_url":"https://api.github.com/repos/from-the-storm/BORIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/from-the-storm/BORIS/labels{/name}","releases_url":"https://api.github.com/repos/from-the-storm/BORIS/releases{/id}","deployments_url":"https://api.github.com/repos/from-the-storm/BORIS/deployments","created_at":"2017-09-21T23:56:08Z","updated_at":"2018-04-24T23:36:14Z","pushed_at":"2018-04-25T20:45:48Z","git_url":"git://github.com/from-the-storm/BORIS.git","ssh_url":"git@github.com:from-the-storm/BORIS.git","clone_url":"https://github.com/from-the-storm/BORIS.git","svn_url":"https://github.com/from-the-storm/BORIS","homepage":null,"size":935,"stargazers_count":1,"watchers_count":1,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7"},"html":{"href":"https://github.com/from-the-storm/BORIS/pull/7"},"issue":{"href":"https://api.github.com/repos/from-the-storm/BORIS/issues/7"},"comments":{"href":"https://api.github.com/repos/from-the-storm/BORIS/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/from-the-storm/BORIS/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/from-the-storm/BORIS/statuses/43424b1eeb9fd7e90b4d5409026ce926829f32a6"}},"author_association":"OWNER"}}
{"actor":{"display_login":"bradenmacdonald"}}