{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13","id":176802637,"html_url":"https://github.com/PublicInMotionGmbH/ui-kit/pull/13","diff_url":"https://github.com/PublicInMotionGmbH/ui-kit/pull/13.diff","patch_url":"https://github.com/PublicInMotionGmbH/ui-kit/pull/13.patch","issue_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/13","number":13,"state":"closed","locked":false,"title":"Add possibility to create controlled stories with good source code shown","user":{"login":"rangoo94","id":3843526,"avatar_url":"https://avatars1.githubusercontent.com/u/3843526?v=4","gravatar_id":"","url":"https://api.github.com/users/rangoo94","html_url":"https://github.com/rangoo94","followers_url":"https://api.github.com/users/rangoo94/followers","following_url":"https://api.github.com/users/rangoo94/following{/other_user}","gists_url":"https://api.github.com/users/rangoo94/gists{/gist_id}","starred_url":"https://api.github.com/users/rangoo94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangoo94/subscriptions","organizations_url":"https://api.github.com/users/rangoo94/orgs","repos_url":"https://api.github.com/users/rangoo94/repos","events_url":"https://api.github.com/users/rangoo94/events{/privacy}","received_events_url":"https://api.github.com/users/rangoo94/received_events","type":"User","site_admin":false},"body":"As @maciek15 have shown and proven, there may be a problem with showing source code of components when we need to control them. Right now it ends up with creating wrapping stateful component which manages stuff inside. In source code section in Storybook it's visible as `<App />` without anything from `render()` method.\r\n\r\nThis Pull Request is implementing another, almost transparent, a method of creating such controlled components, with a simple syntax - you can see an example in README file.","created_at":"2018-03-22T14:47:45Z","updated_at":"2018-03-23T13:21:45Z","closed_at":"2018-03-23T13:21:45Z","merged_at":"2018-03-23T13:21:45Z","merge_commit_sha":"d26febfcf7cfbef230ee8f47ae4f719b56533a62","assignee":null,"assignees":[],"requested_reviewers":[{"login":"PiotrGrzechnik","id":22556303,"avatar_url":"https://avatars3.githubusercontent.com/u/22556303?v=4","gravatar_id":"","url":"https://api.github.com/users/PiotrGrzechnik","html_url":"https://github.com/PiotrGrzechnik","followers_url":"https://api.github.com/users/PiotrGrzechnik/followers","following_url":"https://api.github.com/users/PiotrGrzechnik/following{/other_user}","gists_url":"https://api.github.com/users/PiotrGrzechnik/gists{/gist_id}","starred_url":"https://api.github.com/users/PiotrGrzechnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PiotrGrzechnik/subscriptions","organizations_url":"https://api.github.com/users/PiotrGrzechnik/orgs","repos_url":"https://api.github.com/users/PiotrGrzechnik/repos","events_url":"https://api.github.com/users/PiotrGrzechnik/events{/privacy}","received_events_url":"https://api.github.com/users/PiotrGrzechnik/received_events","type":"User","site_admin":false},{"login":"stuniel","id":26305751,"avatar_url":"https://avatars2.githubusercontent.com/u/26305751?v=4","gravatar_id":"","url":"https://api.github.com/users/stuniel","html_url":"https://github.com/stuniel","followers_url":"https://api.github.com/users/stuniel/followers","following_url":"https://api.github.com/users/stuniel/following{/other_user}","gists_url":"https://api.github.com/users/stuniel/gists{/gist_id}","starred_url":"https://api.github.com/users/stuniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuniel/subscriptions","organizations_url":"https://api.github.com/users/stuniel/orgs","repos_url":"https://api.github.com/users/stuniel/repos","events_url":"https://api.github.com/users/stuniel/events{/privacy}","received_events_url":"https://api.github.com/users/stuniel/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13/commits","review_comments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13/comments","review_comment_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/13/comments","statuses_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/statuses/9353dd41233e9284c0c767af693f1da5152f8ea8","head":{"label":"PublicInMotionGmbH:feature/UI-1-add-possibility-to-create-controlled-stories","ref":"feature/UI-1-add-possibility-to-create-controlled-stories","sha":"9353dd41233e9284c0c767af693f1da5152f8ea8","user":{"login":"PublicInMotionGmbH","id":4619391,"avatar_url":"https://avatars3.githubusercontent.com/u/4619391?v=4","gravatar_id":"","url":"https://api.github.com/users/PublicInMotionGmbH","html_url":"https://github.com/PublicInMotionGmbH","followers_url":"https://api.github.com/users/PublicInMotionGmbH/followers","following_url":"https://api.github.com/users/PublicInMotionGmbH/following{/other_user}","gists_url":"https://api.github.com/users/PublicInMotionGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicInMotionGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicInMotionGmbH/subscriptions","organizations_url":"https://api.github.com/users/PublicInMotionGmbH/orgs","repos_url":"https://api.github.com/users/PublicInMotionGmbH/repos","events_url":"https://api.github.com/users/PublicInMotionGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/PublicInMotionGmbH/received_events","type":"Organization","site_admin":false},"repo":{"id":125338188,"name":"ui-kit","full_name":"PublicInMotionGmbH/ui-kit","owner":{"login":"PublicInMotionGmbH","id":4619391,"avatar_url":"https://avatars3.githubusercontent.com/u/4619391?v=4","gravatar_id":"","url":"https://api.github.com/users/PublicInMotionGmbH","html_url":"https://github.com/PublicInMotionGmbH","followers_url":"https://api.github.com/users/PublicInMotionGmbH/followers","following_url":"https://api.github.com/users/PublicInMotionGmbH/following{/other_user}","gists_url":"https://api.github.com/users/PublicInMotionGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicInMotionGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicInMotionGmbH/subscriptions","organizations_url":"https://api.github.com/users/PublicInMotionGmbH/orgs","repos_url":"https://api.github.com/users/PublicInMotionGmbH/repos","events_url":"https://api.github.com/users/PublicInMotionGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/PublicInMotionGmbH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PublicInMotionGmbH/ui-kit","description":null,"fork":false,"url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit","forks_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/forks","keys_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/teams","hooks_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/hooks","issue_events_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/events{/number}","events_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/events","assignees_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/assignees{/user}","branches_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/branches{/branch}","tags_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/tags","blobs_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/languages","stargazers_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/stargazers","contributors_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/contributors","subscribers_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/subscribers","subscription_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/subscription","commits_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/contents/{+path}","compare_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/merges","archive_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/downloads","issues_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues{/number}","pulls_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/labels{/name}","releases_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/releases{/id}","deployments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/deployments","created_at":"2018-03-15T08:49:56Z","updated_at":"2018-03-23T13:15:16Z","pushed_at":"2018-03-23T13:21:45Z","git_url":"git://github.com/PublicInMotionGmbH/ui-kit.git","ssh_url":"git@github.com:PublicInMotionGmbH/ui-kit.git","clone_url":"https://github.com/PublicInMotionGmbH/ui-kit.git","svn_url":"https://github.com/PublicInMotionGmbH/ui-kit","homepage":null,"size":1159,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"base":{"label":"PublicInMotionGmbH:master","ref":"master","sha":"459868bf4f9913203c9d594737e8e0462a750616","user":{"login":"PublicInMotionGmbH","id":4619391,"avatar_url":"https://avatars3.githubusercontent.com/u/4619391?v=4","gravatar_id":"","url":"https://api.github.com/users/PublicInMotionGmbH","html_url":"https://github.com/PublicInMotionGmbH","followers_url":"https://api.github.com/users/PublicInMotionGmbH/followers","following_url":"https://api.github.com/users/PublicInMotionGmbH/following{/other_user}","gists_url":"https://api.github.com/users/PublicInMotionGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicInMotionGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicInMotionGmbH/subscriptions","organizations_url":"https://api.github.com/users/PublicInMotionGmbH/orgs","repos_url":"https://api.github.com/users/PublicInMotionGmbH/repos","events_url":"https://api.github.com/users/PublicInMotionGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/PublicInMotionGmbH/received_events","type":"Organization","site_admin":false},"repo":{"id":125338188,"name":"ui-kit","full_name":"PublicInMotionGmbH/ui-kit","owner":{"login":"PublicInMotionGmbH","id":4619391,"avatar_url":"https://avatars3.githubusercontent.com/u/4619391?v=4","gravatar_id":"","url":"https://api.github.com/users/PublicInMotionGmbH","html_url":"https://github.com/PublicInMotionGmbH","followers_url":"https://api.github.com/users/PublicInMotionGmbH/followers","following_url":"https://api.github.com/users/PublicInMotionGmbH/following{/other_user}","gists_url":"https://api.github.com/users/PublicInMotionGmbH/gists{/gist_id}","starred_url":"https://api.github.com/users/PublicInMotionGmbH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PublicInMotionGmbH/subscriptions","organizations_url":"https://api.github.com/users/PublicInMotionGmbH/orgs","repos_url":"https://api.github.com/users/PublicInMotionGmbH/repos","events_url":"https://api.github.com/users/PublicInMotionGmbH/events{/privacy}","received_events_url":"https://api.github.com/users/PublicInMotionGmbH/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PublicInMotionGmbH/ui-kit","description":null,"fork":false,"url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit","forks_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/forks","keys_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/teams","hooks_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/hooks","issue_events_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/events{/number}","events_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/events","assignees_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/assignees{/user}","branches_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/branches{/branch}","tags_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/tags","blobs_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/languages","stargazers_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/stargazers","contributors_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/contributors","subscribers_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/subscribers","subscription_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/subscription","commits_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/contents/{+path}","compare_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/merges","archive_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/downloads","issues_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues{/number}","pulls_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/labels{/name}","releases_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/releases{/id}","deployments_url":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/deployments","created_at":"2018-03-15T08:49:56Z","updated_at":"2018-03-23T13:15:16Z","pushed_at":"2018-03-23T13:21:45Z","git_url":"git://github.com/PublicInMotionGmbH/ui-kit.git","ssh_url":"git@github.com:PublicInMotionGmbH/ui-kit.git","clone_url":"https://github.com/PublicInMotionGmbH/ui-kit.git","svn_url":"https://github.com/PublicInMotionGmbH/ui-kit","homepage":null,"size":1159,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13"},"html":{"href":"https://github.com/PublicInMotionGmbH/ui-kit/pull/13"},"issue":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/13"},"comments":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/PublicInMotionGmbH/ui-kit/statuses/9353dd41233e9284c0c767af693f1da5152f8ea8"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"rangoo94","id":3843526,"avatar_url":"https://avatars1.githubusercontent.com/u/3843526?v=4","gravatar_id":"","url":"https://api.github.com/users/rangoo94","html_url":"https://github.com/rangoo94","followers_url":"https://api.github.com/users/rangoo94/followers","following_url":"https://api.github.com/users/rangoo94/following{/other_user}","gists_url":"https://api.github.com/users/rangoo94/gists{/gist_id}","starred_url":"https://api.github.com/users/rangoo94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangoo94/subscriptions","organizations_url":"https://api.github.com/users/rangoo94/orgs","repos_url":"https://api.github.com/users/rangoo94/repos","events_url":"https://api.github.com/users/rangoo94/events{/privacy}","received_events_url":"https://api.github.com/users/rangoo94/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"maintainer_can_modify":false,"commits":6,"additions":177,"deletions":4,"changed_files":3}}
{"actor":{"display_login":"rangoo94"}}