{"action":"created","comment":{"url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/comments/210866414","pull_request_review_id":147171945,"id":210866414,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDg2NjQxNA==","diff_hunk":"@@ -0,0 +1,44 @@\n+import React from 'react';\n+import { css } from 'emotion';\n+import PropTypes from 'prop-types';\n+import {\n+  MESSAGE_SEVERITY_ERROR,\n+  MESSAGE_SEVERITY_SUCCESS,\n+} from '../../../constants/messages';\n+\n+let styles;\n+let modifierClassMap;\n+\n+const Message = ({ message, messageSeverity }) => (\n+  <div className={`${styles.message} ${modifierClassMap[messageSeverity]}`}>\n+    {message}\n+  </div>\n+);\n+\n+Message.propTypes = {\n+  message: PropTypes.string.isRequired,\n+  messageSeverity: PropTypes.oneOf([\n+    MESSAGE_SEVERITY_ERROR,\n+    MESSAGE_SEVERITY_SUCCESS,\n+  ]).isRequired,\n+};\n+\n+styles = {\n+  message: css`\n+    padding: 20px 25px;\n+    margin-bottom: 30px;\n+  `,\n+  success: css`\n+    background-color: #d4edda;\n+  `,\n+  error: css`\n+    background-color: #f8d7da;\n+  `,\n+};\n+\n+modifierClassMap = {\n+  [MESSAGE_SEVERITY_ERROR]: styles.error,","path":"src/components/02_atoms/InlineMessage/InlineMessage.js","position":40,"original_position":40,"commit_id":"4a7794807b95b065dae132c35eb9fcd0ebf9c0f2","original_commit_id":"4a7794807b95b065dae132c35eb9fcd0ebf9c0f2","user":{"login":"dawehner","id":29678,"node_id":"MDQ6VXNlcjI5Njc4","avatar_url":"https://avatars0.githubusercontent.com/u/29678?v=4","gravatar_id":"","url":"https://api.github.com/users/dawehner","html_url":"https://github.com/dawehner","followers_url":"https://api.github.com/users/dawehner/followers","following_url":"https://api.github.com/users/dawehner/following{/other_user}","gists_url":"https://api.github.com/users/dawehner/gists{/gist_id}","starred_url":"https://api.github.com/users/dawehner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dawehner/subscriptions","organizations_url":"https://api.github.com/users/dawehner/orgs","repos_url":"https://api.github.com/users/dawehner/repos","events_url":"https://api.github.com/users/dawehner/events{/privacy}","received_events_url":"https://api.github.com/users/dawehner/received_events","type":"User","site_admin":false},"body":"Why do we not handle the warning case?","created_at":"2018-08-17T10:18:04Z","updated_at":"2018-08-17T10:18:04Z","html_url":"https://github.com/jsdrupal/drupal-admin-ui/pull/289#discussion_r210866414","pull_request_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/comments/210866414"},"html":{"href":"https://github.com/jsdrupal/drupal-admin-ui/pull/289#discussion_r210866414"},"pull_request":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289"}}},"pull_request":{"url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289","id":207077366,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3MDc3MzY2","html_url":"https://github.com/jsdrupal/drupal-admin-ui/pull/289","diff_url":"https://github.com/jsdrupal/drupal-admin-ui/pull/289.diff","patch_url":"https://github.com/jsdrupal/drupal-admin-ui/pull/289.patch","issue_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/289","number":289,"state":"open","locked":false,"title":"General use \"Snackbar\" component","user":{"login":"porkloin","id":2111126,"node_id":"MDQ6VXNlcjIxMTExMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2111126?v=4","gravatar_id":"","url":"https://api.github.com/users/porkloin","html_url":"https://github.com/porkloin","followers_url":"https://api.github.com/users/porkloin/followers","following_url":"https://api.github.com/users/porkloin/following{/other_user}","gists_url":"https://api.github.com/users/porkloin/gists{/gist_id}","starred_url":"https://api.github.com/users/porkloin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porkloin/subscriptions","organizations_url":"https://api.github.com/users/porkloin/orgs","repos_url":"https://api.github.com/users/porkloin/repos","events_url":"https://api.github.com/users/porkloin/events{/privacy}","received_events_url":"https://api.github.com/users/porkloin/received_events","type":"User","site_admin":false},"body":"## Issue\r\n\r\nhttps://github.com/jsdrupal/drupal-admin-ui/issues/265\r\n\r\n## Screenshot / UI changes\r\n\r\n![screen shot 2018-08-08 at 9 03 04 am](https://user-images.githubusercontent.com/2111126/43852560-00e31c7c-9aea-11e8-82cf-173de6d1b770.png)\r\n\r\n\r\n## Testing instructions\r\n\r\nThis is a general-purpose component that can be used for issuing snackbar notifications. The `<SnackbarMessage />` component is mounted at `<Default />` and you can issue a Snackbar notification with `props.summonSnackbar(\"Snackbar message\")`\r\n\r\n\r\n\r\n\r\n","created_at":"2018-08-08T17:11:13Z","updated_at":"2018-08-17T10:18:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"994669267f20381855a68eb960ec7a26473d2839","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":840174157,"node_id":"MDU6TGFiZWw4NDAxNzQxNTc=","url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/labels/Enhancement%20%F0%9F%8E%89","name":"Enhancement 🎉","color":"a2eeef","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289/commits","review_comments_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289/comments","review_comment_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/289/comments","statuses_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/statuses/4a7794807b95b065dae132c35eb9fcd0ebf9c0f2","head":{"label":"porkloin:snackbar-node-add","ref":"snackbar-node-add","sha":"4a7794807b95b065dae132c35eb9fcd0ebf9c0f2","user":{"login":"porkloin","id":2111126,"node_id":"MDQ6VXNlcjIxMTExMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2111126?v=4","gravatar_id":"","url":"https://api.github.com/users/porkloin","html_url":"https://github.com/porkloin","followers_url":"https://api.github.com/users/porkloin/followers","following_url":"https://api.github.com/users/porkloin/following{/other_user}","gists_url":"https://api.github.com/users/porkloin/gists{/gist_id}","starred_url":"https://api.github.com/users/porkloin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porkloin/subscriptions","organizations_url":"https://api.github.com/users/porkloin/orgs","repos_url":"https://api.github.com/users/porkloin/repos","events_url":"https://api.github.com/users/porkloin/events{/privacy}","received_events_url":"https://api.github.com/users/porkloin/received_events","type":"User","site_admin":false},"repo":{"id":143793217,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM3OTMyMTc=","name":"drupal-admin-ui","full_name":"porkloin/drupal-admin-ui","owner":{"login":"porkloin","id":2111126,"node_id":"MDQ6VXNlcjIxMTExMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2111126?v=4","gravatar_id":"","url":"https://api.github.com/users/porkloin","html_url":"https://github.com/porkloin","followers_url":"https://api.github.com/users/porkloin/followers","following_url":"https://api.github.com/users/porkloin/following{/other_user}","gists_url":"https://api.github.com/users/porkloin/gists{/gist_id}","starred_url":"https://api.github.com/users/porkloin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/porkloin/subscriptions","organizations_url":"https://api.github.com/users/porkloin/orgs","repos_url":"https://api.github.com/users/porkloin/repos","events_url":"https://api.github.com/users/porkloin/events{/privacy}","received_events_url":"https://api.github.com/users/porkloin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/porkloin/drupal-admin-ui","description":"This is an admin UI for Drupal, built with JavaScript & React. ⬅️✌️➡️","fork":true,"url":"https://api.github.com/repos/porkloin/drupal-admin-ui","forks_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/forks","keys_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/teams","hooks_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/hooks","issue_events_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/issues/events{/number}","events_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/events","assignees_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/assignees{/user}","branches_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/branches{/branch}","tags_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/tags","blobs_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/languages","stargazers_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/stargazers","contributors_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/contributors","subscribers_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/subscribers","subscription_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/subscription","commits_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/contents/{+path}","compare_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/merges","archive_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/downloads","issues_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/issues{/number}","pulls_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/labels{/name}","releases_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/releases{/id}","deployments_url":"https://api.github.com/repos/porkloin/drupal-admin-ui/deployments","created_at":"2018-08-06T23:16:26Z","updated_at":"2018-08-09T13:02:45Z","pushed_at":"2018-08-17T10:10:22Z","git_url":"git://github.com/porkloin/drupal-admin-ui.git","ssh_url":"git@github.com:porkloin/drupal-admin-ui.git","clone_url":"https://github.com/porkloin/drupal-admin-ui.git","svn_url":"https://github.com/porkloin/drupal-admin-ui","homepage":"","size":959,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jsdrupal:master","ref":"master","sha":"8b9c8db2bc21bd6119958ffe1969b7982d6d1215","user":{"login":"jsdrupal","id":34455645,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDU1NjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/34455645?v=4","gravatar_id":"","url":"https://api.github.com/users/jsdrupal","html_url":"https://github.com/jsdrupal","followers_url":"https://api.github.com/users/jsdrupal/followers","following_url":"https://api.github.com/users/jsdrupal/following{/other_user}","gists_url":"https://api.github.com/users/jsdrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdrupal/subscriptions","organizations_url":"https://api.github.com/users/jsdrupal/orgs","repos_url":"https://api.github.com/users/jsdrupal/repos","events_url":"https://api.github.com/users/jsdrupal/events{/privacy}","received_events_url":"https://api.github.com/users/jsdrupal/received_events","type":"Organization","site_admin":false},"repo":{"id":121880923,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE4ODA5MjM=","name":"drupal-admin-ui","full_name":"jsdrupal/drupal-admin-ui","owner":{"login":"jsdrupal","id":34455645,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM0NDU1NjQ1","avatar_url":"https://avatars3.githubusercontent.com/u/34455645?v=4","gravatar_id":"","url":"https://api.github.com/users/jsdrupal","html_url":"https://github.com/jsdrupal","followers_url":"https://api.github.com/users/jsdrupal/followers","following_url":"https://api.github.com/users/jsdrupal/following{/other_user}","gists_url":"https://api.github.com/users/jsdrupal/gists{/gist_id}","starred_url":"https://api.github.com/users/jsdrupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsdrupal/subscriptions","organizations_url":"https://api.github.com/users/jsdrupal/orgs","repos_url":"https://api.github.com/users/jsdrupal/repos","events_url":"https://api.github.com/users/jsdrupal/events{/privacy}","received_events_url":"https://api.github.com/users/jsdrupal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jsdrupal/drupal-admin-ui","description":"This is an admin UI for Drupal, built with JavaScript & React. ⬅️✌️➡️","fork":false,"url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui","forks_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/forks","keys_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/teams","hooks_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/hooks","issue_events_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/events{/number}","events_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/events","assignees_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/assignees{/user}","branches_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/branches{/branch}","tags_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/tags","blobs_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/languages","stargazers_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/stargazers","contributors_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/contributors","subscribers_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/subscribers","subscription_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/subscription","commits_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/contents/{+path}","compare_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/merges","archive_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/downloads","issues_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues{/number}","pulls_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/labels{/name}","releases_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/releases{/id}","deployments_url":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/deployments","created_at":"2018-02-17T18:26:58Z","updated_at":"2018-08-16T18:56:57Z","pushed_at":"2018-08-17T10:10:23Z","git_url":"git://github.com/jsdrupal/drupal-admin-ui.git","ssh_url":"git@github.com:jsdrupal/drupal-admin-ui.git","clone_url":"https://github.com/jsdrupal/drupal-admin-ui.git","svn_url":"https://github.com/jsdrupal/drupal-admin-ui","homepage":"","size":934,"stargazers_count":114,"watchers_count":114,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":42,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":42,"open_issues":67,"watchers":114,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289"},"html":{"href":"https://github.com/jsdrupal/drupal-admin-ui/pull/289"},"issue":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/289"},"comments":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/issues/289/comments"},"review_comments":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289/comments"},"review_comment":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/pulls/289/commits"},"statuses":{"href":"https://api.github.com/repos/jsdrupal/drupal-admin-ui/statuses/4a7794807b95b065dae132c35eb9fcd0ebf9c0f2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dawehner"}}