{"action":"created","comment":{"url":"https://api.github.com/repos/cerner/terra-core/pulls/comments/171452228","pull_request_review_id":100304950,"id":171452228,"diff_hunk":"@@ -0,0 +1,92 @@\n+import React from 'react';\n+import PropTypes from 'prop-types';\n+import classNames from 'classnames/bind';\n+import 'terra-base/lib/baseStyles';\n+import TerraImage from 'terra-image';\n+import styles from './Avatar.scss';\n+\n+const cx = classNames.bind(styles);\n+\n+const AvatarVariants = {\n+  FACILITY: 'facility',\n+  USER: 'user',\n+};\n+\n+const propTypes = {\n+  /**\n+   * The text content that specifies the alternative text for the image.\n+   */\n+  alt: PropTypes.string,\n+  /**\n+   * The image to display.\n+   */\n+  image: PropTypes.string,\n+  /**\n+   * The initials to display.\n+   */\n+  initials: PropTypes.string,\n+  /**\n+   * The avatar variant. One of `AvatarVariants.FACILITY`, `AvatarVariants.USER`.\n+   */\n+  variant: PropTypes.oneOf([AvatarVariants.FACILITY, AvatarVariants.USER]),\n+};\n+\n+const defaultProps = {\n+  variant: AvatarVariants.USER,\n+};\n+\n+export const propsErrorMsg = 'Only one of the props: [image, initials] should be supplied.';","path":"packages/terra-avatar/src/Avatar.jsx","position":38,"original_position":38,"commit_id":"48ab9ff3edd3f5c7009714327ec86c4e254ded09","original_commit_id":"48ab9ff3edd3f5c7009714327ec86c4e254ded09","user":{"login":"StephenEsser","id":6720991,"avatar_url":"https://avatars0.githubusercontent.com/u/6720991?v=4","gravatar_id":"","url":"https://api.github.com/users/StephenEsser","html_url":"https://github.com/StephenEsser","followers_url":"https://api.github.com/users/StephenEsser/followers","following_url":"https://api.github.com/users/StephenEsser/following{/other_user}","gists_url":"https://api.github.com/users/StephenEsser/gists{/gist_id}","starred_url":"https://api.github.com/users/StephenEsser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephenEsser/subscriptions","organizations_url":"https://api.github.com/users/StephenEsser/orgs","repos_url":"https://api.github.com/users/StephenEsser/repos","events_url":"https://api.github.com/users/StephenEsser/events{/privacy}","received_events_url":"https://api.github.com/users/StephenEsser/received_events","type":"User","site_admin":false},"body":"Why is this being exported?","created_at":"2018-03-01T03:00:09Z","updated_at":"2018-03-01T03:00:09Z","html_url":"https://github.com/cerner/terra-core/pull/1307#discussion_r171452228","pull_request_url":"https://api.github.com/repos/cerner/terra-core/pulls/1307","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/comments/171452228"},"html":{"href":"https://github.com/cerner/terra-core/pull/1307#discussion_r171452228"},"pull_request":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/1307"}}},"pull_request":{"url":"https://api.github.com/repos/cerner/terra-core/pulls/1307","id":172071662,"html_url":"https://github.com/cerner/terra-core/pull/1307","diff_url":"https://github.com/cerner/terra-core/pull/1307.diff","patch_url":"https://github.com/cerner/terra-core/pull/1307.patch","issue_url":"https://api.github.com/repos/cerner/terra-core/issues/1307","number":1307,"state":"open","locked":false,"title":"Terra Avatar","user":{"login":"ChaseSinclair","id":5703475,"avatar_url":"https://avatars0.githubusercontent.com/u/5703475?v=4","gravatar_id":"","url":"https://api.github.com/users/ChaseSinclair","html_url":"https://github.com/ChaseSinclair","followers_url":"https://api.github.com/users/ChaseSinclair/followers","following_url":"https://api.github.com/users/ChaseSinclair/following{/other_user}","gists_url":"https://api.github.com/users/ChaseSinclair/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaseSinclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaseSinclair/subscriptions","organizations_url":"https://api.github.com/users/ChaseSinclair/orgs","repos_url":"https://api.github.com/users/ChaseSinclair/repos","events_url":"https://api.github.com/users/ChaseSinclair/events{/privacy}","received_events_url":"https://api.github.com/users/ChaseSinclair/received_events","type":"User","site_admin":false},"body":"### Summary\r\nThe terra-avatar component displays an avatar which can be either an image or text. If neither an image or text is provided, a variant-based fallback icon is used. The avatar displays in a circular wrapper.\r\n\r\nResolves #1279. \r\n\r\n### Deployment Link\r\n\r\nhttps://terra-core-deployed-pr-1307.herokuapp.com/static/#/site/avatar\r\n\r\n\r\n","created_at":"2018-02-28T21:02:38Z","updated_at":"2018-03-01T03:00:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dba625d2af668d8a20d45119c2984d69933985a5","assignee":{"login":"ChaseSinclair","id":5703475,"avatar_url":"https://avatars0.githubusercontent.com/u/5703475?v=4","gravatar_id":"","url":"https://api.github.com/users/ChaseSinclair","html_url":"https://github.com/ChaseSinclair","followers_url":"https://api.github.com/users/ChaseSinclair/followers","following_url":"https://api.github.com/users/ChaseSinclair/following{/other_user}","gists_url":"https://api.github.com/users/ChaseSinclair/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaseSinclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaseSinclair/subscriptions","organizations_url":"https://api.github.com/users/ChaseSinclair/orgs","repos_url":"https://api.github.com/users/ChaseSinclair/repos","events_url":"https://api.github.com/users/ChaseSinclair/events{/privacy}","received_events_url":"https://api.github.com/users/ChaseSinclair/received_events","type":"User","site_admin":false},"assignees":[{"login":"ChaseSinclair","id":5703475,"avatar_url":"https://avatars0.githubusercontent.com/u/5703475?v=4","gravatar_id":"","url":"https://api.github.com/users/ChaseSinclair","html_url":"https://github.com/ChaseSinclair","followers_url":"https://api.github.com/users/ChaseSinclair/followers","following_url":"https://api.github.com/users/ChaseSinclair/following{/other_user}","gists_url":"https://api.github.com/users/ChaseSinclair/gists{/gist_id}","starred_url":"https://api.github.com/users/ChaseSinclair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChaseSinclair/subscriptions","organizations_url":"https://api.github.com/users/ChaseSinclair/orgs","repos_url":"https://api.github.com/users/ChaseSinclair/repos","events_url":"https://api.github.com/users/ChaseSinclair/events{/privacy}","received_events_url":"https://api.github.com/users/ChaseSinclair/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mjhenkes","id":1588747,"avatar_url":"https://avatars2.githubusercontent.com/u/1588747?v=4","gravatar_id":"","url":"https://api.github.com/users/mjhenkes","html_url":"https://github.com/mjhenkes","followers_url":"https://api.github.com/users/mjhenkes/followers","following_url":"https://api.github.com/users/mjhenkes/following{/other_user}","gists_url":"https://api.github.com/users/mjhenkes/gists{/gist_id}","starred_url":"https://api.github.com/users/mjhenkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjhenkes/subscriptions","organizations_url":"https://api.github.com/users/mjhenkes/orgs","repos_url":"https://api.github.com/users/mjhenkes/repos","events_url":"https://api.github.com/users/mjhenkes/events{/privacy}","received_events_url":"https://api.github.com/users/mjhenkes/received_events","type":"User","site_admin":false},{"login":"JakeLaCombe","id":2552573,"avatar_url":"https://avatars3.githubusercontent.com/u/2552573?v=4","gravatar_id":"","url":"https://api.github.com/users/JakeLaCombe","html_url":"https://github.com/JakeLaCombe","followers_url":"https://api.github.com/users/JakeLaCombe/followers","following_url":"https://api.github.com/users/JakeLaCombe/following{/other_user}","gists_url":"https://api.github.com/users/JakeLaCombe/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeLaCombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeLaCombe/subscriptions","organizations_url":"https://api.github.com/users/JakeLaCombe/orgs","repos_url":"https://api.github.com/users/JakeLaCombe/repos","events_url":"https://api.github.com/users/JakeLaCombe/events{/privacy}","received_events_url":"https://api.github.com/users/JakeLaCombe/received_events","type":"User","site_admin":false},{"login":"ryanthemanuel","id":4873279,"avatar_url":"https://avatars3.githubusercontent.com/u/4873279?v=4","gravatar_id":"","url":"https://api.github.com/users/ryanthemanuel","html_url":"https://github.com/ryanthemanuel","followers_url":"https://api.github.com/users/ryanthemanuel/followers","following_url":"https://api.github.com/users/ryanthemanuel/following{/other_user}","gists_url":"https://api.github.com/users/ryanthemanuel/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanthemanuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanthemanuel/subscriptions","organizations_url":"https://api.github.com/users/ryanthemanuel/orgs","repos_url":"https://api.github.com/users/ryanthemanuel/repos","events_url":"https://api.github.com/users/ryanthemanuel/events{/privacy}","received_events_url":"https://api.github.com/users/ryanthemanuel/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":831637814,"url":"https://api.github.com/repos/cerner/terra-core/labels/avatar","name":"avatar","color":"0b83aa","default":false},{"id":847444325,"url":"https://api.github.com/repos/cerner/terra-core/labels/new%20component","name":"new component","color":"7fe8e2","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cerner/terra-core/pulls/1307/commits","review_comments_url":"https://api.github.com/repos/cerner/terra-core/pulls/1307/comments","review_comment_url":"https://api.github.com/repos/cerner/terra-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cerner/terra-core/issues/1307/comments","statuses_url":"https://api.github.com/repos/cerner/terra-core/statuses/48ab9ff3edd3f5c7009714327ec86c4e254ded09","head":{"label":"cerner:terra-avatar","ref":"terra-avatar","sha":"48ab9ff3edd3f5c7009714327ec86c4e254ded09","user":{"login":"cerner","id":1873208,"avatar_url":"https://avatars1.githubusercontent.com/u/1873208?v=4","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"repo":{"id":83073156,"name":"terra-core","full_name":"cerner/terra-core","owner":{"login":"cerner","id":1873208,"avatar_url":"https://avatars1.githubusercontent.com/u/1873208?v=4","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cerner/terra-core","description":"Terra offers a set of configurable React components designed to help build scalable and modular application UIs. The library easily integrates with webpack-based workflows and was created to solve real-world issues in projects we work on day to day.","fork":false,"url":"https://api.github.com/repos/cerner/terra-core","forks_url":"https://api.github.com/repos/cerner/terra-core/forks","keys_url":"https://api.github.com/repos/cerner/terra-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cerner/terra-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cerner/terra-core/teams","hooks_url":"https://api.github.com/repos/cerner/terra-core/hooks","issue_events_url":"https://api.github.com/repos/cerner/terra-core/issues/events{/number}","events_url":"https://api.github.com/repos/cerner/terra-core/events","assignees_url":"https://api.github.com/repos/cerner/terra-core/assignees{/user}","branches_url":"https://api.github.com/repos/cerner/terra-core/branches{/branch}","tags_url":"https://api.github.com/repos/cerner/terra-core/tags","blobs_url":"https://api.github.com/repos/cerner/terra-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cerner/terra-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cerner/terra-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/cerner/terra-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cerner/terra-core/statuses/{sha}","languages_url":"https://api.github.com/repos/cerner/terra-core/languages","stargazers_url":"https://api.github.com/repos/cerner/terra-core/stargazers","contributors_url":"https://api.github.com/repos/cerner/terra-core/contributors","subscribers_url":"https://api.github.com/repos/cerner/terra-core/subscribers","subscription_url":"https://api.github.com/repos/cerner/terra-core/subscription","commits_url":"https://api.github.com/repos/cerner/terra-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/cerner/terra-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/cerner/terra-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/cerner/terra-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/cerner/terra-core/contents/{+path}","compare_url":"https://api.github.com/repos/cerner/terra-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cerner/terra-core/merges","archive_url":"https://api.github.com/repos/cerner/terra-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cerner/terra-core/downloads","issues_url":"https://api.github.com/repos/cerner/terra-core/issues{/number}","pulls_url":"https://api.github.com/repos/cerner/terra-core/pulls{/number}","milestones_url":"https://api.github.com/repos/cerner/terra-core/milestones{/number}","notifications_url":"https://api.github.com/repos/cerner/terra-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cerner/terra-core/labels{/name}","releases_url":"https://api.github.com/repos/cerner/terra-core/releases{/id}","deployments_url":"https://api.github.com/repos/cerner/terra-core/deployments","created_at":"2017-02-24T18:57:33Z","updated_at":"2018-02-27T02:05:17Z","pushed_at":"2018-03-01T02:32:39Z","git_url":"git://github.com/cerner/terra-core.git","ssh_url":"git@github.com:cerner/terra-core.git","clone_url":"https://github.com/cerner/terra-core.git","svn_url":"https://github.com/cerner/terra-core","homepage":"http://engineering.cerner.com/terra-core/#/site","size":20089,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":108,"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":43,"open_issues":108,"watchers":86,"default_branch":"master"}},"base":{"label":"cerner:master","ref":"master","sha":"c8d77fd080ac27059879f6182d60f1f4373b6501","user":{"login":"cerner","id":1873208,"avatar_url":"https://avatars1.githubusercontent.com/u/1873208?v=4","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"repo":{"id":83073156,"name":"terra-core","full_name":"cerner/terra-core","owner":{"login":"cerner","id":1873208,"avatar_url":"https://avatars1.githubusercontent.com/u/1873208?v=4","gravatar_id":"","url":"https://api.github.com/users/cerner","html_url":"https://github.com/cerner","followers_url":"https://api.github.com/users/cerner/followers","following_url":"https://api.github.com/users/cerner/following{/other_user}","gists_url":"https://api.github.com/users/cerner/gists{/gist_id}","starred_url":"https://api.github.com/users/cerner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cerner/subscriptions","organizations_url":"https://api.github.com/users/cerner/orgs","repos_url":"https://api.github.com/users/cerner/repos","events_url":"https://api.github.com/users/cerner/events{/privacy}","received_events_url":"https://api.github.com/users/cerner/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cerner/terra-core","description":"Terra offers a set of configurable React components designed to help build scalable and modular application UIs. The library easily integrates with webpack-based workflows and was created to solve real-world issues in projects we work on day to day.","fork":false,"url":"https://api.github.com/repos/cerner/terra-core","forks_url":"https://api.github.com/repos/cerner/terra-core/forks","keys_url":"https://api.github.com/repos/cerner/terra-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cerner/terra-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cerner/terra-core/teams","hooks_url":"https://api.github.com/repos/cerner/terra-core/hooks","issue_events_url":"https://api.github.com/repos/cerner/terra-core/issues/events{/number}","events_url":"https://api.github.com/repos/cerner/terra-core/events","assignees_url":"https://api.github.com/repos/cerner/terra-core/assignees{/user}","branches_url":"https://api.github.com/repos/cerner/terra-core/branches{/branch}","tags_url":"https://api.github.com/repos/cerner/terra-core/tags","blobs_url":"https://api.github.com/repos/cerner/terra-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cerner/terra-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cerner/terra-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/cerner/terra-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cerner/terra-core/statuses/{sha}","languages_url":"https://api.github.com/repos/cerner/terra-core/languages","stargazers_url":"https://api.github.com/repos/cerner/terra-core/stargazers","contributors_url":"https://api.github.com/repos/cerner/terra-core/contributors","subscribers_url":"https://api.github.com/repos/cerner/terra-core/subscribers","subscription_url":"https://api.github.com/repos/cerner/terra-core/subscription","commits_url":"https://api.github.com/repos/cerner/terra-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/cerner/terra-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/cerner/terra-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/cerner/terra-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/cerner/terra-core/contents/{+path}","compare_url":"https://api.github.com/repos/cerner/terra-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cerner/terra-core/merges","archive_url":"https://api.github.com/repos/cerner/terra-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cerner/terra-core/downloads","issues_url":"https://api.github.com/repos/cerner/terra-core/issues{/number}","pulls_url":"https://api.github.com/repos/cerner/terra-core/pulls{/number}","milestones_url":"https://api.github.com/repos/cerner/terra-core/milestones{/number}","notifications_url":"https://api.github.com/repos/cerner/terra-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cerner/terra-core/labels{/name}","releases_url":"https://api.github.com/repos/cerner/terra-core/releases{/id}","deployments_url":"https://api.github.com/repos/cerner/terra-core/deployments","created_at":"2017-02-24T18:57:33Z","updated_at":"2018-02-27T02:05:17Z","pushed_at":"2018-03-01T02:32:39Z","git_url":"git://github.com/cerner/terra-core.git","ssh_url":"git@github.com:cerner/terra-core.git","clone_url":"https://github.com/cerner/terra-core.git","svn_url":"https://github.com/cerner/terra-core","homepage":"http://engineering.cerner.com/terra-core/#/site","size":20089,"stargazers_count":86,"watchers_count":86,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":108,"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":43,"open_issues":108,"watchers":86,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/1307"},"html":{"href":"https://github.com/cerner/terra-core/pull/1307"},"issue":{"href":"https://api.github.com/repos/cerner/terra-core/issues/1307"},"comments":{"href":"https://api.github.com/repos/cerner/terra-core/issues/1307/comments"},"review_comments":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/1307/comments"},"review_comment":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cerner/terra-core/pulls/1307/commits"},"statuses":{"href":"https://api.github.com/repos/cerner/terra-core/statuses/48ab9ff3edd3f5c7009714327ec86c4e254ded09"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"StephenEsser"}}