{"action":"created","comment":{"url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/comments/189616537","pull_request_review_id":121825689,"id":189616537,"diff_hunk":"@@ -0,0 +1,23 @@\n+/**\n+ * Returns the touchable component wrapped by a Row\n+ */\n+import * as React from \"react\";\n+import { Row } from \"react-native-easy-grid\";\n+import { hasTouchable, TopContent } from \"./types\";\n+\n+type Props = Readonly<{\n+  content: TopContent;\n+}>;\n+\n+export const TOUCHABLE_SIZE = 2;\n+\n+export class Touchable extends React.Component<Props> {\n+  public render(): React.ReactNode {\n+    if (hasTouchable(this.props.content)) {","path":"ts/components/wallet/layout/Touchable.tsx","position":16,"original_position":16,"commit_id":"a73de1bde40977bc09327f506e91b61bc1d2d87a","original_commit_id":"a73de1bde40977bc09327f506e91b61bc1d2d87a","user":{"login":"cloudify","id":48206,"avatar_url":"https://avatars2.githubusercontent.com/u/48206?v=4","gravatar_id":"","url":"https://api.github.com/users/cloudify","html_url":"https://github.com/cloudify","followers_url":"https://api.github.com/users/cloudify/followers","following_url":"https://api.github.com/users/cloudify/following{/other_user}","gists_url":"https://api.github.com/users/cloudify/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudify/subscriptions","organizations_url":"https://api.github.com/users/cloudify/orgs","repos_url":"https://api.github.com/users/cloudify/repos","events_url":"https://api.github.com/users/cloudify/events{/privacy}","received_events_url":"https://api.github.com/users/cloudify/received_events","type":"User","site_admin":false},"body":"this logic should be implemented in the caller `(content ? <Touchable /> : null)`","created_at":"2018-05-21T15:01:10Z","updated_at":"2018-05-21T15:13:09Z","html_url":"https://github.com/teamdigitale/italia-app/pull/146#discussion_r189616537","pull_request_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/comments/189616537"},"html":{"href":"https://github.com/teamdigitale/italia-app/pull/146#discussion_r189616537"},"pull_request":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146"}}},"pull_request":{"url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146","id":188695713,"html_url":"https://github.com/teamdigitale/italia-app/pull/146","diff_url":"https://github.com/teamdigitale/italia-app/pull/146.diff","patch_url":"https://github.com/teamdigitale/italia-app/pull/146.patch","issue_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/146","number":146,"state":"open","locked":false,"title":"[#156913168,#156913682] wallet landing page","user":{"login":"fgiobergia","id":107715,"avatar_url":"https://avatars3.githubusercontent.com/u/107715?v=4","gravatar_id":"","url":"https://api.github.com/users/fgiobergia","html_url":"https://github.com/fgiobergia","followers_url":"https://api.github.com/users/fgiobergia/followers","following_url":"https://api.github.com/users/fgiobergia/following{/other_user}","gists_url":"https://api.github.com/users/fgiobergia/gists{/gist_id}","starred_url":"https://api.github.com/users/fgiobergia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgiobergia/subscriptions","organizations_url":"https://api.github.com/users/fgiobergia/orgs","repos_url":"https://api.github.com/users/fgiobergia/repos","events_url":"https://api.github.com/users/fgiobergia/events{/privacy}","received_events_url":"https://api.github.com/users/fgiobergia/received_events","type":"User","site_admin":false},"body":"The following stories are covered by this PR:\r\n\r\n- #156913168: Wallet landing page, with a list of latest transactions, \"add new payment method\" option & list of payment methods (credit cards) available\r\n- #156913682: Wallet landing page when no payment methods are available\r\n\r\nNotes:\r\n- this is the first PR in a series of PR coming out of PR #117: some parts (e.g. assets) that are not yet used by this version have been added anyway\r\n- following the first point, some components (specifically, PayLayout) support features that will be used later on (i.e. by other PRs); this makes this PR slightly larger than strictly necessary\r\n- the Credit Card component will be updated as part of #157422715 (update app to use CreditCardComponent), with a grid-based layout & with the adoption of the component throughout the app (as of now, some screens are using images instead)\r\n\r\nFeedback appreciated :)\r\n","created_at":"2018-05-17T10:45:59Z","updated_at":"2018-05-21T15:13:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fc991b4119c17308e33b2c3ee7b280fa822620c8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"fpersico","id":30595520,"avatar_url":"https://avatars3.githubusercontent.com/u/30595520?v=4","gravatar_id":"","url":"https://api.github.com/users/fpersico","html_url":"https://github.com/fpersico","followers_url":"https://api.github.com/users/fpersico/followers","following_url":"https://api.github.com/users/fpersico/following{/other_user}","gists_url":"https://api.github.com/users/fpersico/gists{/gist_id}","starred_url":"https://api.github.com/users/fpersico/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fpersico/subscriptions","organizations_url":"https://api.github.com/users/fpersico/orgs","repos_url":"https://api.github.com/users/fpersico/repos","events_url":"https://api.github.com/users/fpersico/events{/privacy}","received_events_url":"https://api.github.com/users/fpersico/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146/commits","review_comments_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146/comments","review_comment_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/146/comments","statuses_url":"https://api.github.com/repos/teamdigitale/italia-app/statuses/a73de1bde40977bc09327f506e91b61bc1d2d87a","head":{"label":"teamdigitale:156913168-wallet-landing-page","ref":"156913168-wallet-landing-page","sha":"a73de1bde40977bc09327f506e91b61bc1d2d87a","user":{"login":"teamdigitale","id":25081492,"avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"repo":{"id":87916228,"name":"italia-app","full_name":"teamdigitale/italia-app","owner":{"login":"teamdigitale","id":25081492,"avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamdigitale/italia-app","description":"App della Cittadinanza Digitale (mobile)","fork":false,"url":"https://api.github.com/repos/teamdigitale/italia-app","forks_url":"https://api.github.com/repos/teamdigitale/italia-app/forks","keys_url":"https://api.github.com/repos/teamdigitale/italia-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdigitale/italia-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdigitale/italia-app/teams","hooks_url":"https://api.github.com/repos/teamdigitale/italia-app/hooks","issue_events_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/events{/number}","events_url":"https://api.github.com/repos/teamdigitale/italia-app/events","assignees_url":"https://api.github.com/repos/teamdigitale/italia-app/assignees{/user}","branches_url":"https://api.github.com/repos/teamdigitale/italia-app/branches{/branch}","tags_url":"https://api.github.com/repos/teamdigitale/italia-app/tags","blobs_url":"https://api.github.com/repos/teamdigitale/italia-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdigitale/italia-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdigitale/italia-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdigitale/italia-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdigitale/italia-app/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdigitale/italia-app/languages","stargazers_url":"https://api.github.com/repos/teamdigitale/italia-app/stargazers","contributors_url":"https://api.github.com/repos/teamdigitale/italia-app/contributors","subscribers_url":"https://api.github.com/repos/teamdigitale/italia-app/subscribers","subscription_url":"https://api.github.com/repos/teamdigitale/italia-app/subscription","commits_url":"https://api.github.com/repos/teamdigitale/italia-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdigitale/italia-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdigitale/italia-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdigitale/italia-app/contents/{+path}","compare_url":"https://api.github.com/repos/teamdigitale/italia-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdigitale/italia-app/merges","archive_url":"https://api.github.com/repos/teamdigitale/italia-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdigitale/italia-app/downloads","issues_url":"https://api.github.com/repos/teamdigitale/italia-app/issues{/number}","pulls_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdigitale/italia-app/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdigitale/italia-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdigitale/italia-app/labels{/name}","releases_url":"https://api.github.com/repos/teamdigitale/italia-app/releases{/id}","deployments_url":"https://api.github.com/repos/teamdigitale/italia-app/deployments","created_at":"2017-04-11T09:34:46Z","updated_at":"2018-05-21T14:57:00Z","pushed_at":"2018-05-21T14:56:57Z","git_url":"git://github.com/teamdigitale/italia-app.git","ssh_url":"git@github.com:teamdigitale/italia-app.git","clone_url":"https://github.com/teamdigitale/italia-app.git","svn_url":"https://github.com/teamdigitale/italia-app","homepage":"","size":18218,"stargazers_count":9,"watchers_count":9,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":13,"watchers":9,"default_branch":"master"}},"base":{"label":"teamdigitale:master","ref":"master","sha":"49a6ee319c72b91729bbdebc6b217f0f88785611","user":{"login":"teamdigitale","id":25081492,"avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"repo":{"id":87916228,"name":"italia-app","full_name":"teamdigitale/italia-app","owner":{"login":"teamdigitale","id":25081492,"avatar_url":"https://avatars0.githubusercontent.com/u/25081492?v=4","gravatar_id":"","url":"https://api.github.com/users/teamdigitale","html_url":"https://github.com/teamdigitale","followers_url":"https://api.github.com/users/teamdigitale/followers","following_url":"https://api.github.com/users/teamdigitale/following{/other_user}","gists_url":"https://api.github.com/users/teamdigitale/gists{/gist_id}","starred_url":"https://api.github.com/users/teamdigitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamdigitale/subscriptions","organizations_url":"https://api.github.com/users/teamdigitale/orgs","repos_url":"https://api.github.com/users/teamdigitale/repos","events_url":"https://api.github.com/users/teamdigitale/events{/privacy}","received_events_url":"https://api.github.com/users/teamdigitale/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamdigitale/italia-app","description":"App della Cittadinanza Digitale (mobile)","fork":false,"url":"https://api.github.com/repos/teamdigitale/italia-app","forks_url":"https://api.github.com/repos/teamdigitale/italia-app/forks","keys_url":"https://api.github.com/repos/teamdigitale/italia-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamdigitale/italia-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamdigitale/italia-app/teams","hooks_url":"https://api.github.com/repos/teamdigitale/italia-app/hooks","issue_events_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/events{/number}","events_url":"https://api.github.com/repos/teamdigitale/italia-app/events","assignees_url":"https://api.github.com/repos/teamdigitale/italia-app/assignees{/user}","branches_url":"https://api.github.com/repos/teamdigitale/italia-app/branches{/branch}","tags_url":"https://api.github.com/repos/teamdigitale/italia-app/tags","blobs_url":"https://api.github.com/repos/teamdigitale/italia-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamdigitale/italia-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamdigitale/italia-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamdigitale/italia-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamdigitale/italia-app/statuses/{sha}","languages_url":"https://api.github.com/repos/teamdigitale/italia-app/languages","stargazers_url":"https://api.github.com/repos/teamdigitale/italia-app/stargazers","contributors_url":"https://api.github.com/repos/teamdigitale/italia-app/contributors","subscribers_url":"https://api.github.com/repos/teamdigitale/italia-app/subscribers","subscription_url":"https://api.github.com/repos/teamdigitale/italia-app/subscription","commits_url":"https://api.github.com/repos/teamdigitale/italia-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamdigitale/italia-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamdigitale/italia-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamdigitale/italia-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamdigitale/italia-app/contents/{+path}","compare_url":"https://api.github.com/repos/teamdigitale/italia-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamdigitale/italia-app/merges","archive_url":"https://api.github.com/repos/teamdigitale/italia-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamdigitale/italia-app/downloads","issues_url":"https://api.github.com/repos/teamdigitale/italia-app/issues{/number}","pulls_url":"https://api.github.com/repos/teamdigitale/italia-app/pulls{/number}","milestones_url":"https://api.github.com/repos/teamdigitale/italia-app/milestones{/number}","notifications_url":"https://api.github.com/repos/teamdigitale/italia-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamdigitale/italia-app/labels{/name}","releases_url":"https://api.github.com/repos/teamdigitale/italia-app/releases{/id}","deployments_url":"https://api.github.com/repos/teamdigitale/italia-app/deployments","created_at":"2017-04-11T09:34:46Z","updated_at":"2018-05-21T14:57:00Z","pushed_at":"2018-05-21T14:56:57Z","git_url":"git://github.com/teamdigitale/italia-app.git","ssh_url":"git@github.com:teamdigitale/italia-app.git","clone_url":"https://github.com/teamdigitale/italia-app.git","svn_url":"https://github.com/teamdigitale/italia-app","homepage":"","size":18218,"stargazers_count":9,"watchers_count":9,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":13,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146"},"html":{"href":"https://github.com/teamdigitale/italia-app/pull/146"},"issue":{"href":"https://api.github.com/repos/teamdigitale/italia-app/issues/146"},"comments":{"href":"https://api.github.com/repos/teamdigitale/italia-app/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamdigitale/italia-app/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/teamdigitale/italia-app/statuses/a73de1bde40977bc09327f506e91b61bc1d2d87a"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"cloudify"}}