{"action":"created","comment":{"url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/comments/237142608","pull_request_review_id":179367076,"id":237142608,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzE0MjYwOA==","diff_hunk":"@@ -0,0 +1,93 @@\n+import React, { Component } from 'react';\n+import { FormattedMessage } from 'react-intl';\n+\n+import { Settings } from '@folio/stripes/smart-components';\n+import { AppIcon, InfoPopover } from '@folio/stripes/components';\n+\n+import JobProfiles from './JobProfiles';\n+import MatchProfiles from './MatchProfiles';\n+import ActionProfiles from './ActionProfiles';\n+import FieldMappingProfiles from './FieldMappingProfiles';\n+import FileExtensions from './FileExtensions';\n+\n+import css from './DataImportSettings.css';\n+\n+class DataImportSettings extends Component {\n+  sections = [\n+    {\n+      label: this.renderProfilesLabel(),\n+      pages: [\n+        {\n+          route: 'job-profiles',\n+          label: this.generateSettingsLabel('jobProfiles', 'jobProfiles'),\n+          component: JobProfiles,\n+        },\n+        {\n+          route: 'match-profiles',\n+          label: this.generateSettingsLabel('matchProfiles', 'matchProfiles'),\n+          component: MatchProfiles,\n+        },\n+        {\n+          route: 'action-profiles',\n+          label: this.generateSettingsLabel('actionProfiles', 'actionProfiles'),\n+          component: ActionProfiles,\n+        },\n+        {\n+          route: 'mapping-profiles',\n+          label: this.generateSettingsLabel('fieldMappingProfiles', 'fieldMapping'),\n+          component: FieldMappingProfiles,\n+        },\n+      ],\n+    },\n+    {\n+      label: <FormattedMessage id=\"ui-data-import.settings.other\" />,\n+      pages: [\n+        {\n+          route: 'file-extensions',\n+          label: <FormattedMessage id=\"ui-data-import.settings.fileExtensions\" />,\n+          component: FileExtensions,\n+        },\n+      ],\n+    },\n+  ];\n+\n+  renderProfilesLabel() {\n+    return (\n+      <div className={css.profilesLabel}>\n+        <FormattedMessage id=\"ui-data-import.settings.profiles\" />\n+        <InfoPopover\n+          allowAnchorClick\n+          buttonHref=\"https://wiki.folio.org/display/FOLIOtips/Creating+and+using+profiles\"\n+          buttonLabel={<FormattedMessage id=\"ui-data-import.settings.learnMore\" />}\n+          content={<FormattedMessage id=\"ui-data-import.settings.profilesInfo\" />}\n+          contentClass={css.profilesPopoverContent}\n+          iconSize=\"medium\"\n+        />\n+      </div>\n+    );\n+  }\n+\n+  generateSettingsLabel(labelId, iconKey) {\n+    return (\n+      <AppIcon\n+        size=\"small\"\n+        app=\"data-import\"\n+        iconKey={iconKey}\n+      >\n+        <FormattedMessage id={`ui-data-import.settings.${labelId}`} />\n+      </AppIcon>\n+    );\n+  }\n+\n+  render() {\n+    return (","path":"src/settings/DataImportSettings.js","position":83,"original_position":83,"commit_id":"24caff3b5a446921143bcfba38bd3cf25dd0883c","original_commit_id":"24caff3b5a446921143bcfba38bd3cf25dd0883c","user":{"login":"oleksii-popov","id":40862238,"node_id":"MDQ6VXNlcjQwODYyMjM4","avatar_url":"https://avatars2.githubusercontent.com/u/40862238?v=4","gravatar_id":"","url":"https://api.github.com/users/oleksii-popov","html_url":"https://github.com/oleksii-popov","followers_url":"https://api.github.com/users/oleksii-popov/followers","following_url":"https://api.github.com/users/oleksii-popov/following{/other_user}","gists_url":"https://api.github.com/users/oleksii-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/oleksii-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleksii-popov/subscriptions","organizations_url":"https://api.github.com/users/oleksii-popov/orgs","repos_url":"https://api.github.com/users/oleksii-popov/repos","events_url":"https://api.github.com/users/oleksii-popov/events{/privacy}","received_events_url":"https://api.github.com/users/oleksii-popov/received_events","type":"User","site_admin":false},"body":"WHy do we need a return in render function? As I see component is written in Class notation.","created_at":"2018-11-28T15:50:29Z","updated_at":"2018-11-28T15:51:33Z","html_url":"https://github.com/folio-org/ui-data-import/pull/29#discussion_r237142608","pull_request_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/comments/237142608"},"html":{"href":"https://github.com/folio-org/ui-data-import/pull/29#discussion_r237142608"},"pull_request":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29","id":234295902,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0Mjk1OTAy","html_url":"https://github.com/folio-org/ui-data-import/pull/29","diff_url":"https://github.com/folio-org/ui-data-import/pull/29.diff","patch_url":"https://github.com/folio-org/ui-data-import/pull/29.patch","issue_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/29","number":29,"state":"open","locked":false,"title":"UIDATIMP-5: Add Data Import settings page.","user":{"login":"VictorSoroka1","id":40821852,"node_id":"MDQ6VXNlcjQwODIxODUy","avatar_url":"https://avatars3.githubusercontent.com/u/40821852?v=4","gravatar_id":"","url":"https://api.github.com/users/VictorSoroka1","html_url":"https://github.com/VictorSoroka1","followers_url":"https://api.github.com/users/VictorSoroka1/followers","following_url":"https://api.github.com/users/VictorSoroka1/following{/other_user}","gists_url":"https://api.github.com/users/VictorSoroka1/gists{/gist_id}","starred_url":"https://api.github.com/users/VictorSoroka1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VictorSoroka1/subscriptions","organizations_url":"https://api.github.com/users/VictorSoroka1/orgs","repos_url":"https://api.github.com/users/VictorSoroka1/repos","events_url":"https://api.github.com/users/VictorSoroka1/events{/privacy}","received_events_url":"https://api.github.com/users/VictorSoroka1/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T14:26:49Z","updated_at":"2018-11-28T15:51:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d2a211c2689365eb4e04ab86ca346c76f7425d3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29/commits","review_comments_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29/comments","review_comment_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls/comments{/number}","comments_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/29/comments","statuses_url":"https://api.github.com/repos/folio-org/ui-data-import/statuses/24caff3b5a446921143bcfba38bd3cf25dd0883c","head":{"label":"folio-org:UIDATIMP-5","ref":"UIDATIMP-5","sha":"24caff3b5a446921143bcfba38bd3cf25dd0883c","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":149735790,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk3MzU3OTA=","name":"ui-data-import","full_name":"folio-org/ui-data-import","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/ui-data-import","description":"UI module: managing batch loader feature","fork":false,"url":"https://api.github.com/repos/folio-org/ui-data-import","forks_url":"https://api.github.com/repos/folio-org/ui-data-import/forks","keys_url":"https://api.github.com/repos/folio-org/ui-data-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/ui-data-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/ui-data-import/teams","hooks_url":"https://api.github.com/repos/folio-org/ui-data-import/hooks","issue_events_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/ui-data-import/events","assignees_url":"https://api.github.com/repos/folio-org/ui-data-import/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/ui-data-import/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/ui-data-import/tags","blobs_url":"https://api.github.com/repos/folio-org/ui-data-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/ui-data-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/ui-data-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/ui-data-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/ui-data-import/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/ui-data-import/languages","stargazers_url":"https://api.github.com/repos/folio-org/ui-data-import/stargazers","contributors_url":"https://api.github.com/repos/folio-org/ui-data-import/contributors","subscribers_url":"https://api.github.com/repos/folio-org/ui-data-import/subscribers","subscription_url":"https://api.github.com/repos/folio-org/ui-data-import/subscription","commits_url":"https://api.github.com/repos/folio-org/ui-data-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/ui-data-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/ui-data-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/ui-data-import/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/ui-data-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/ui-data-import/merges","archive_url":"https://api.github.com/repos/folio-org/ui-data-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/ui-data-import/downloads","issues_url":"https://api.github.com/repos/folio-org/ui-data-import/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/ui-data-import/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/ui-data-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/ui-data-import/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/ui-data-import/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/ui-data-import/deployments","created_at":"2018-09-21T08:44:24Z","updated_at":"2018-11-27T13:05:50Z","pushed_at":"2018-11-28T14:53:13Z","git_url":"git://github.com/folio-org/ui-data-import.git","ssh_url":"git@github.com:folio-org/ui-data-import.git","clone_url":"https://github.com/folio-org/ui-data-import.git","svn_url":"https://github.com/folio-org/ui-data-import","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"folio-org:master","ref":"master","sha":"d7e3de58a6197197f5f39910e8214af84cf3f48d","user":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"repo":{"id":149735790,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk3MzU3OTA=","name":"ui-data-import","full_name":"folio-org/ui-data-import","private":false,"owner":{"login":"folio-org","id":16495055,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE2NDk1MDU1","avatar_url":"https://avatars2.githubusercontent.com/u/16495055?v=4","gravatar_id":"","url":"https://api.github.com/users/folio-org","html_url":"https://github.com/folio-org","followers_url":"https://api.github.com/users/folio-org/followers","following_url":"https://api.github.com/users/folio-org/following{/other_user}","gists_url":"https://api.github.com/users/folio-org/gists{/gist_id}","starred_url":"https://api.github.com/users/folio-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/folio-org/subscriptions","organizations_url":"https://api.github.com/users/folio-org/orgs","repos_url":"https://api.github.com/users/folio-org/repos","events_url":"https://api.github.com/users/folio-org/events{/privacy}","received_events_url":"https://api.github.com/users/folio-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/folio-org/ui-data-import","description":"UI module: managing batch loader feature","fork":false,"url":"https://api.github.com/repos/folio-org/ui-data-import","forks_url":"https://api.github.com/repos/folio-org/ui-data-import/forks","keys_url":"https://api.github.com/repos/folio-org/ui-data-import/keys{/key_id}","collaborators_url":"https://api.github.com/repos/folio-org/ui-data-import/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/folio-org/ui-data-import/teams","hooks_url":"https://api.github.com/repos/folio-org/ui-data-import/hooks","issue_events_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/events{/number}","events_url":"https://api.github.com/repos/folio-org/ui-data-import/events","assignees_url":"https://api.github.com/repos/folio-org/ui-data-import/assignees{/user}","branches_url":"https://api.github.com/repos/folio-org/ui-data-import/branches{/branch}","tags_url":"https://api.github.com/repos/folio-org/ui-data-import/tags","blobs_url":"https://api.github.com/repos/folio-org/ui-data-import/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/folio-org/ui-data-import/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/folio-org/ui-data-import/git/refs{/sha}","trees_url":"https://api.github.com/repos/folio-org/ui-data-import/git/trees{/sha}","statuses_url":"https://api.github.com/repos/folio-org/ui-data-import/statuses/{sha}","languages_url":"https://api.github.com/repos/folio-org/ui-data-import/languages","stargazers_url":"https://api.github.com/repos/folio-org/ui-data-import/stargazers","contributors_url":"https://api.github.com/repos/folio-org/ui-data-import/contributors","subscribers_url":"https://api.github.com/repos/folio-org/ui-data-import/subscribers","subscription_url":"https://api.github.com/repos/folio-org/ui-data-import/subscription","commits_url":"https://api.github.com/repos/folio-org/ui-data-import/commits{/sha}","git_commits_url":"https://api.github.com/repos/folio-org/ui-data-import/git/commits{/sha}","comments_url":"https://api.github.com/repos/folio-org/ui-data-import/comments{/number}","issue_comment_url":"https://api.github.com/repos/folio-org/ui-data-import/issues/comments{/number}","contents_url":"https://api.github.com/repos/folio-org/ui-data-import/contents/{+path}","compare_url":"https://api.github.com/repos/folio-org/ui-data-import/compare/{base}...{head}","merges_url":"https://api.github.com/repos/folio-org/ui-data-import/merges","archive_url":"https://api.github.com/repos/folio-org/ui-data-import/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/folio-org/ui-data-import/downloads","issues_url":"https://api.github.com/repos/folio-org/ui-data-import/issues{/number}","pulls_url":"https://api.github.com/repos/folio-org/ui-data-import/pulls{/number}","milestones_url":"https://api.github.com/repos/folio-org/ui-data-import/milestones{/number}","notifications_url":"https://api.github.com/repos/folio-org/ui-data-import/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/folio-org/ui-data-import/labels{/name}","releases_url":"https://api.github.com/repos/folio-org/ui-data-import/releases{/id}","deployments_url":"https://api.github.com/repos/folio-org/ui-data-import/deployments","created_at":"2018-09-21T08:44:24Z","updated_at":"2018-11-27T13:05:50Z","pushed_at":"2018-11-28T14:53:13Z","git_url":"git://github.com/folio-org/ui-data-import.git","ssh_url":"git@github.com:folio-org/ui-data-import.git","clone_url":"https://github.com/folio-org/ui-data-import.git","svn_url":"https://github.com/folio-org/ui-data-import","homepage":null,"size":154,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29"},"html":{"href":"https://github.com/folio-org/ui-data-import/pull/29"},"issue":{"href":"https://api.github.com/repos/folio-org/ui-data-import/issues/29"},"comments":{"href":"https://api.github.com/repos/folio-org/ui-data-import/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/folio-org/ui-data-import/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/folio-org/ui-data-import/statuses/24caff3b5a446921143bcfba38bd3cf25dd0883c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"oleksii-popov"}}