{"action":"created","comment":{"url":"https://api.github.com/repos/koding/koding/pulls/comments/75351381","id":75351381,"diff_hunk":"@@ -0,0 +1,95 @@\n+kd             = require 'kd'\n+$              = require 'jquery'\n+utils          = require './../core/utils'\n+JView          = require './../core/jview'\n+MainHeaderView = require './../core/mainheaderview'\n+FindTeamForm   = require './findteamform'\n+\n+track = (action) ->\n+\n+  category = 'Team'\n+  label    = 'FindTeam'\n+  utils.analytics.track action, { category, label }\n+\n+\n+module.exports = class FindTeamView extends kd.TabPaneView\n+\n+  JView.mixin @prototype\n+\n+  constructor: (options = {}, data) ->\n+\n+    options.cssClass = kd.utils.curry 'Team Team--ufo', options.cssClass\n+\n+    super options, data\n+\n+    { mainController } = kd.singletons\n+    { group }          = kd.config\n+\n+    @header = new MainHeaderView\n+      cssClass : 'team'\n+      navItems : []\n+\n+    @form = new FindTeamForm\n+      callback : @bound 'findTeam'\n+\n+    @back = new kd.CustomHTMLView\n+      tagName  : 'a'\n+      cssClass : 'secondary-link'\n+      partial  : 'BACK'\n+      click    : -> kd.singletons.router.handleRoute '/Teams'\n+\n+    @createTeam = new kd.CustomHTMLView\n+      tagName : 'a'\n+      partial : 'Create a new account'\n+      click   : -> kd.singletons.router.handleRoute '/Teams/Create'\n+\n+\n+  setFocus: -> @form.setFocus()\n+\n+\n+  findTeam: (formData) ->\n+\n+    track 'submitted find teams form'\n+\n+    { email } = formData\n+    group = utils.getGroupNameFromLocation()\n+\n+    $.ajax\n+      url         : '/findteam'\n+      data        : { email, _csrf : Cookies.get('_csrf'), group }\n+      type        : 'POST'\n+      error       : (xhr) =>\n+        { responseText } = xhr\n+        new kd.NotificationView { title : responseText }\n+        @form.button.hideLoader()\n+      success     : =>\n+        @form.button.hideLoader()\n+        @form.reset()\n+\n+        new kd.NotificationView\n+          cssClass : 'recoverConfirmation'\n+          title    : 'Check your email'\n+          content  : 'We\\'ve sent you a list of your teams.'\n+          duration : 4500","path":"client/landing/site.landing/coffee/teams/findteamview.coffee","position":68,"original_position":73,"commit_id":"9ef532f7863e4980125f78f5c3e40c126aedb1c3","original_commit_id":"241fc87d046c607b41afb502675f916e62217bbb","user":{"login":"alex-ionochkin","id":492219,"avatar_url":"https://avatars.githubusercontent.com/u/492219?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-ionochkin","html_url":"https://github.com/alex-ionochkin","followers_url":"https://api.github.com/users/alex-ionochkin/followers","following_url":"https://api.github.com/users/alex-ionochkin/following{/other_user}","gists_url":"https://api.github.com/users/alex-ionochkin/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-ionochkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-ionochkin/subscriptions","organizations_url":"https://api.github.com/users/alex-ionochkin/orgs","repos_url":"https://api.github.com/users/alex-ionochkin/repos","events_url":"https://api.github.com/users/alex-ionochkin/events{/privacy}","received_events_url":"https://api.github.com/users/alex-ionochkin/received_events","type":"User","site_admin":false},"body":"We discussed it and decided to leave it as is for now","created_at":"2016-08-18T17:28:05Z","updated_at":"2016-08-18T17:28:05Z","html_url":"https://github.com/koding/koding/pull/8812#discussion_r75351381","pull_request_url":"https://api.github.com/repos/koding/koding/pulls/8812","_links":{"self":{"href":"https://api.github.com/repos/koding/koding/pulls/comments/75351381"},"html":{"href":"https://github.com/koding/koding/pull/8812#discussion_r75351381"},"pull_request":{"href":"https://api.github.com/repos/koding/koding/pulls/8812"}}},"pull_request":{"url":"https://api.github.com/repos/koding/koding/pulls/8812","id":81324229,"html_url":"https://github.com/koding/koding/pull/8812","diff_url":"https://github.com/koding/koding/pull/8812.diff","patch_url":"https://github.com/koding/koding/pull/8812.patch","issue_url":"https://api.github.com/repos/koding/koding/issues/8812","number":8812,"state":"open","locked":false,"title":"Participated Team list feature","user":{"login":"alex-ionochkin","id":492219,"avatar_url":"https://avatars.githubusercontent.com/u/492219?v=3","gravatar_id":"","url":"https://api.github.com/users/alex-ionochkin","html_url":"https://github.com/alex-ionochkin","followers_url":"https://api.github.com/users/alex-ionochkin/followers","following_url":"https://api.github.com/users/alex-ionochkin/following{/other_user}","gists_url":"https://api.github.com/users/alex-ionochkin/gists{/gist_id}","starred_url":"https://api.github.com/users/alex-ionochkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alex-ionochkin/subscriptions","organizations_url":"https://api.github.com/users/alex-ionochkin/orgs","repos_url":"https://api.github.com/users/alex-ionochkin/repos","events_url":"https://api.github.com/users/alex-ionochkin/events{/privacy}","received_events_url":"https://api.github.com/users/alex-ionochkin/received_events","type":"User","site_admin":false},"body":"## Description\r\nThis PR adds:\r\n- a new landing page which sends email with a list of teams user participates or is invited to (for logged out user)\r\n- a new modal showing a list of user teams (for logged in user)\r\n\r\nAlso, PR includes routing fixes to `/Teams` landing pages\r\n\r\n## Motivation and Context\r\nhttps://github.com/koding/koding/issues/8332\r\n\r\n## How Has This Been Tested?\r\n`./run nodetestfiles ./servers/models/account.test.coffee`\r\n`./run nodetestfiles ./servers/lib/server/handlers/findteam.test.coffee`\r\n\r\n## Screenshots (if appropriate):\r\nhttp://recordit.co/Orv6gfNOE5\r\n\r\n## Types of changes\r\n<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [x] New feature (non-breaking change which adds functionality)\r\n- [x] Breaking change (fix or feature that would cause existing functionality to change)\r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->\r\n- [ ] My change requires a change to the documentation.\r\n- [ ] I have updated the documentation accordingly.\r\n- [x] I have added tests to cover my changes.\r\n- [x] All new and existing tests passed.\r\n","created_at":"2016-08-15T15:02:24Z","updated_at":"2016-08-18T17:28:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"226369ec13758281a5956eefd54c3e4d050c55aa","assignee":{"login":"gokmen","id":42368,"avatar_url":"https://avatars.githubusercontent.com/u/42368?v=3","gravatar_id":"","url":"https://api.github.com/users/gokmen","html_url":"https://github.com/gokmen","followers_url":"https://api.github.com/users/gokmen/followers","following_url":"https://api.github.com/users/gokmen/following{/other_user}","gists_url":"https://api.github.com/users/gokmen/gists{/gist_id}","starred_url":"https://api.github.com/users/gokmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokmen/subscriptions","organizations_url":"https://api.github.com/users/gokmen/orgs","repos_url":"https://api.github.com/users/gokmen/repos","events_url":"https://api.github.com/users/gokmen/events{/privacy}","received_events_url":"https://api.github.com/users/gokmen/received_events","type":"User","site_admin":false},"assignees":[{"login":"gokmen","id":42368,"avatar_url":"https://avatars.githubusercontent.com/u/42368?v=3","gravatar_id":"","url":"https://api.github.com/users/gokmen","html_url":"https://github.com/gokmen","followers_url":"https://api.github.com/users/gokmen/followers","following_url":"https://api.github.com/users/gokmen/following{/other_user}","gists_url":"https://api.github.com/users/gokmen/gists{/gist_id}","starred_url":"https://api.github.com/users/gokmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gokmen/subscriptions","organizations_url":"https://api.github.com/users/gokmen/orgs","repos_url":"https://api.github.com/users/gokmen/repos","events_url":"https://api.github.com/users/gokmen/events{/privacy}","received_events_url":"https://api.github.com/users/gokmen/received_events","type":"User","site_admin":false},{"login":"sinan","id":440086,"avatar_url":"https://avatars.githubusercontent.com/u/440086?v=3","gravatar_id":"","url":"https://api.github.com/users/sinan","html_url":"https://github.com/sinan","followers_url":"https://api.github.com/users/sinan/followers","following_url":"https://api.github.com/users/sinan/following{/other_user}","gists_url":"https://api.github.com/users/sinan/gists{/gist_id}","starred_url":"https://api.github.com/users/sinan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinan/subscriptions","organizations_url":"https://api.github.com/users/sinan/orgs","repos_url":"https://api.github.com/users/sinan/repos","events_url":"https://api.github.com/users/sinan/events{/privacy}","received_events_url":"https://api.github.com/users/sinan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/koding/koding/pulls/8812/commits","review_comments_url":"https://api.github.com/repos/koding/koding/pulls/8812/comments","review_comment_url":"https://api.github.com/repos/koding/koding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/koding/koding/issues/8812/comments","statuses_url":"https://api.github.com/repos/koding/koding/statuses/9ef532f7863e4980125f78f5c3e40c126aedb1c3","head":{"label":"koding:8332-find-user-teams","ref":"8332-find-user-teams","sha":"9ef532f7863e4980125f78f5c3e40c126aedb1c3","user":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"repo":{"id":21317360,"name":"koding","full_name":"koding/koding","owner":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koding/koding","description":"KODING IS NOW OPEN SOURCE!","fork":false,"url":"https://api.github.com/repos/koding/koding","forks_url":"https://api.github.com/repos/koding/koding/forks","keys_url":"https://api.github.com/repos/koding/koding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koding/koding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koding/koding/teams","hooks_url":"https://api.github.com/repos/koding/koding/hooks","issue_events_url":"https://api.github.com/repos/koding/koding/issues/events{/number}","events_url":"https://api.github.com/repos/koding/koding/events","assignees_url":"https://api.github.com/repos/koding/koding/assignees{/user}","branches_url":"https://api.github.com/repos/koding/koding/branches{/branch}","tags_url":"https://api.github.com/repos/koding/koding/tags","blobs_url":"https://api.github.com/repos/koding/koding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koding/koding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koding/koding/git/refs{/sha}","trees_url":"https://api.github.com/repos/koding/koding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koding/koding/statuses/{sha}","languages_url":"https://api.github.com/repos/koding/koding/languages","stargazers_url":"https://api.github.com/repos/koding/koding/stargazers","contributors_url":"https://api.github.com/repos/koding/koding/contributors","subscribers_url":"https://api.github.com/repos/koding/koding/subscribers","subscription_url":"https://api.github.com/repos/koding/koding/subscription","commits_url":"https://api.github.com/repos/koding/koding/commits{/sha}","git_commits_url":"https://api.github.com/repos/koding/koding/git/commits{/sha}","comments_url":"https://api.github.com/repos/koding/koding/comments{/number}","issue_comment_url":"https://api.github.com/repos/koding/koding/issues/comments{/number}","contents_url":"https://api.github.com/repos/koding/koding/contents/{+path}","compare_url":"https://api.github.com/repos/koding/koding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koding/koding/merges","archive_url":"https://api.github.com/repos/koding/koding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koding/koding/downloads","issues_url":"https://api.github.com/repos/koding/koding/issues{/number}","pulls_url":"https://api.github.com/repos/koding/koding/pulls{/number}","milestones_url":"https://api.github.com/repos/koding/koding/milestones{/number}","notifications_url":"https://api.github.com/repos/koding/koding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koding/koding/labels{/name}","releases_url":"https://api.github.com/repos/koding/koding/releases{/id}","deployments_url":"https://api.github.com/repos/koding/koding/deployments","created_at":"2014-06-29T05:46:24Z","updated_at":"2016-08-18T01:07:00Z","pushed_at":"2016-08-18T17:25:13Z","git_url":"git://github.com/koding/koding.git","ssh_url":"git@github.com:koding/koding.git","clone_url":"https://github.com/koding/koding.git","svn_url":"https://github.com/koding/koding","homepage":"http://venturebeat.com/2016/07/26/koding-gitlab/","size":609447,"stargazers_count":265,"watchers_count":265,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":140,"forks":32,"open_issues":140,"watchers":265,"default_branch":"master"}},"base":{"label":"koding:master","ref":"master","sha":"e75faef699a02d1b7eb0d127320dfdca04cfc03c","user":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"repo":{"id":21317360,"name":"koding","full_name":"koding/koding","owner":{"login":"koding","id":1066754,"avatar_url":"https://avatars.githubusercontent.com/u/1066754?v=3","gravatar_id":"","url":"https://api.github.com/users/koding","html_url":"https://github.com/koding","followers_url":"https://api.github.com/users/koding/followers","following_url":"https://api.github.com/users/koding/following{/other_user}","gists_url":"https://api.github.com/users/koding/gists{/gist_id}","starred_url":"https://api.github.com/users/koding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koding/subscriptions","organizations_url":"https://api.github.com/users/koding/orgs","repos_url":"https://api.github.com/users/koding/repos","events_url":"https://api.github.com/users/koding/events{/privacy}","received_events_url":"https://api.github.com/users/koding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/koding/koding","description":"KODING IS NOW OPEN SOURCE!","fork":false,"url":"https://api.github.com/repos/koding/koding","forks_url":"https://api.github.com/repos/koding/koding/forks","keys_url":"https://api.github.com/repos/koding/koding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/koding/koding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/koding/koding/teams","hooks_url":"https://api.github.com/repos/koding/koding/hooks","issue_events_url":"https://api.github.com/repos/koding/koding/issues/events{/number}","events_url":"https://api.github.com/repos/koding/koding/events","assignees_url":"https://api.github.com/repos/koding/koding/assignees{/user}","branches_url":"https://api.github.com/repos/koding/koding/branches{/branch}","tags_url":"https://api.github.com/repos/koding/koding/tags","blobs_url":"https://api.github.com/repos/koding/koding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/koding/koding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/koding/koding/git/refs{/sha}","trees_url":"https://api.github.com/repos/koding/koding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/koding/koding/statuses/{sha}","languages_url":"https://api.github.com/repos/koding/koding/languages","stargazers_url":"https://api.github.com/repos/koding/koding/stargazers","contributors_url":"https://api.github.com/repos/koding/koding/contributors","subscribers_url":"https://api.github.com/repos/koding/koding/subscribers","subscription_url":"https://api.github.com/repos/koding/koding/subscription","commits_url":"https://api.github.com/repos/koding/koding/commits{/sha}","git_commits_url":"https://api.github.com/repos/koding/koding/git/commits{/sha}","comments_url":"https://api.github.com/repos/koding/koding/comments{/number}","issue_comment_url":"https://api.github.com/repos/koding/koding/issues/comments{/number}","contents_url":"https://api.github.com/repos/koding/koding/contents/{+path}","compare_url":"https://api.github.com/repos/koding/koding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/koding/koding/merges","archive_url":"https://api.github.com/repos/koding/koding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/koding/koding/downloads","issues_url":"https://api.github.com/repos/koding/koding/issues{/number}","pulls_url":"https://api.github.com/repos/koding/koding/pulls{/number}","milestones_url":"https://api.github.com/repos/koding/koding/milestones{/number}","notifications_url":"https://api.github.com/repos/koding/koding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/koding/koding/labels{/name}","releases_url":"https://api.github.com/repos/koding/koding/releases{/id}","deployments_url":"https://api.github.com/repos/koding/koding/deployments","created_at":"2014-06-29T05:46:24Z","updated_at":"2016-08-18T01:07:00Z","pushed_at":"2016-08-18T17:25:13Z","git_url":"git://github.com/koding/koding.git","ssh_url":"git@github.com:koding/koding.git","clone_url":"https://github.com/koding/koding.git","svn_url":"https://github.com/koding/koding","homepage":"http://venturebeat.com/2016/07/26/koding-gitlab/","size":609447,"stargazers_count":265,"watchers_count":265,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":140,"forks":32,"open_issues":140,"watchers":265,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/koding/koding/pulls/8812"},"html":{"href":"https://github.com/koding/koding/pull/8812"},"issue":{"href":"https://api.github.com/repos/koding/koding/issues/8812"},"comments":{"href":"https://api.github.com/repos/koding/koding/issues/8812/comments"},"review_comments":{"href":"https://api.github.com/repos/koding/koding/pulls/8812/comments"},"review_comment":{"href":"https://api.github.com/repos/koding/koding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/koding/koding/pulls/8812/commits"},"statuses":{"href":"https://api.github.com/repos/koding/koding/statuses/9ef532f7863e4980125f78f5c3e40c126aedb1c3"}}}}
{"actor":{"display_login":"alex-ionochkin"}}