{"action":"created","comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/186217062","pull_request_review_id":117761948,"id":186217062,"diff_hunk":"@@ -0,0 +1,76 @@\n+/** @format */\n+\n+/**\n+ * External dependencies\n+ */\n+import React, { Component } from 'react';\n+import { connect } from 'react-redux';\n+import classnames from 'classnames';\n+\n+/**\n+ * Internal dependencies\n+ */\n+import {\n+\tblur,\n+\tfocus,\n+\tcloseChat,\n+\tminimizeChat,\n+\tminimizedChat,\n+} from 'state/happychat/ui/actions';\n+import { getCurrentUser } from 'state/current-user/selectors';\n+import isHappychatMinimizing from 'state/happychat/selectors/is-happychat-minimizing';\n+import isHappychatOpen from 'state/happychat/selectors/is-happychat-open';\n+import HappychatClient from 'blocks/happychat/chat-client';\n+import { LAYOUT_PANEL_MAX_PARENT_SIZE } from 'blocks/happychat/chat-client/constants';\n+\n+/*\n+ * Main chat panel UI component\n+ */\n+export class HappychatPanel extends Component {\n+\tstatic propTypes = {};","path":"client/blocks/happychat/chat-panel/index.jsx","position":30,"original_position":30,"commit_id":"a161bcb7f8c0efa5a334ac76762774393eef8a39","original_commit_id":"a161bcb7f8c0efa5a334ac76762774393eef8a39","user":{"login":"lamosty","id":4988512,"avatar_url":"https://avatars0.githubusercontent.com/u/4988512?v=4","gravatar_id":"","url":"https://api.github.com/users/lamosty","html_url":"https://github.com/lamosty","followers_url":"https://api.github.com/users/lamosty/followers","following_url":"https://api.github.com/users/lamosty/following{/other_user}","gists_url":"https://api.github.com/users/lamosty/gists{/gist_id}","starred_url":"https://api.github.com/users/lamosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamosty/subscriptions","organizations_url":"https://api.github.com/users/lamosty/orgs","repos_url":"https://api.github.com/users/lamosty/repos","events_url":"https://api.github.com/users/lamosty/events{/privacy}","received_events_url":"https://api.github.com/users/lamosty/received_events","type":"User","site_admin":false},"body":"Nit: we can remove this and `defaultProps` if nothing is inside.","created_at":"2018-05-04T20:49:15Z","updated_at":"2018-05-04T20:56:20Z","html_url":"https://github.com/Automattic/wp-calypso/pull/24051#discussion_r186217062","pull_request_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments/186217062"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/24051#discussion_r186217062"},"pull_request":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051"}}},"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051","id":180739196,"html_url":"https://github.com/Automattic/wp-calypso/pull/24051","diff_url":"https://github.com/Automattic/wp-calypso/pull/24051.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/24051.patch","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/24051","number":24051,"state":"open","locked":false,"title":"Add happychat panel","user":{"login":"unDemian","id":2129455,"avatar_url":"https://avatars1.githubusercontent.com/u/2129455?v=4","gravatar_id":"","url":"https://api.github.com/users/unDemian","html_url":"https://github.com/unDemian","followers_url":"https://api.github.com/users/unDemian/followers","following_url":"https://api.github.com/users/unDemian/following{/other_user}","gists_url":"https://api.github.com/users/unDemian/gists{/gist_id}","starred_url":"https://api.github.com/users/unDemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unDemian/subscriptions","organizations_url":"https://api.github.com/users/unDemian/orgs","repos_url":"https://api.github.com/users/unDemian/repos","events_url":"https://api.github.com/users/unDemian/events{/privacy}","received_events_url":"https://api.github.com/users/unDemian/received_events","type":"User","site_admin":false},"body":"**Built on top of https://github.com/Automattic/wp-calypso/pull/23856**\r\n\r\n## Summary\r\nThis PR adds a block for happychat panel that uses the happychat-client package. This will be loaded instead of `components/happychat` in further PRs\r\n\r\n## Testing\r\nOnly code review.","created_at":"2018-04-10T21:58:07Z","updated_at":"2018-05-04T20:56:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b4dfaf6d367cd59fe710112780bdf6c3a8e4d885","assignee":{"login":"unDemian","id":2129455,"avatar_url":"https://avatars1.githubusercontent.com/u/2129455?v=4","gravatar_id":"","url":"https://api.github.com/users/unDemian","html_url":"https://github.com/unDemian","followers_url":"https://api.github.com/users/unDemian/followers","following_url":"https://api.github.com/users/unDemian/following{/other_user}","gists_url":"https://api.github.com/users/unDemian/gists{/gist_id}","starred_url":"https://api.github.com/users/unDemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unDemian/subscriptions","organizations_url":"https://api.github.com/users/unDemian/orgs","repos_url":"https://api.github.com/users/unDemian/repos","events_url":"https://api.github.com/users/unDemian/events{/privacy}","received_events_url":"https://api.github.com/users/unDemian/received_events","type":"User","site_admin":false},"assignees":[{"login":"unDemian","id":2129455,"avatar_url":"https://avatars1.githubusercontent.com/u/2129455?v=4","gravatar_id":"","url":"https://api.github.com/users/unDemian","html_url":"https://github.com/unDemian","followers_url":"https://api.github.com/users/unDemian/followers","following_url":"https://api.github.com/users/unDemian/following{/other_user}","gists_url":"https://api.github.com/users/unDemian/gists{/gist_id}","starred_url":"https://api.github.com/users/unDemian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unDemian/subscriptions","organizations_url":"https://api.github.com/users/unDemian/orgs","repos_url":"https://api.github.com/users/unDemian/repos","events_url":"https://api.github.com/users/unDemian/events{/privacy}","received_events_url":"https://api.github.com/users/unDemian/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":285010018,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Review","name":"[Status] Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051/commits","review_comments_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051/comments","review_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/24051/comments","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a161bcb7f8c0efa5a334ac76762774393eef8a39","head":{"label":"Automattic:add/happychat-panel","ref":"add/happychat-panel","sha":"a161bcb7f8c0efa5a334ac76762774393eef8a39","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-05-04T19:37:58Z","pushed_at":"2018-05-04T20:41:50Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":88702,"stargazers_count":9927,"watchers_count":9927,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1395,"mirror_url":null,"archived":false,"open_issues_count":1532,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1395,"open_issues":1532,"watchers":9927,"default_branch":"master"}},"base":{"label":"Automattic:add/happychat-client-to-mobile","ref":"add/happychat-client-to-mobile","sha":"12e639adc68a105050f4c944624d69fb28bf3137","user":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"repo":{"id":45936895,"name":"wp-calypso","full_name":"Automattic/wp-calypso","owner":{"login":"Automattic","id":887802,"avatar_url":"https://avatars1.githubusercontent.com/u/887802?v=4","gravatar_id":"","url":"https://api.github.com/users/Automattic","html_url":"https://github.com/Automattic","followers_url":"https://api.github.com/users/Automattic/followers","following_url":"https://api.github.com/users/Automattic/following{/other_user}","gists_url":"https://api.github.com/users/Automattic/gists{/gist_id}","starred_url":"https://api.github.com/users/Automattic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Automattic/subscriptions","organizations_url":"https://api.github.com/users/Automattic/orgs","repos_url":"https://api.github.com/users/Automattic/repos","events_url":"https://api.github.com/users/Automattic/events{/privacy}","received_events_url":"https://api.github.com/users/Automattic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Automattic/wp-calypso","description":"The JavaScript and API powered WordPress.com","fork":false,"url":"https://api.github.com/repos/Automattic/wp-calypso","forks_url":"https://api.github.com/repos/Automattic/wp-calypso/forks","keys_url":"https://api.github.com/repos/Automattic/wp-calypso/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Automattic/wp-calypso/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Automattic/wp-calypso/teams","hooks_url":"https://api.github.com/repos/Automattic/wp-calypso/hooks","issue_events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/events{/number}","events_url":"https://api.github.com/repos/Automattic/wp-calypso/events","assignees_url":"https://api.github.com/repos/Automattic/wp-calypso/assignees{/user}","branches_url":"https://api.github.com/repos/Automattic/wp-calypso/branches{/branch}","tags_url":"https://api.github.com/repos/Automattic/wp-calypso/tags","blobs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Automattic/wp-calypso/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Automattic/wp-calypso/git/refs{/sha}","trees_url":"https://api.github.com/repos/Automattic/wp-calypso/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Automattic/wp-calypso/statuses/{sha}","languages_url":"https://api.github.com/repos/Automattic/wp-calypso/languages","stargazers_url":"https://api.github.com/repos/Automattic/wp-calypso/stargazers","contributors_url":"https://api.github.com/repos/Automattic/wp-calypso/contributors","subscribers_url":"https://api.github.com/repos/Automattic/wp-calypso/subscribers","subscription_url":"https://api.github.com/repos/Automattic/wp-calypso/subscription","commits_url":"https://api.github.com/repos/Automattic/wp-calypso/commits{/sha}","git_commits_url":"https://api.github.com/repos/Automattic/wp-calypso/git/commits{/sha}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/comments{/number}","issue_comment_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments{/number}","contents_url":"https://api.github.com/repos/Automattic/wp-calypso/contents/{+path}","compare_url":"https://api.github.com/repos/Automattic/wp-calypso/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Automattic/wp-calypso/merges","archive_url":"https://api.github.com/repos/Automattic/wp-calypso/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Automattic/wp-calypso/downloads","issues_url":"https://api.github.com/repos/Automattic/wp-calypso/issues{/number}","pulls_url":"https://api.github.com/repos/Automattic/wp-calypso/pulls{/number}","milestones_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones{/number}","notifications_url":"https://api.github.com/repos/Automattic/wp-calypso/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/labels{/name}","releases_url":"https://api.github.com/repos/Automattic/wp-calypso/releases{/id}","deployments_url":"https://api.github.com/repos/Automattic/wp-calypso/deployments","created_at":"2015-11-10T20:00:16Z","updated_at":"2018-05-04T19:37:58Z","pushed_at":"2018-05-04T20:41:50Z","git_url":"git://github.com/Automattic/wp-calypso.git","ssh_url":"git@github.com:Automattic/wp-calypso.git","clone_url":"https://github.com/Automattic/wp-calypso.git","svn_url":"https://github.com/Automattic/wp-calypso","homepage":"https://developer.wordpress.com/calypso/","size":88702,"stargazers_count":9927,"watchers_count":9927,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1395,"mirror_url":null,"archived":false,"open_issues_count":1532,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":1395,"open_issues":1532,"watchers":9927,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051"},"html":{"href":"https://github.com/Automattic/wp-calypso/pull/24051"},"issue":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/24051"},"comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/issues/24051/comments"},"review_comments":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051/comments"},"review_comment":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Automattic/wp-calypso/pulls/24051/commits"},"statuses":{"href":"https://api.github.com/repos/Automattic/wp-calypso/statuses/a161bcb7f8c0efa5a334ac76762774393eef8a39"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"lamosty"}}