{"action":"created","comment":{"url":"https://api.github.com/repos/bbc/simorgh/pulls/comments/196729391","pull_request_review_id":130336273,"id":196729391,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjcyOTM5MQ==","diff_hunk":"@@ -0,0 +1,70 @@\n+import React from 'react';\n+import { storiesOf } from '@storybook/react'; // eslint-disable-line import/no-extraneous-dependencies\n+import Image from './index';\n+\n+const imageData = arrayOfBlocks => ({\n+  blockId: '',\n+  type: 'image',\n+  model: {\n+    blocks: arrayOfBlocks,\n+  },\n+});\n+\n+const rawImageBlock = {\n+  type: 'rawImage',\n+  model: {\n+    locator:\n+      '/cpsprodpb/439A/production/_100960371_syrians_and_asylum_v2-nc.png',\n+  },\n+};\n+\n+const textBlock = (type, text) => ({","path":"src/app/components/Image/index.stories.jsx","position":21,"original_position":21,"commit_id":"4c94c35deefbd39d574ca7a9b8e4af1bf867b69a","original_commit_id":"4c94c35deefbd39d574ca7a9b8e4af1bf867b69a","user":{"login":"PaulChinkwende","id":30601401,"node_id":"MDQ6VXNlcjMwNjAxNDAx","avatar_url":"https://avatars2.githubusercontent.com/u/30601401?v=4","gravatar_id":"","url":"https://api.github.com/users/PaulChinkwende","html_url":"https://github.com/PaulChinkwende","followers_url":"https://api.github.com/users/PaulChinkwende/followers","following_url":"https://api.github.com/users/PaulChinkwende/following{/other_user}","gists_url":"https://api.github.com/users/PaulChinkwende/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulChinkwende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulChinkwende/subscriptions","organizations_url":"https://api.github.com/users/PaulChinkwende/orgs","repos_url":"https://api.github.com/users/PaulChinkwende/repos","events_url":"https://api.github.com/users/PaulChinkwende/events{/privacy}","received_events_url":"https://api.github.com/users/PaulChinkwende/received_events","type":"User","site_admin":false},"body":"There is code duplication between files as we are re-using some constants. We should aim to resolve this in https://github.com/bbc/simorgh/issues/141, worth looking at extracting them out into a file.","created_at":"2018-06-20T10:45:56Z","updated_at":"2018-06-20T10:45:56Z","html_url":"https://github.com/bbc/simorgh/pull/140#discussion_r196729391","pull_request_url":"https://api.github.com/repos/bbc/simorgh/pulls/140","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/comments/196729391"},"html":{"href":"https://github.com/bbc/simorgh/pull/140#discussion_r196729391"},"pull_request":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/bbc/simorgh/pulls/140","id":195831123,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1ODMxMTIz","html_url":"https://github.com/bbc/simorgh/pull/140","diff_url":"https://github.com/bbc/simorgh/pull/140.diff","patch_url":"https://github.com/bbc/simorgh/pull/140.patch","issue_url":"https://api.github.com/repos/bbc/simorgh/issues/140","number":140,"state":"open","locked":false,"title":"Image component","user":{"login":"sareh","id":3028997,"node_id":"MDQ6VXNlcjMwMjg5OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3028997?v=4","gravatar_id":"","url":"https://api.github.com/users/sareh","html_url":"https://github.com/sareh","followers_url":"https://api.github.com/users/sareh/followers","following_url":"https://api.github.com/users/sareh/following{/other_user}","gists_url":"https://api.github.com/users/sareh/gists{/gist_id}","starred_url":"https://api.github.com/users/sareh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareh/subscriptions","organizations_url":"https://api.github.com/users/sareh/orgs","repos_url":"https://api.github.com/users/sareh/repos","events_url":"https://api.github.com/users/sareh/events{/privacy}","received_events_url":"https://api.github.com/users/sareh/received_events","type":"User","site_admin":false},"body":"Adds Image component\r\n\r\nPaired with @PaulChinkwende throughout this PR. \r\n\r\n* [x] Fixes https://github.com/bbc/simorgh/issues/127\r\n* [ ] Up-to-date with latest - `git pull --rebase origin latest`\r\n* [x] Runs locally - `npm run dev` & [http://localhost:7080/](http://localhost:7080/)\r\n* [x] Tests added for new features\r\n* [x] Tests pass - `npm test`\r\n* [ ] E2E tests pass - `npm run test:e2e` (requires server running see [README](https://github.com/bbc/simorgh#tests) for details)\r\n\r\n* [ ] Test engineer approval\r\n","created_at":"2018-06-19T13:39:17Z","updated_at":"2018-06-20T10:45:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec753a26feb63d087410d93f85a23112823107d2","assignee":{"login":"sareh","id":3028997,"node_id":"MDQ6VXNlcjMwMjg5OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3028997?v=4","gravatar_id":"","url":"https://api.github.com/users/sareh","html_url":"https://github.com/sareh","followers_url":"https://api.github.com/users/sareh/followers","following_url":"https://api.github.com/users/sareh/following{/other_user}","gists_url":"https://api.github.com/users/sareh/gists{/gist_id}","starred_url":"https://api.github.com/users/sareh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareh/subscriptions","organizations_url":"https://api.github.com/users/sareh/orgs","repos_url":"https://api.github.com/users/sareh/repos","events_url":"https://api.github.com/users/sareh/events{/privacy}","received_events_url":"https://api.github.com/users/sareh/received_events","type":"User","site_admin":false},"assignees":[{"login":"sareh","id":3028997,"node_id":"MDQ6VXNlcjMwMjg5OTc=","avatar_url":"https://avatars2.githubusercontent.com/u/3028997?v=4","gravatar_id":"","url":"https://api.github.com/users/sareh","html_url":"https://github.com/sareh","followers_url":"https://api.github.com/users/sareh/followers","following_url":"https://api.github.com/users/sareh/following{/other_user}","gists_url":"https://api.github.com/users/sareh/gists{/gist_id}","starred_url":"https://api.github.com/users/sareh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sareh/subscriptions","organizations_url":"https://api.github.com/users/sareh/orgs","repos_url":"https://api.github.com/users/sareh/repos","events_url":"https://api.github.com/users/sareh/events{/privacy}","received_events_url":"https://api.github.com/users/sareh/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bbc/simorgh/pulls/140/commits","review_comments_url":"https://api.github.com/repos/bbc/simorgh/pulls/140/comments","review_comment_url":"https://api.github.com/repos/bbc/simorgh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bbc/simorgh/issues/140/comments","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/4c94c35deefbd39d574ca7a9b8e4af1bf867b69a","head":{"label":"bbc:initial-image-component","ref":"initial-image-component","sha":"4c94c35deefbd39d574ca7a9b8e4af1bf867b69a","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":133968906,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5Njg5MDY=","name":"simorgh","full_name":"bbc/simorgh","owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/simorgh","description":"The BBC's new article (soon... we hope)","fork":false,"url":"https://api.github.com/repos/bbc/simorgh","forks_url":"https://api.github.com/repos/bbc/simorgh/forks","keys_url":"https://api.github.com/repos/bbc/simorgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/simorgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/simorgh/teams","hooks_url":"https://api.github.com/repos/bbc/simorgh/hooks","issue_events_url":"https://api.github.com/repos/bbc/simorgh/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/simorgh/events","assignees_url":"https://api.github.com/repos/bbc/simorgh/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/simorgh/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/simorgh/tags","blobs_url":"https://api.github.com/repos/bbc/simorgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/simorgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/simorgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/simorgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/simorgh/languages","stargazers_url":"https://api.github.com/repos/bbc/simorgh/stargazers","contributors_url":"https://api.github.com/repos/bbc/simorgh/contributors","subscribers_url":"https://api.github.com/repos/bbc/simorgh/subscribers","subscription_url":"https://api.github.com/repos/bbc/simorgh/subscription","commits_url":"https://api.github.com/repos/bbc/simorgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/simorgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/simorgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/simorgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/simorgh/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/simorgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/simorgh/merges","archive_url":"https://api.github.com/repos/bbc/simorgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/simorgh/downloads","issues_url":"https://api.github.com/repos/bbc/simorgh/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/simorgh/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/simorgh/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/simorgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/simorgh/labels{/name}","releases_url":"https://api.github.com/repos/bbc/simorgh/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/simorgh/deployments","created_at":"2018-05-18T14:59:42Z","updated_at":"2018-06-19T15:37:07Z","pushed_at":"2018-06-20T10:39:42Z","git_url":"git://github.com/bbc/simorgh.git","ssh_url":"git@github.com:bbc/simorgh.git","clone_url":"https://github.com/bbc/simorgh.git","svn_url":"https://github.com/bbc/simorgh","homepage":"https://www.bbc.com","size":1729,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":29,"watchers":4,"default_branch":"latest"}},"base":{"label":"bbc:latest","ref":"latest","sha":"e28041da37909c7cde109aa060fc65e819b42235","user":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"repo":{"id":133968906,"node_id":"MDEwOlJlcG9zaXRvcnkxMzM5Njg5MDY=","name":"simorgh","full_name":"bbc/simorgh","owner":{"login":"bbc","id":828722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgyODcyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/828722?v=4","gravatar_id":"","url":"https://api.github.com/users/bbc","html_url":"https://github.com/bbc","followers_url":"https://api.github.com/users/bbc/followers","following_url":"https://api.github.com/users/bbc/following{/other_user}","gists_url":"https://api.github.com/users/bbc/gists{/gist_id}","starred_url":"https://api.github.com/users/bbc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbc/subscriptions","organizations_url":"https://api.github.com/users/bbc/orgs","repos_url":"https://api.github.com/users/bbc/repos","events_url":"https://api.github.com/users/bbc/events{/privacy}","received_events_url":"https://api.github.com/users/bbc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bbc/simorgh","description":"The BBC's new article (soon... we hope)","fork":false,"url":"https://api.github.com/repos/bbc/simorgh","forks_url":"https://api.github.com/repos/bbc/simorgh/forks","keys_url":"https://api.github.com/repos/bbc/simorgh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bbc/simorgh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bbc/simorgh/teams","hooks_url":"https://api.github.com/repos/bbc/simorgh/hooks","issue_events_url":"https://api.github.com/repos/bbc/simorgh/issues/events{/number}","events_url":"https://api.github.com/repos/bbc/simorgh/events","assignees_url":"https://api.github.com/repos/bbc/simorgh/assignees{/user}","branches_url":"https://api.github.com/repos/bbc/simorgh/branches{/branch}","tags_url":"https://api.github.com/repos/bbc/simorgh/tags","blobs_url":"https://api.github.com/repos/bbc/simorgh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bbc/simorgh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bbc/simorgh/git/refs{/sha}","trees_url":"https://api.github.com/repos/bbc/simorgh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bbc/simorgh/statuses/{sha}","languages_url":"https://api.github.com/repos/bbc/simorgh/languages","stargazers_url":"https://api.github.com/repos/bbc/simorgh/stargazers","contributors_url":"https://api.github.com/repos/bbc/simorgh/contributors","subscribers_url":"https://api.github.com/repos/bbc/simorgh/subscribers","subscription_url":"https://api.github.com/repos/bbc/simorgh/subscription","commits_url":"https://api.github.com/repos/bbc/simorgh/commits{/sha}","git_commits_url":"https://api.github.com/repos/bbc/simorgh/git/commits{/sha}","comments_url":"https://api.github.com/repos/bbc/simorgh/comments{/number}","issue_comment_url":"https://api.github.com/repos/bbc/simorgh/issues/comments{/number}","contents_url":"https://api.github.com/repos/bbc/simorgh/contents/{+path}","compare_url":"https://api.github.com/repos/bbc/simorgh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bbc/simorgh/merges","archive_url":"https://api.github.com/repos/bbc/simorgh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bbc/simorgh/downloads","issues_url":"https://api.github.com/repos/bbc/simorgh/issues{/number}","pulls_url":"https://api.github.com/repos/bbc/simorgh/pulls{/number}","milestones_url":"https://api.github.com/repos/bbc/simorgh/milestones{/number}","notifications_url":"https://api.github.com/repos/bbc/simorgh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bbc/simorgh/labels{/name}","releases_url":"https://api.github.com/repos/bbc/simorgh/releases{/id}","deployments_url":"https://api.github.com/repos/bbc/simorgh/deployments","created_at":"2018-05-18T14:59:42Z","updated_at":"2018-06-19T15:37:07Z","pushed_at":"2018-06-20T10:39:42Z","git_url":"git://github.com/bbc/simorgh.git","ssh_url":"git@github.com:bbc/simorgh.git","clone_url":"https://github.com/bbc/simorgh.git","svn_url":"https://github.com/bbc/simorgh","homepage":"https://www.bbc.com","size":1729,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":29,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":6,"open_issues":29,"watchers":4,"default_branch":"latest"}},"_links":{"self":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/140"},"html":{"href":"https://github.com/bbc/simorgh/pull/140"},"issue":{"href":"https://api.github.com/repos/bbc/simorgh/issues/140"},"comments":{"href":"https://api.github.com/repos/bbc/simorgh/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bbc/simorgh/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/bbc/simorgh/statuses/4c94c35deefbd39d574ca7a9b8e4af1bf867b69a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"PaulChinkwende"}}