{"action":"created","comment":{"url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments/215038142","pull_request_review_id":152213294,"id":215038142,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNTAzODE0Mg==","diff_hunk":"@@ -0,0 +1,17 @@\n+import React from 'react'\n+import { FormattedMessage, injectIntl } from 'react-intl'\n+import { Button } from 'vtex.styleguide'\n+\n+interface CustomProps {\n+  onClick: () => void\n+}\n+\n+type Props = CustomProps & ReactIntl.InjectedIntlProps\n+\n+const CreateButton = ({ onClick }: Props) => (\n+  <Button onClick={onClick} size=\"small\" variation=\"primary\">\n+    <FormattedMessage id=\"pages.admin.redirects.button.create\" />\n+  </Button>\n+)\n+\n+export default injectIntl(CreateButton)","path":"react/components/Admin/Redirects/RedirectList/CreateButton.tsx","position":17,"original_position":17,"commit_id":"7a74473664dfcc2be36088ce6963f2c9be5dc05f","original_commit_id":"7a74473664dfcc2be36088ce6963f2c9be5dc05f","user":{"login":"firstdoit","id":1633518,"node_id":"MDQ6VXNlcjE2MzM1MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1633518?v=4","gravatar_id":"","url":"https://api.github.com/users/firstdoit","html_url":"https://github.com/firstdoit","followers_url":"https://api.github.com/users/firstdoit/followers","following_url":"https://api.github.com/users/firstdoit/following{/other_user}","gists_url":"https://api.github.com/users/firstdoit/gists{/gist_id}","starred_url":"https://api.github.com/users/firstdoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firstdoit/subscriptions","organizations_url":"https://api.github.com/users/firstdoit/orgs","repos_url":"https://api.github.com/users/firstdoit/repos","events_url":"https://api.github.com/users/firstdoit/events{/privacy}","received_events_url":"https://api.github.com/users/firstdoit/received_events","type":"User","site_admin":false},"body":"No need for `injectIntl` if we can simply use `FormattedMessage`","created_at":"2018-09-04T19:26:07Z","updated_at":"2018-09-04T19:35:24Z","html_url":"https://github.com/vtex-apps/admin-pages/pull/84#discussion_r215038142","pull_request_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments/215038142"},"html":{"href":"https://github.com/vtex-apps/admin-pages/pull/84#discussion_r215038142"},"pull_request":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84","id":213063872,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzMDYzODcy","html_url":"https://github.com/vtex-apps/admin-pages/pull/84","diff_url":"https://github.com/vtex-apps/admin-pages/pull/84.diff","patch_url":"https://github.com/vtex-apps/admin-pages/pull/84.patch","issue_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/84","number":84,"state":"open","locked":false,"title":"Feature - Improve redirects","user":{"login":"alcar","id":8486092,"node_id":"MDQ6VXNlcjg0ODYwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8486092?v=4","gravatar_id":"","url":"https://api.github.com/users/alcar","html_url":"https://github.com/alcar","followers_url":"https://api.github.com/users/alcar/followers","following_url":"https://api.github.com/users/alcar/following{/other_user}","gists_url":"https://api.github.com/users/alcar/gists{/gist_id}","starred_url":"https://api.github.com/users/alcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcar/subscriptions","organizations_url":"https://api.github.com/users/alcar/orgs","repos_url":"https://api.github.com/users/alcar/repos","events_url":"https://api.github.com/users/alcar/events{/privacy}","received_events_url":"https://api.github.com/users/alcar/received_events","type":"User","site_admin":false},"body":"#### What is the purpose of this pull request?\r\n<!--- Describe your changes in detail. -->\r\n- Split redirects components into separate routes;\r\n- Add pagination to redirect list;\r\n- Add confirmation modal before deleting a redirect;\r\n- Add end date to redirect form and list;\r\n- Add status to redirect list;\r\n- Add sublink to redirect list to admin;\r\n- Make `Modal` more generic and move it to `components/`;\r\n- Bump Styleguide to 6.x;\r\n- Add i18n to loading text;\r\n- Reorganize, refactor and remove some code.\r\n\r\n#### What problem is this solving?\r\n<!--- What is the motivation and context for this change? -->\r\nThe redirects admin needed more features.\r\n\r\n#### How should this be manually tested?\r\nWorkspace: https://alan--lojadaju.myvtex.com/admin/cms/redirects/.\r\n\r\n#### Screenshots or example usage\r\n![image](https://user-images.githubusercontent.com/8486092/45049383-d4e02180-b054-11e8-97a8-e10690bd15f4.png)\r\n\r\n#### Types of changes\r\n- Bug fix (a non-breaking change which fixes an issue)\r\n- New feature (a non-breaking change which adds functionality)","created_at":"2018-09-04T18:25:01Z","updated_at":"2018-09-04T19:35:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83920c10b6f0de291d67b65560f9e7f67bcdecd9","assignee":{"login":"alcar","id":8486092,"node_id":"MDQ6VXNlcjg0ODYwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8486092?v=4","gravatar_id":"","url":"https://api.github.com/users/alcar","html_url":"https://github.com/alcar","followers_url":"https://api.github.com/users/alcar/followers","following_url":"https://api.github.com/users/alcar/following{/other_user}","gists_url":"https://api.github.com/users/alcar/gists{/gist_id}","starred_url":"https://api.github.com/users/alcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcar/subscriptions","organizations_url":"https://api.github.com/users/alcar/orgs","repos_url":"https://api.github.com/users/alcar/repos","events_url":"https://api.github.com/users/alcar/events{/privacy}","received_events_url":"https://api.github.com/users/alcar/received_events","type":"User","site_admin":false},"assignees":[{"login":"alcar","id":8486092,"node_id":"MDQ6VXNlcjg0ODYwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8486092?v=4","gravatar_id":"","url":"https://api.github.com/users/alcar","html_url":"https://github.com/alcar","followers_url":"https://api.github.com/users/alcar/followers","following_url":"https://api.github.com/users/alcar/following{/other_user}","gists_url":"https://api.github.com/users/alcar/gists{/gist_id}","starred_url":"https://api.github.com/users/alcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcar/subscriptions","organizations_url":"https://api.github.com/users/alcar/orgs","repos_url":"https://api.github.com/users/alcar/repos","events_url":"https://api.github.com/users/alcar/events{/privacy}","received_events_url":"https://api.github.com/users/alcar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84/commits","review_comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84/comments","review_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/84/comments","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/7a74473664dfcc2be36088ce6963f2c9be5dc05f","head":{"label":"vtex-apps:feature/improve-redirects","ref":"feature/improve-redirects","sha":"7a74473664dfcc2be36088ce6963f2c9be5dc05f","user":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"repo":{"id":120042060,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAwNDIwNjA=","name":"admin-pages","full_name":"vtex-apps/admin-pages","owner":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vtex-apps/admin-pages","description":"The VTEX Pages CMS Admin","fork":false,"url":"https://api.github.com/repos/vtex-apps/admin-pages","forks_url":"https://api.github.com/repos/vtex-apps/admin-pages/forks","keys_url":"https://api.github.com/repos/vtex-apps/admin-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex-apps/admin-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex-apps/admin-pages/teams","hooks_url":"https://api.github.com/repos/vtex-apps/admin-pages/hooks","issue_events_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/events{/number}","events_url":"https://api.github.com/repos/vtex-apps/admin-pages/events","assignees_url":"https://api.github.com/repos/vtex-apps/admin-pages/assignees{/user}","branches_url":"https://api.github.com/repos/vtex-apps/admin-pages/branches{/branch}","tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/tags","blobs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex-apps/admin-pages/languages","stargazers_url":"https://api.github.com/repos/vtex-apps/admin-pages/stargazers","contributors_url":"https://api.github.com/repos/vtex-apps/admin-pages/contributors","subscribers_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscribers","subscription_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscription","commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex-apps/admin-pages/contents/{+path}","compare_url":"https://api.github.com/repos/vtex-apps/admin-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex-apps/admin-pages/merges","archive_url":"https://api.github.com/repos/vtex-apps/admin-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex-apps/admin-pages/downloads","issues_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues{/number}","pulls_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex-apps/admin-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex-apps/admin-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex-apps/admin-pages/labels{/name}","releases_url":"https://api.github.com/repos/vtex-apps/admin-pages/releases{/id}","deployments_url":"https://api.github.com/repos/vtex-apps/admin-pages/deployments","created_at":"2018-02-02T23:24:21Z","updated_at":"2018-08-28T18:34:33Z","pushed_at":"2018-09-04T19:26:22Z","git_url":"git://github.com/vtex-apps/admin-pages.git","ssh_url":"git@github.com:vtex-apps/admin-pages.git","clone_url":"https://github.com/vtex-apps/admin-pages.git","svn_url":"https://github.com/vtex-apps/admin-pages","homepage":"","size":710,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":11,"license":null,"forks":3,"open_issues":11,"watchers":0,"default_branch":"master"}},"base":{"label":"vtex-apps:master","ref":"master","sha":"356ba49d40c9e3bfa1b27d33132e9008065142de","user":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"repo":{"id":120042060,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAwNDIwNjA=","name":"admin-pages","full_name":"vtex-apps/admin-pages","owner":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vtex-apps/admin-pages","description":"The VTEX Pages CMS Admin","fork":false,"url":"https://api.github.com/repos/vtex-apps/admin-pages","forks_url":"https://api.github.com/repos/vtex-apps/admin-pages/forks","keys_url":"https://api.github.com/repos/vtex-apps/admin-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex-apps/admin-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex-apps/admin-pages/teams","hooks_url":"https://api.github.com/repos/vtex-apps/admin-pages/hooks","issue_events_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/events{/number}","events_url":"https://api.github.com/repos/vtex-apps/admin-pages/events","assignees_url":"https://api.github.com/repos/vtex-apps/admin-pages/assignees{/user}","branches_url":"https://api.github.com/repos/vtex-apps/admin-pages/branches{/branch}","tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/tags","blobs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex-apps/admin-pages/languages","stargazers_url":"https://api.github.com/repos/vtex-apps/admin-pages/stargazers","contributors_url":"https://api.github.com/repos/vtex-apps/admin-pages/contributors","subscribers_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscribers","subscription_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscription","commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex-apps/admin-pages/contents/{+path}","compare_url":"https://api.github.com/repos/vtex-apps/admin-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex-apps/admin-pages/merges","archive_url":"https://api.github.com/repos/vtex-apps/admin-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex-apps/admin-pages/downloads","issues_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues{/number}","pulls_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex-apps/admin-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex-apps/admin-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex-apps/admin-pages/labels{/name}","releases_url":"https://api.github.com/repos/vtex-apps/admin-pages/releases{/id}","deployments_url":"https://api.github.com/repos/vtex-apps/admin-pages/deployments","created_at":"2018-02-02T23:24:21Z","updated_at":"2018-08-28T18:34:33Z","pushed_at":"2018-09-04T19:26:22Z","git_url":"git://github.com/vtex-apps/admin-pages.git","ssh_url":"git@github.com:vtex-apps/admin-pages.git","clone_url":"https://github.com/vtex-apps/admin-pages.git","svn_url":"https://github.com/vtex-apps/admin-pages","homepage":"","size":710,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":11,"license":null,"forks":3,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84"},"html":{"href":"https://github.com/vtex-apps/admin-pages/pull/84"},"issue":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/issues/84"},"comments":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/7a74473664dfcc2be36088ce6963f2c9be5dc05f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"firstdoit"}}