{"action":"created","comment":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/comments/224735872","pull_request_review_id":164169345,"id":224735872,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDczNTg3Mg==","diff_hunk":"@@ -0,0 +1,99 @@\n+import { withStyles } from \"@material-ui/core/styles\";\n+import * as React from \"react\";\n+\n+import { CardSpacer } from \"../../../components/CardSpacer\";\n+import Form from \"../../../components/Form\";\n+import Container from \"../../../components/Container\";\n+import PageHeader from \"../../../components/PageHeader\";\n+import { UserError } from \"../../../\";\n+import i18n from \"../../../i18n\";\n+import CategoryDetailsForm from \"../../components/CategoryDetailsForm\";\n+import SeoForm from \"../../../components/SeoForm\";\n+\n+import SaveButtonBar, {\n+  SaveButtonBarState\n+} from \"../../../components/SaveButtonBar/SaveButtonBar\";\n+\n+interface FormData {\n+  description: string;\n+  name: string;\n+  seoTitle: string;\n+  seoDescription: string;\n+}\n+\n+export interface CategoryCreatePageProps {\n+  errors: UserError[];\n+  header: string;\n+  disabled: boolean;\n+  onSubmit(data: FormData);\n+  onBack();\n+  saveButtonBarState?: SaveButtonBarState;\n+}\n+const decorate = withStyles(theme => ({\n+  root: {\n+    display: \"grid\",\n+    marginTop: theme.spacing.unit * 2,\n+    gridGap: theme.spacing.unit * 4 + \"px\"\n+  }\n+}));\n+\n+export const CategoryCreatePage = decorate<CategoryCreatePageProps>(\n+  ({\n+    header,\n+    disabled,\n+    onSubmit,\n+    onBack,\n+    errors: userErrors,\n+    saveButtonBarState\n+  }) => {\n+    const initialData: FormData = {\n+      name: \"\",\n+      description: \"\",\n+      seoTitle: \"\",\n+      seoDescription: \"\"\n+    };\n+    return (\n+      <Form onSubmit={onSubmit} initial={initialData} errors={userErrors}>\n+        {({ data, change, errors, submit, hasChanged }) => (\n+          <>\n+            <Container width=\"lg\">\n+              <PageHeader title={header} />\n+              <div>\n+                <CategoryDetailsForm\n+                  disabled={disabled}\n+                  data={data}\n+                  onChange={change}\n+                  errors={errors}\n+                />\n+                <CardSpacer />\n+                <CardSpacer />\n+                <SeoForm\n+                  helperText={i18n.t(\n+                    \"Add search engine title and description to make this product easier to find\"\n+                  )}\n+                  title={data.seoTitle}\n+                  titlePlaceholder={data.name}\n+                  description={data.seoDescription}\n+                  descriptionPlaceholder={data.description}\n+                  loading={disabled}\n+                  onChange={change}\n+                  disabled={disabled}\n+                />{\" \"}","path":"saleor/static/dashboard-next/categories/components/CategoryCreatePage/CategoryCreatePage.tsx","position":81,"original_position":81,"commit_id":"b9e7bcf678f961fb194983d8f368ffd668a1d385","original_commit_id":"b9e7bcf678f961fb194983d8f368ffd668a1d385","user":{"login":"dominik-zeglen","id":6833443,"node_id":"MDQ6VXNlcjY4MzM0NDM=","avatar_url":"https://avatars3.githubusercontent.com/u/6833443?v=4","gravatar_id":"","url":"https://api.github.com/users/dominik-zeglen","html_url":"https://github.com/dominik-zeglen","followers_url":"https://api.github.com/users/dominik-zeglen/followers","following_url":"https://api.github.com/users/dominik-zeglen/following{/other_user}","gists_url":"https://api.github.com/users/dominik-zeglen/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik-zeglen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik-zeglen/subscriptions","organizations_url":"https://api.github.com/users/dominik-zeglen/orgs","repos_url":"https://api.github.com/users/dominik-zeglen/repos","events_url":"https://api.github.com/users/dominik-zeglen/events{/privacy}","received_events_url":"https://api.github.com/users/dominik-zeglen/received_events","type":"User","site_admin":false},"body":"We don't need space here","created_at":"2018-10-12T10:05:17Z","updated_at":"2018-10-12T10:39:41Z","html_url":"https://github.com/mirumee/saleor/pull/3072#discussion_r224735872","pull_request_url":"https://api.github.com/repos/mirumee/saleor/pulls/3072","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments/224735872"},"html":{"href":"https://github.com/mirumee/saleor/pull/3072#discussion_r224735872"},"pull_request":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/3072"}}},"pull_request":{"url":"https://api.github.com/repos/mirumee/saleor/pulls/3072","id":221154757,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMTU0NzU3","html_url":"https://github.com/mirumee/saleor/pull/3072","diff_url":"https://github.com/mirumee/saleor/pull/3072.diff","patch_url":"https://github.com/mirumee/saleor/pull/3072.patch","issue_url":"https://api.github.com/repos/mirumee/saleor/issues/3072","number":3072,"state":"open","locked":false,"title":"Restyle categories section","user":{"login":"Bonifacy1","id":33530420,"node_id":"MDQ6VXNlcjMzNTMwNDIw","avatar_url":"https://avatars0.githubusercontent.com/u/33530420?v=4","gravatar_id":"","url":"https://api.github.com/users/Bonifacy1","html_url":"https://github.com/Bonifacy1","followers_url":"https://api.github.com/users/Bonifacy1/followers","following_url":"https://api.github.com/users/Bonifacy1/following{/other_user}","gists_url":"https://api.github.com/users/Bonifacy1/gists{/gist_id}","starred_url":"https://api.github.com/users/Bonifacy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bonifacy1/subscriptions","organizations_url":"https://api.github.com/users/Bonifacy1/orgs","repos_url":"https://api.github.com/users/Bonifacy1/repos","events_url":"https://api.github.com/users/Bonifacy1/events{/privacy}","received_events_url":"https://api.github.com/users/Bonifacy1/received_events","type":"User","site_admin":false},"body":"Close #2599","created_at":"2018-10-08T15:17:08Z","updated_at":"2018-10-12T10:39:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a18be0097fccb722a7aa7f75c4e0db380028bc3a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":85254421,"node_id":"MDU6TGFiZWw4NTI1NDQyMQ==","url":"https://api.github.com/repos/mirumee/saleor/labels/in%20progress","name":"in progress","color":"2980B9","default":false},{"id":852505209,"node_id":"MDU6TGFiZWw4NTI1MDUyMDk=","url":"https://api.github.com/repos/mirumee/saleor/labels/react","name":"react","color":"00d8ff","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mirumee/saleor/pulls/3072/commits","review_comments_url":"https://api.github.com/repos/mirumee/saleor/pulls/3072/comments","review_comment_url":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mirumee/saleor/issues/3072/comments","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/b9e7bcf678f961fb194983d8f368ffd668a1d385","head":{"label":"mirumee:Restyle/categories-section","ref":"Restyle/categories-section","sha":"b9e7bcf678f961fb194983d8f368ffd668a1d385","user":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"node_id":"MDEwOlJlcG9zaXRvcnk4MTYyNzE1","name":"saleor","full_name":"mirumee/saleor","private":false,"owner":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2018-10-12T10:32:06Z","pushed_at":"2018-10-12T10:35:34Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":69350,"stargazers_count":2590,"watchers_count":2590,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1213,"mirror_url":null,"archived":false,"open_issues_count":326,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1213,"open_issues":326,"watchers":2590,"default_branch":"master"}},"base":{"label":"mirumee:master","ref":"master","sha":"088edcd8c7cd0335579c8ace3ba290523f4cb917","user":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"repo":{"id":8162715,"node_id":"MDEwOlJlcG9zaXRvcnk4MTYyNzE1","name":"saleor","full_name":"mirumee/saleor","private":false,"owner":{"login":"mirumee","id":170574,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE3MDU3NA==","avatar_url":"https://avatars3.githubusercontent.com/u/170574?v=4","gravatar_id":"","url":"https://api.github.com/users/mirumee","html_url":"https://github.com/mirumee","followers_url":"https://api.github.com/users/mirumee/followers","following_url":"https://api.github.com/users/mirumee/following{/other_user}","gists_url":"https://api.github.com/users/mirumee/gists{/gist_id}","starred_url":"https://api.github.com/users/mirumee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mirumee/subscriptions","organizations_url":"https://api.github.com/users/mirumee/orgs","repos_url":"https://api.github.com/users/mirumee/repos","events_url":"https://api.github.com/users/mirumee/events{/privacy}","received_events_url":"https://api.github.com/users/mirumee/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mirumee/saleor","description":"An e-commerce storefront for Python and Django","fork":false,"url":"https://api.github.com/repos/mirumee/saleor","forks_url":"https://api.github.com/repos/mirumee/saleor/forks","keys_url":"https://api.github.com/repos/mirumee/saleor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mirumee/saleor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mirumee/saleor/teams","hooks_url":"https://api.github.com/repos/mirumee/saleor/hooks","issue_events_url":"https://api.github.com/repos/mirumee/saleor/issues/events{/number}","events_url":"https://api.github.com/repos/mirumee/saleor/events","assignees_url":"https://api.github.com/repos/mirumee/saleor/assignees{/user}","branches_url":"https://api.github.com/repos/mirumee/saleor/branches{/branch}","tags_url":"https://api.github.com/repos/mirumee/saleor/tags","blobs_url":"https://api.github.com/repos/mirumee/saleor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mirumee/saleor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mirumee/saleor/git/refs{/sha}","trees_url":"https://api.github.com/repos/mirumee/saleor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mirumee/saleor/statuses/{sha}","languages_url":"https://api.github.com/repos/mirumee/saleor/languages","stargazers_url":"https://api.github.com/repos/mirumee/saleor/stargazers","contributors_url":"https://api.github.com/repos/mirumee/saleor/contributors","subscribers_url":"https://api.github.com/repos/mirumee/saleor/subscribers","subscription_url":"https://api.github.com/repos/mirumee/saleor/subscription","commits_url":"https://api.github.com/repos/mirumee/saleor/commits{/sha}","git_commits_url":"https://api.github.com/repos/mirumee/saleor/git/commits{/sha}","comments_url":"https://api.github.com/repos/mirumee/saleor/comments{/number}","issue_comment_url":"https://api.github.com/repos/mirumee/saleor/issues/comments{/number}","contents_url":"https://api.github.com/repos/mirumee/saleor/contents/{+path}","compare_url":"https://api.github.com/repos/mirumee/saleor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mirumee/saleor/merges","archive_url":"https://api.github.com/repos/mirumee/saleor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mirumee/saleor/downloads","issues_url":"https://api.github.com/repos/mirumee/saleor/issues{/number}","pulls_url":"https://api.github.com/repos/mirumee/saleor/pulls{/number}","milestones_url":"https://api.github.com/repos/mirumee/saleor/milestones{/number}","notifications_url":"https://api.github.com/repos/mirumee/saleor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mirumee/saleor/labels{/name}","releases_url":"https://api.github.com/repos/mirumee/saleor/releases{/id}","deployments_url":"https://api.github.com/repos/mirumee/saleor/deployments","created_at":"2013-02-12T16:46:39Z","updated_at":"2018-10-12T10:32:06Z","pushed_at":"2018-10-12T10:35:34Z","git_url":"git://github.com/mirumee/saleor.git","ssh_url":"git@github.com:mirumee/saleor.git","clone_url":"https://github.com/mirumee/saleor.git","svn_url":"https://github.com/mirumee/saleor","homepage":"http://getsaleor.com","size":69350,"stargazers_count":2590,"watchers_count":2590,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1213,"mirror_url":null,"archived":false,"open_issues_count":326,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":1213,"open_issues":326,"watchers":2590,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/3072"},"html":{"href":"https://github.com/mirumee/saleor/pull/3072"},"issue":{"href":"https://api.github.com/repos/mirumee/saleor/issues/3072"},"comments":{"href":"https://api.github.com/repos/mirumee/saleor/issues/3072/comments"},"review_comments":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/3072/comments"},"review_comment":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mirumee/saleor/pulls/3072/commits"},"statuses":{"href":"https://api.github.com/repos/mirumee/saleor/statuses/b9e7bcf678f961fb194983d8f368ffd668a1d385"}},"author_association":"NONE"}}
{"actor":{"display_login":"dominik-zeglen"}}