{"action":"created","comment":{"url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/comments/233639543","pull_request_review_id":175102960,"id":233639543,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzYzOTU0Mw==","diff_hunk":"@@ -0,0 +1,65 @@\n+import React from 'react';\n+import { Button, Label, Panel } from '@sparkpost/matchbox';\n+import CopyField from 'src/components/copyField';\n+import ExternalLink from 'src/components/externalLink';\n+import PanelLoading from 'src/components/panelLoading';\n+import { Typeahead, TypeaheadItem } from 'src/components/typeahead/Typeahead';\n+import { LINKS } from 'src/constants';\n+import { slugToFriendly } from 'src/helpers/string';\n+\n+export default class ImportSnippetPanel extends React.Component {\n+  state = {\n+    snippetId: undefined\n+  }\n+\n+  componentDidMount() {\n+    this.props.getSnippets();\n+  }\n+\n+  handleChange = (snippet) => {\n+    const snippetId = !snippet ? undefined : snippet.id;\n+    this.setState({ snippetId });\n+  }\n+\n+  render() {\n+    const { loading, onClose, snippets } = this.props;\n+\n+    if (loading) {\n+      return <PanelLoading />;\n+    }\n+\n+    return (\n+      <Panel\n+        title=\"Import snippets in this template\"\n+        actions={[{\n+          component: ExternalLink,\n+          content: 'Learn More',\n+          to: LINKS.SNIPPET_SUBSTITUTION_REFERENCE\n+        }]}\n+      >\n+        <Panel.Section>\n+          <p>\n+            Find a snippet, copy the code, and paste it in your template.\n+          </p>\n+          <Typeahead","path":"src/pages/templates/components/ImportSnippetPanel.js","position":45,"original_position":44,"commit_id":"ef072d4f031e4b39534e2500bb19a2842a67b16a","original_commit_id":"ce2f129e1bb09dc4b205512861fbdfb27c7b31f4","user":{"login":"bkemper","id":1335605,"node_id":"MDQ6VXNlcjEzMzU2MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1335605?v=4","gravatar_id":"","url":"https://api.github.com/users/bkemper","html_url":"https://github.com/bkemper","followers_url":"https://api.github.com/users/bkemper/followers","following_url":"https://api.github.com/users/bkemper/following{/other_user}","gists_url":"https://api.github.com/users/bkemper/gists{/gist_id}","starred_url":"https://api.github.com/users/bkemper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkemper/subscriptions","organizations_url":"https://api.github.com/users/bkemper/orgs","repos_url":"https://api.github.com/users/bkemper/repos","events_url":"https://api.github.com/users/bkemper/events{/privacy}","received_events_url":"https://api.github.com/users/bkemper/received_events","type":"User","site_admin":false},"body":"Addressed... ef072d4f0","created_at":"2018-11-14T22:08:23Z","updated_at":"2018-11-14T22:08:23Z","html_url":"https://github.com/SparkPost/2web2ui/pull/694#discussion_r233639543","pull_request_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/comments/233639543"},"html":{"href":"https://github.com/SparkPost/2web2ui/pull/694#discussion_r233639543"},"pull_request":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694"}},"in_reply_to_id":232315060},"pull_request":{"url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694","id":229526939,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI5NTI2OTM5","html_url":"https://github.com/SparkPost/2web2ui/pull/694","diff_url":"https://github.com/SparkPost/2web2ui/pull/694.diff","patch_url":"https://github.com/SparkPost/2web2ui/pull/694.patch","issue_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/694","number":694,"state":"open","locked":false,"title":"TR-699: Feature flagged links to snippets","user":{"login":"bkemper","id":1335605,"node_id":"MDQ6VXNlcjEzMzU2MDU=","avatar_url":"https://avatars3.githubusercontent.com/u/1335605?v=4","gravatar_id":"","url":"https://api.github.com/users/bkemper","html_url":"https://github.com/bkemper","followers_url":"https://api.github.com/users/bkemper/followers","following_url":"https://api.github.com/users/bkemper/following{/other_user}","gists_url":"https://api.github.com/users/bkemper/gists{/gist_id}","starred_url":"https://api.github.com/users/bkemper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkemper/subscriptions","organizations_url":"https://api.github.com/users/bkemper/orgs","repos_url":"https://api.github.com/users/bkemper/repos","events_url":"https://api.github.com/users/bkemper/events{/privacy}","received_events_url":"https://api.github.com/users/bkemper/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-08T22:17:39Z","updated_at":"2018-11-14T22:08:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87404f667baa08cfd7fc51efae8642dd99935bcf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694/commits","review_comments_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694/comments","review_comment_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/694/comments","statuses_url":"https://api.github.com/repos/SparkPost/2web2ui/statuses/ef072d4f031e4b39534e2500bb19a2842a67b16a","head":{"label":"SparkPost:feature/TR-699","ref":"feature/TR-699","sha":"ef072d4f031e4b39534e2500bb19a2842a67b16a","user":{"login":"SparkPost","id":9406778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0MDY3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/9406778?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkPost","html_url":"https://github.com/SparkPost","followers_url":"https://api.github.com/users/SparkPost/followers","following_url":"https://api.github.com/users/SparkPost/following{/other_user}","gists_url":"https://api.github.com/users/SparkPost/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkPost/subscriptions","organizations_url":"https://api.github.com/users/SparkPost/orgs","repos_url":"https://api.github.com/users/SparkPost/repos","events_url":"https://api.github.com/users/SparkPost/events{/privacy}","received_events_url":"https://api.github.com/users/SparkPost/received_events","type":"Organization","site_admin":false},"repo":{"id":91982173,"node_id":"MDEwOlJlcG9zaXRvcnk5MTk4MjE3Mw==","name":"2web2ui","full_name":"SparkPost/2web2ui","private":false,"owner":{"login":"SparkPost","id":9406778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0MDY3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/9406778?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkPost","html_url":"https://github.com/SparkPost","followers_url":"https://api.github.com/users/SparkPost/followers","following_url":"https://api.github.com/users/SparkPost/following{/other_user}","gists_url":"https://api.github.com/users/SparkPost/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkPost/subscriptions","organizations_url":"https://api.github.com/users/SparkPost/orgs","repos_url":"https://api.github.com/users/SparkPost/repos","events_url":"https://api.github.com/users/SparkPost/events{/privacy}","received_events_url":"https://api.github.com/users/SparkPost/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SparkPost/2web2ui","description":"A React-powered app for the SparkPost email service.","fork":false,"url":"https://api.github.com/repos/SparkPost/2web2ui","forks_url":"https://api.github.com/repos/SparkPost/2web2ui/forks","keys_url":"https://api.github.com/repos/SparkPost/2web2ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SparkPost/2web2ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SparkPost/2web2ui/teams","hooks_url":"https://api.github.com/repos/SparkPost/2web2ui/hooks","issue_events_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/events{/number}","events_url":"https://api.github.com/repos/SparkPost/2web2ui/events","assignees_url":"https://api.github.com/repos/SparkPost/2web2ui/assignees{/user}","branches_url":"https://api.github.com/repos/SparkPost/2web2ui/branches{/branch}","tags_url":"https://api.github.com/repos/SparkPost/2web2ui/tags","blobs_url":"https://api.github.com/repos/SparkPost/2web2ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SparkPost/2web2ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SparkPost/2web2ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/SparkPost/2web2ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SparkPost/2web2ui/statuses/{sha}","languages_url":"https://api.github.com/repos/SparkPost/2web2ui/languages","stargazers_url":"https://api.github.com/repos/SparkPost/2web2ui/stargazers","contributors_url":"https://api.github.com/repos/SparkPost/2web2ui/contributors","subscribers_url":"https://api.github.com/repos/SparkPost/2web2ui/subscribers","subscription_url":"https://api.github.com/repos/SparkPost/2web2ui/subscription","commits_url":"https://api.github.com/repos/SparkPost/2web2ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/SparkPost/2web2ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/SparkPost/2web2ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/SparkPost/2web2ui/contents/{+path}","compare_url":"https://api.github.com/repos/SparkPost/2web2ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SparkPost/2web2ui/merges","archive_url":"https://api.github.com/repos/SparkPost/2web2ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SparkPost/2web2ui/downloads","issues_url":"https://api.github.com/repos/SparkPost/2web2ui/issues{/number}","pulls_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls{/number}","milestones_url":"https://api.github.com/repos/SparkPost/2web2ui/milestones{/number}","notifications_url":"https://api.github.com/repos/SparkPost/2web2ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SparkPost/2web2ui/labels{/name}","releases_url":"https://api.github.com/repos/SparkPost/2web2ui/releases{/id}","deployments_url":"https://api.github.com/repos/SparkPost/2web2ui/deployments","created_at":"2017-05-21T19:31:03Z","updated_at":"2018-11-14T16:01:36Z","pushed_at":"2018-11-14T22:08:06Z","git_url":"git://github.com/SparkPost/2web2ui.git","ssh_url":"git@github.com:SparkPost/2web2ui.git","clone_url":"https://github.com/SparkPost/2web2ui.git","svn_url":"https://github.com/SparkPost/2web2ui","homepage":"https://sparkpost.com","size":23703,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":53,"license":null,"forks":3,"open_issues":53,"watchers":13,"default_branch":"master"}},"base":{"label":"SparkPost:master","ref":"master","sha":"53a18e842b63d4d96586b6d0ec43a65c4a2be4a7","user":{"login":"SparkPost","id":9406778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0MDY3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/9406778?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkPost","html_url":"https://github.com/SparkPost","followers_url":"https://api.github.com/users/SparkPost/followers","following_url":"https://api.github.com/users/SparkPost/following{/other_user}","gists_url":"https://api.github.com/users/SparkPost/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkPost/subscriptions","organizations_url":"https://api.github.com/users/SparkPost/orgs","repos_url":"https://api.github.com/users/SparkPost/repos","events_url":"https://api.github.com/users/SparkPost/events{/privacy}","received_events_url":"https://api.github.com/users/SparkPost/received_events","type":"Organization","site_admin":false},"repo":{"id":91982173,"node_id":"MDEwOlJlcG9zaXRvcnk5MTk4MjE3Mw==","name":"2web2ui","full_name":"SparkPost/2web2ui","private":false,"owner":{"login":"SparkPost","id":9406778,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0MDY3Nzg=","avatar_url":"https://avatars0.githubusercontent.com/u/9406778?v=4","gravatar_id":"","url":"https://api.github.com/users/SparkPost","html_url":"https://github.com/SparkPost","followers_url":"https://api.github.com/users/SparkPost/followers","following_url":"https://api.github.com/users/SparkPost/following{/other_user}","gists_url":"https://api.github.com/users/SparkPost/gists{/gist_id}","starred_url":"https://api.github.com/users/SparkPost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SparkPost/subscriptions","organizations_url":"https://api.github.com/users/SparkPost/orgs","repos_url":"https://api.github.com/users/SparkPost/repos","events_url":"https://api.github.com/users/SparkPost/events{/privacy}","received_events_url":"https://api.github.com/users/SparkPost/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SparkPost/2web2ui","description":"A React-powered app for the SparkPost email service.","fork":false,"url":"https://api.github.com/repos/SparkPost/2web2ui","forks_url":"https://api.github.com/repos/SparkPost/2web2ui/forks","keys_url":"https://api.github.com/repos/SparkPost/2web2ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SparkPost/2web2ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SparkPost/2web2ui/teams","hooks_url":"https://api.github.com/repos/SparkPost/2web2ui/hooks","issue_events_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/events{/number}","events_url":"https://api.github.com/repos/SparkPost/2web2ui/events","assignees_url":"https://api.github.com/repos/SparkPost/2web2ui/assignees{/user}","branches_url":"https://api.github.com/repos/SparkPost/2web2ui/branches{/branch}","tags_url":"https://api.github.com/repos/SparkPost/2web2ui/tags","blobs_url":"https://api.github.com/repos/SparkPost/2web2ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SparkPost/2web2ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SparkPost/2web2ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/SparkPost/2web2ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SparkPost/2web2ui/statuses/{sha}","languages_url":"https://api.github.com/repos/SparkPost/2web2ui/languages","stargazers_url":"https://api.github.com/repos/SparkPost/2web2ui/stargazers","contributors_url":"https://api.github.com/repos/SparkPost/2web2ui/contributors","subscribers_url":"https://api.github.com/repos/SparkPost/2web2ui/subscribers","subscription_url":"https://api.github.com/repos/SparkPost/2web2ui/subscription","commits_url":"https://api.github.com/repos/SparkPost/2web2ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/SparkPost/2web2ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/SparkPost/2web2ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/SparkPost/2web2ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/SparkPost/2web2ui/contents/{+path}","compare_url":"https://api.github.com/repos/SparkPost/2web2ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SparkPost/2web2ui/merges","archive_url":"https://api.github.com/repos/SparkPost/2web2ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SparkPost/2web2ui/downloads","issues_url":"https://api.github.com/repos/SparkPost/2web2ui/issues{/number}","pulls_url":"https://api.github.com/repos/SparkPost/2web2ui/pulls{/number}","milestones_url":"https://api.github.com/repos/SparkPost/2web2ui/milestones{/number}","notifications_url":"https://api.github.com/repos/SparkPost/2web2ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SparkPost/2web2ui/labels{/name}","releases_url":"https://api.github.com/repos/SparkPost/2web2ui/releases{/id}","deployments_url":"https://api.github.com/repos/SparkPost/2web2ui/deployments","created_at":"2017-05-21T19:31:03Z","updated_at":"2018-11-14T16:01:36Z","pushed_at":"2018-11-14T22:08:06Z","git_url":"git://github.com/SparkPost/2web2ui.git","ssh_url":"git@github.com:SparkPost/2web2ui.git","clone_url":"https://github.com/SparkPost/2web2ui.git","svn_url":"https://github.com/SparkPost/2web2ui","homepage":"https://sparkpost.com","size":23703,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":53,"license":null,"forks":3,"open_issues":53,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694"},"html":{"href":"https://github.com/SparkPost/2web2ui/pull/694"},"issue":{"href":"https://api.github.com/repos/SparkPost/2web2ui/issues/694"},"comments":{"href":"https://api.github.com/repos/SparkPost/2web2ui/issues/694/comments"},"review_comments":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694/comments"},"review_comment":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SparkPost/2web2ui/pulls/694/commits"},"statuses":{"href":"https://api.github.com/repos/SparkPost/2web2ui/statuses/ef072d4f031e4b39534e2500bb19a2842a67b16a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bkemper"}}