{"action":"created","comment":{"url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/comments/196038624","pull_request_review_id":129514705,"id":196038624,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjAzODYyNA==","diff_hunk":"@@ -0,0 +1,225 @@\n+// @flow\n+\n+import React, { PureComponent } from 'react'\n+\n+import Box from 'components/base/Box'\n+import { delay } from 'helpers/promise'\n+\n+import {\n+  DeviceInteractionStepContainer,\n+  SpinnerContainer,\n+  IconContainer,\n+  SuccessContainer,\n+  ErrorDescContainer,\n+  ErrorContainer,\n+} from './components'\n+\n+export type Step = {\n+  id: string,\n+  title: string | (any => string),","path":"src/components/DeviceInteraction/DeviceInteractionStep.js","position":19,"original_position":19,"commit_id":"4146f9151da6b634a698d96f6c57d6b7cdf68e05","original_commit_id":"bfa84bf7c3277e51a4f0c39fc7ee396bf3c3adf3","user":{"login":"gre","id":211411,"node_id":"MDQ6VXNlcjIxMTQxMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/211411?v=4","gravatar_id":"","url":"https://api.github.com/users/gre","html_url":"https://github.com/gre","followers_url":"https://api.github.com/users/gre/followers","following_url":"https://api.github.com/users/gre/following{/other_user}","gists_url":"https://api.github.com/users/gre/gists{/gist_id}","starred_url":"https://api.github.com/users/gre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gre/subscriptions","organizations_url":"https://api.github.com/users/gre/orgs","repos_url":"https://api.github.com/users/gre/repos","events_url":"https://api.github.com/users/gre/events{/privacy}","received_events_url":"https://api.github.com/users/gre/received_events","type":"User","site_admin":false},"body":"what is `any` ?","created_at":"2018-06-18T11:02:50Z","updated_at":"2018-06-18T11:19:07Z","html_url":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597#discussion_r196038624","pull_request_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/comments/196038624"},"html":{"href":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597#discussion_r196038624"},"pull_request":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597"}}},"pull_request":{"url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597","id":195489096,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NDg5MDk2","html_url":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597","diff_url":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597.diff","patch_url":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597.patch","issue_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/597","number":597,"state":"open","locked":false,"title":"Feature: Device interaction","user":{"login":"meriadec","id":315259,"node_id":"MDQ6VXNlcjMxNTI1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/315259?v=4","gravatar_id":"","url":"https://api.github.com/users/meriadec","html_url":"https://github.com/meriadec","followers_url":"https://api.github.com/users/meriadec/followers","following_url":"https://api.github.com/users/meriadec/following{/other_user}","gists_url":"https://api.github.com/users/meriadec/gists{/gist_id}","starred_url":"https://api.github.com/users/meriadec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriadec/subscriptions","organizations_url":"https://api.github.com/users/meriadec/orgs","repos_url":"https://api.github.com/users/meriadec/repos","events_url":"https://api.github.com/users/meriadec/events{/privacy}","received_events_url":"https://api.github.com/users/meriadec/received_events","type":"User","site_admin":false},"body":"More scalable way to handle simple step-by-step interaction with the device (or other async stuff that needs to be done sequentially).\r\n\r\nEach step can either provide a function that returns a promise, or a custom rendered component. \r\nAll data falls in cascade to the next steps.\r\n\r\n![interaction](https://user-images.githubusercontent.com/315259/41532488-763458a8-72f7-11e8-997c-3f6fbb9b8ea1.gif)\r\n","created_at":"2018-06-18T11:00:30Z","updated_at":"2018-06-18T11:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08c5b0d28868e22a7c975ac4e1d09b1c08e74d27","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597/commits","review_comments_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597/comments","review_comment_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/597/comments","statuses_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/statuses/4146f9151da6b634a698d96f6c57d6b7cdf68e05","head":{"label":"meriadec:feature/device-interaction","ref":"feature/device-interaction","sha":"4146f9151da6b634a698d96f6c57d6b7cdf68e05","user":{"login":"meriadec","id":315259,"node_id":"MDQ6VXNlcjMxNTI1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/315259?v=4","gravatar_id":"","url":"https://api.github.com/users/meriadec","html_url":"https://github.com/meriadec","followers_url":"https://api.github.com/users/meriadec/followers","following_url":"https://api.github.com/users/meriadec/following{/other_user}","gists_url":"https://api.github.com/users/meriadec/gists{/gist_id}","starred_url":"https://api.github.com/users/meriadec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriadec/subscriptions","organizations_url":"https://api.github.com/users/meriadec/orgs","repos_url":"https://api.github.com/users/meriadec/repos","events_url":"https://api.github.com/users/meriadec/events{/privacy}","received_events_url":"https://api.github.com/users/meriadec/received_events","type":"User","site_admin":false},"repo":{"id":116961519,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY5NjE1MTk=","name":"ledger-live-desktop","full_name":"meriadec/ledger-live-desktop","owner":{"login":"meriadec","id":315259,"node_id":"MDQ6VXNlcjMxNTI1OQ==","avatar_url":"https://avatars0.githubusercontent.com/u/315259?v=4","gravatar_id":"","url":"https://api.github.com/users/meriadec","html_url":"https://github.com/meriadec","followers_url":"https://api.github.com/users/meriadec/followers","following_url":"https://api.github.com/users/meriadec/following{/other_user}","gists_url":"https://api.github.com/users/meriadec/gists{/gist_id}","starred_url":"https://api.github.com/users/meriadec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriadec/subscriptions","organizations_url":"https://api.github.com/users/meriadec/orgs","repos_url":"https://api.github.com/users/meriadec/repos","events_url":"https://api.github.com/users/meriadec/events{/privacy}","received_events_url":"https://api.github.com/users/meriadec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meriadec/ledger-live-desktop","description":null,"fork":true,"url":"https://api.github.com/repos/meriadec/ledger-live-desktop","forks_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/forks","keys_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/teams","hooks_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/hooks","issue_events_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/events","assignees_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/tags","blobs_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/languages","stargazers_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/stargazers","contributors_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/contributors","subscribers_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/subscribers","subscription_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/subscription","commits_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/merges","archive_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/downloads","issues_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/labels{/name}","releases_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/meriadec/ledger-live-desktop/deployments","created_at":"2018-01-10T13:30:26Z","updated_at":"2018-06-18T11:17:10Z","pushed_at":"2018-06-18T11:17:08Z","git_url":"git://github.com/meriadec/ledger-live-desktop.git","ssh_url":"git@github.com:meriadec/ledger-live-desktop.git","clone_url":"https://github.com/meriadec/ledger-live-desktop.git","svn_url":"https://github.com/meriadec/ledger-live-desktop","homepage":null,"size":7496,"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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LedgerHQ:develop","ref":"develop","sha":"142d9d9c34034fdb6d76679405c09fb6a0160fe8","user":{"login":"LedgerHQ","id":9784193,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk3ODQxOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":82679495,"node_id":"MDEwOlJlcG9zaXRvcnk4MjY3OTQ5NQ==","name":"ledger-live-desktop","full_name":"LedgerHQ/ledger-live-desktop","owner":{"login":"LedgerHQ","id":9784193,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk3ODQxOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/9784193?v=4","gravatar_id":"","url":"https://api.github.com/users/LedgerHQ","html_url":"https://github.com/LedgerHQ","followers_url":"https://api.github.com/users/LedgerHQ/followers","following_url":"https://api.github.com/users/LedgerHQ/following{/other_user}","gists_url":"https://api.github.com/users/LedgerHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/LedgerHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LedgerHQ/subscriptions","organizations_url":"https://api.github.com/users/LedgerHQ/orgs","repos_url":"https://api.github.com/users/LedgerHQ/repos","events_url":"https://api.github.com/users/LedgerHQ/events{/privacy}","received_events_url":"https://api.github.com/users/LedgerHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LedgerHQ/ledger-live-desktop","description":"Ledger Live (Desktop)","fork":false,"url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop","forks_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/forks","keys_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/teams","hooks_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/hooks","issue_events_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/events{/number}","events_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/events","assignees_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/assignees{/user}","branches_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/branches{/branch}","tags_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/tags","blobs_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/git/refs{/sha}","trees_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/statuses/{sha}","languages_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/languages","stargazers_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/stargazers","contributors_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/contributors","subscribers_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/subscribers","subscription_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/subscription","commits_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/commits{/sha}","git_commits_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/git/commits{/sha}","comments_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/comments{/number}","issue_comment_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/comments{/number}","contents_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/contents/{+path}","compare_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/merges","archive_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/downloads","issues_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues{/number}","pulls_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls{/number}","milestones_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/milestones{/number}","notifications_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/labels{/name}","releases_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/releases{/id}","deployments_url":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/deployments","created_at":"2017-02-21T12:52:13Z","updated_at":"2018-06-18T10:48:32Z","pushed_at":"2018-06-18T11:05:33Z","git_url":"git://github.com/LedgerHQ/ledger-live-desktop.git","ssh_url":"git@github.com:LedgerHQ/ledger-live-desktop.git","clone_url":"https://github.com/LedgerHQ/ledger-live-desktop.git","svn_url":"https://github.com/LedgerHQ/ledger-live-desktop","homepage":"https://ledgerhq.github.io/ledger-live-desktop/","size":8987,"stargazers_count":47,"watchers_count":47,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":20,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":20,"open_issues":1,"watchers":47,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597"},"html":{"href":"https://github.com/LedgerHQ/ledger-live-desktop/pull/597"},"issue":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/597"},"comments":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/issues/597/comments"},"review_comments":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597/comments"},"review_comment":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/pulls/597/commits"},"statuses":{"href":"https://api.github.com/repos/LedgerHQ/ledger-live-desktop/statuses/4146f9151da6b634a698d96f6c57d6b7cdf68e05"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"gre"}}