{"action":"created","comment":{"url":"https://api.github.com/repos/syndesisio/syndesis/pulls/comments/175079825","pull_request_review_id":104553252,"id":175079825,"diff_hunk":"@@ -108,24 +108,17 @@ <h1>Register Applications</h1>\n         </div>\n       </ng-container>\n       <ng-container *ngIf=\"showNewConnection && connections.length > 0\">\n-        <div class=\"connection new-connection col-xs-12 col-sm-3 col-md-2 card\"\n-             (click)=\"onSelect(undefined, $event)\">\n-          <div class=\"card-pf card-pf-view card-pf-view-select card-pf-view-single-select\">\n-            <div class=\"card-pf-body\">\n-\n-              <!-- Card Icon -->\n-              <div class=\"card-pf-top-element\">\n-                <span class=\"card-pf-icon-large pficon pficon-add-circle-o\">\n-                </span>\n-              </div>\n-\n-              <!-- Card Description / Item Overview -->\n-              <div class=\"card-pf-info text-center\">\n-                <button class=\"btn btn-default\" (click)=\"onSelect(undefined, $event)\">Create Connection</button>\n-              </div>\n-            </div>\n-          </div>\n-        </div>\n+        <syndesis-empty-state-card\n+          [body]=\"cardBody\"\n+          [colClass]=\"'col-xs-12 col-sm-3 col-md-2'\"\n+          [topElement]=\"cardTopElement\">\n+          <ng-template #cardBody>\n+            <button class=\"btn btn-default\" (click)=\"onSelect(undefined, $event)\">Create Connection</button>\n+          </ng-template>\n+          <ng-template #cardTopElement>\n+              <span class=\"card-pf-icon-large pficon pficon-add-circle-o\"></span>","path":"app/ui/src/app/connections/list/list.component.html","position":30,"original_position":30,"commit_id":"eaba57a7642a1f4044e7a131bc7baef2da38c1ed","original_commit_id":"eaba57a7642a1f4044e7a131bc7baef2da38c1ed","user":{"login":"gashcrumb","id":351660,"avatar_url":"https://avatars2.githubusercontent.com/u/351660?v=4","gravatar_id":"","url":"https://api.github.com/users/gashcrumb","html_url":"https://github.com/gashcrumb","followers_url":"https://api.github.com/users/gashcrumb/followers","following_url":"https://api.github.com/users/gashcrumb/following{/other_user}","gists_url":"https://api.github.com/users/gashcrumb/gists{/gist_id}","starred_url":"https://api.github.com/users/gashcrumb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gashcrumb/subscriptions","organizations_url":"https://api.github.com/users/gashcrumb/orgs","repos_url":"https://api.github.com/users/gashcrumb/repos","events_url":"https://api.github.com/users/gashcrumb/events{/privacy}","received_events_url":"https://api.github.com/users/gashcrumb/received_events","type":"User","site_admin":false},"body":"I'd maybe have this as a default template so it's not required to pass in unless customization is needed.  I think across the app the `+` with the circle around it is the standard, so maybe it's worth just simplifying your component and just move this to your component's template?","created_at":"2018-03-16T12:53:15Z","updated_at":"2018-03-16T12:53:15Z","html_url":"https://github.com/syndesisio/syndesis/pull/2035#discussion_r175079825","pull_request_url":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/comments/175079825"},"html":{"href":"https://github.com/syndesisio/syndesis/pull/2035#discussion_r175079825"},"pull_request":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035"}}},"pull_request":{"url":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035","id":175342674,"html_url":"https://github.com/syndesisio/syndesis/pull/2035","diff_url":"https://github.com/syndesisio/syndesis/pull/2035.diff","patch_url":"https://github.com/syndesisio/syndesis/pull/2035.patch","issue_url":"https://api.github.com/repos/syndesisio/syndesis/issues/2035","number":2035,"state":"open","locked":false,"title":"Create empty state card component","user":{"login":"michael-coker","id":35148959,"avatar_url":"https://avatars0.githubusercontent.com/u/35148959?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-coker","html_url":"https://github.com/michael-coker","followers_url":"https://api.github.com/users/michael-coker/followers","following_url":"https://api.github.com/users/michael-coker/following{/other_user}","gists_url":"https://api.github.com/users/michael-coker/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-coker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-coker/subscriptions","organizations_url":"https://api.github.com/users/michael-coker/orgs","repos_url":"https://api.github.com/users/michael-coker/repos","events_url":"https://api.github.com/users/michael-coker/events{/privacy}","received_events_url":"https://api.github.com/users/michael-coker/received_events","type":"User","site_admin":false},"body":"fixes https://github.com/syndesisio/syndesis/issues/1916\r\n\r\nI'm not sure how to pass the event from the card to the component it's in. You'll see that the `button` in the empty state card in [list.component.html](https://github.com/michael-coker/syndesis/blob/empty-state-card/app/ui/src/app/connections/list/list.component.html) doesn't work.","created_at":"2018-03-15T18:35:08Z","updated_at":"2018-03-16T12:53:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e13116e812b2cf9b745d99bfa0b030cf96089a4f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":751428754,"url":"https://api.github.com/repos/syndesisio/syndesis/labels/group/ui","name":"group/ui","color":"dce6f0","default":false},{"id":751428905,"url":"https://api.github.com/repos/syndesisio/syndesis/labels/status/wip","name":"status/wip","color":"f5c73f","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035/commits","review_comments_url":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035/comments","review_comment_url":"https://api.github.com/repos/syndesisio/syndesis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/syndesisio/syndesis/issues/2035/comments","statuses_url":"https://api.github.com/repos/syndesisio/syndesis/statuses/eaba57a7642a1f4044e7a131bc7baef2da38c1ed","head":{"label":"michael-coker:empty-state-card","ref":"empty-state-card","sha":"eaba57a7642a1f4044e7a131bc7baef2da38c1ed","user":{"login":"michael-coker","id":35148959,"avatar_url":"https://avatars0.githubusercontent.com/u/35148959?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-coker","html_url":"https://github.com/michael-coker","followers_url":"https://api.github.com/users/michael-coker/followers","following_url":"https://api.github.com/users/michael-coker/following{/other_user}","gists_url":"https://api.github.com/users/michael-coker/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-coker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-coker/subscriptions","organizations_url":"https://api.github.com/users/michael-coker/orgs","repos_url":"https://api.github.com/users/michael-coker/repos","events_url":"https://api.github.com/users/michael-coker/events{/privacy}","received_events_url":"https://api.github.com/users/michael-coker/received_events","type":"User","site_admin":false},"repo":{"id":121762887,"name":"syndesis","full_name":"michael-coker/syndesis","owner":{"login":"michael-coker","id":35148959,"avatar_url":"https://avatars0.githubusercontent.com/u/35148959?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-coker","html_url":"https://github.com/michael-coker","followers_url":"https://api.github.com/users/michael-coker/followers","following_url":"https://api.github.com/users/michael-coker/following{/other_user}","gists_url":"https://api.github.com/users/michael-coker/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-coker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-coker/subscriptions","organizations_url":"https://api.github.com/users/michael-coker/orgs","repos_url":"https://api.github.com/users/michael-coker/repos","events_url":"https://api.github.com/users/michael-coker/events{/privacy}","received_events_url":"https://api.github.com/users/michael-coker/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael-coker/syndesis","description":"A flexible, customizable, open source platform that provides core integration capabilities as a service.","fork":true,"url":"https://api.github.com/repos/michael-coker/syndesis","forks_url":"https://api.github.com/repos/michael-coker/syndesis/forks","keys_url":"https://api.github.com/repos/michael-coker/syndesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael-coker/syndesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael-coker/syndesis/teams","hooks_url":"https://api.github.com/repos/michael-coker/syndesis/hooks","issue_events_url":"https://api.github.com/repos/michael-coker/syndesis/issues/events{/number}","events_url":"https://api.github.com/repos/michael-coker/syndesis/events","assignees_url":"https://api.github.com/repos/michael-coker/syndesis/assignees{/user}","branches_url":"https://api.github.com/repos/michael-coker/syndesis/branches{/branch}","tags_url":"https://api.github.com/repos/michael-coker/syndesis/tags","blobs_url":"https://api.github.com/repos/michael-coker/syndesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael-coker/syndesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael-coker/syndesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael-coker/syndesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael-coker/syndesis/statuses/{sha}","languages_url":"https://api.github.com/repos/michael-coker/syndesis/languages","stargazers_url":"https://api.github.com/repos/michael-coker/syndesis/stargazers","contributors_url":"https://api.github.com/repos/michael-coker/syndesis/contributors","subscribers_url":"https://api.github.com/repos/michael-coker/syndesis/subscribers","subscription_url":"https://api.github.com/repos/michael-coker/syndesis/subscription","commits_url":"https://api.github.com/repos/michael-coker/syndesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael-coker/syndesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael-coker/syndesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael-coker/syndesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael-coker/syndesis/contents/{+path}","compare_url":"https://api.github.com/repos/michael-coker/syndesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael-coker/syndesis/merges","archive_url":"https://api.github.com/repos/michael-coker/syndesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael-coker/syndesis/downloads","issues_url":"https://api.github.com/repos/michael-coker/syndesis/issues{/number}","pulls_url":"https://api.github.com/repos/michael-coker/syndesis/pulls{/number}","milestones_url":"https://api.github.com/repos/michael-coker/syndesis/milestones{/number}","notifications_url":"https://api.github.com/repos/michael-coker/syndesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael-coker/syndesis/labels{/name}","releases_url":"https://api.github.com/repos/michael-coker/syndesis/releases{/id}","deployments_url":"https://api.github.com/repos/michael-coker/syndesis/deployments","created_at":"2018-02-16T14:56:24Z","updated_at":"2018-03-15T20:10:19Z","pushed_at":"2018-03-15T20:47:31Z","git_url":"git://github.com/michael-coker/syndesis.git","ssh_url":"git@github.com:michael-coker/syndesis.git","clone_url":"https://github.com/michael-coker/syndesis.git","svn_url":"https://github.com/michael-coker/syndesis","homepage":null,"size":58855,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"syndesisio:master","ref":"master","sha":"f66371c95cec674de5fb3df9116ea21cb2f891e9","user":{"login":"syndesisio","id":23079786,"avatar_url":"https://avatars3.githubusercontent.com/u/23079786?v=4","gravatar_id":"","url":"https://api.github.com/users/syndesisio","html_url":"https://github.com/syndesisio","followers_url":"https://api.github.com/users/syndesisio/followers","following_url":"https://api.github.com/users/syndesisio/following{/other_user}","gists_url":"https://api.github.com/users/syndesisio/gists{/gist_id}","starred_url":"https://api.github.com/users/syndesisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syndesisio/subscriptions","organizations_url":"https://api.github.com/users/syndesisio/orgs","repos_url":"https://api.github.com/users/syndesisio/repos","events_url":"https://api.github.com/users/syndesisio/events{/privacy}","received_events_url":"https://api.github.com/users/syndesisio/received_events","type":"Organization","site_admin":false},"repo":{"id":105563335,"name":"syndesis","full_name":"syndesisio/syndesis","owner":{"login":"syndesisio","id":23079786,"avatar_url":"https://avatars3.githubusercontent.com/u/23079786?v=4","gravatar_id":"","url":"https://api.github.com/users/syndesisio","html_url":"https://github.com/syndesisio","followers_url":"https://api.github.com/users/syndesisio/followers","following_url":"https://api.github.com/users/syndesisio/following{/other_user}","gists_url":"https://api.github.com/users/syndesisio/gists{/gist_id}","starred_url":"https://api.github.com/users/syndesisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syndesisio/subscriptions","organizations_url":"https://api.github.com/users/syndesisio/orgs","repos_url":"https://api.github.com/users/syndesisio/repos","events_url":"https://api.github.com/users/syndesisio/events{/privacy}","received_events_url":"https://api.github.com/users/syndesisio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/syndesisio/syndesis","description":"A flexible, customizable, open source platform that provides core integration capabilities as a service.","fork":false,"url":"https://api.github.com/repos/syndesisio/syndesis","forks_url":"https://api.github.com/repos/syndesisio/syndesis/forks","keys_url":"https://api.github.com/repos/syndesisio/syndesis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syndesisio/syndesis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syndesisio/syndesis/teams","hooks_url":"https://api.github.com/repos/syndesisio/syndesis/hooks","issue_events_url":"https://api.github.com/repos/syndesisio/syndesis/issues/events{/number}","events_url":"https://api.github.com/repos/syndesisio/syndesis/events","assignees_url":"https://api.github.com/repos/syndesisio/syndesis/assignees{/user}","branches_url":"https://api.github.com/repos/syndesisio/syndesis/branches{/branch}","tags_url":"https://api.github.com/repos/syndesisio/syndesis/tags","blobs_url":"https://api.github.com/repos/syndesisio/syndesis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syndesisio/syndesis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syndesisio/syndesis/git/refs{/sha}","trees_url":"https://api.github.com/repos/syndesisio/syndesis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syndesisio/syndesis/statuses/{sha}","languages_url":"https://api.github.com/repos/syndesisio/syndesis/languages","stargazers_url":"https://api.github.com/repos/syndesisio/syndesis/stargazers","contributors_url":"https://api.github.com/repos/syndesisio/syndesis/contributors","subscribers_url":"https://api.github.com/repos/syndesisio/syndesis/subscribers","subscription_url":"https://api.github.com/repos/syndesisio/syndesis/subscription","commits_url":"https://api.github.com/repos/syndesisio/syndesis/commits{/sha}","git_commits_url":"https://api.github.com/repos/syndesisio/syndesis/git/commits{/sha}","comments_url":"https://api.github.com/repos/syndesisio/syndesis/comments{/number}","issue_comment_url":"https://api.github.com/repos/syndesisio/syndesis/issues/comments{/number}","contents_url":"https://api.github.com/repos/syndesisio/syndesis/contents/{+path}","compare_url":"https://api.github.com/repos/syndesisio/syndesis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syndesisio/syndesis/merges","archive_url":"https://api.github.com/repos/syndesisio/syndesis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syndesisio/syndesis/downloads","issues_url":"https://api.github.com/repos/syndesisio/syndesis/issues{/number}","pulls_url":"https://api.github.com/repos/syndesisio/syndesis/pulls{/number}","milestones_url":"https://api.github.com/repos/syndesisio/syndesis/milestones{/number}","notifications_url":"https://api.github.com/repos/syndesisio/syndesis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syndesisio/syndesis/labels{/name}","releases_url":"https://api.github.com/repos/syndesisio/syndesis/releases{/id}","deployments_url":"https://api.github.com/repos/syndesisio/syndesis/deployments","created_at":"2017-10-02T17:26:55Z","updated_at":"2018-03-16T09:42:27Z","pushed_at":"2018-03-16T12:28:58Z","git_url":"git://github.com/syndesisio/syndesis.git","ssh_url":"git@github.com:syndesisio/syndesis.git","clone_url":"https://github.com/syndesisio/syndesis.git","svn_url":"https://github.com/syndesisio/syndesis","homepage":null,"size":60195,"stargazers_count":37,"watchers_count":37,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":49,"mirror_url":null,"archived":false,"open_issues_count":260,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":49,"open_issues":260,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035"},"html":{"href":"https://github.com/syndesisio/syndesis/pull/2035"},"issue":{"href":"https://api.github.com/repos/syndesisio/syndesis/issues/2035"},"comments":{"href":"https://api.github.com/repos/syndesisio/syndesis/issues/2035/comments"},"review_comments":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035/comments"},"review_comment":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/syndesisio/syndesis/pulls/2035/commits"},"statuses":{"href":"https://api.github.com/repos/syndesisio/syndesis/statuses/eaba57a7642a1f4044e7a131bc7baef2da38c1ed"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gashcrumb"}}