|
@@ -301,11 +301,11 @@ const WithProxyAccordions = (props) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
const officialBotIntegrationProcedure = {
|
|
const officialBotIntegrationProcedure = {
|
|
|
- '①': {
|
|
|
|
|
|
|
+ 1: {
|
|
|
title: 'install_bot_to_slack',
|
|
title: 'install_bot_to_slack',
|
|
|
content: <BotInstallProcessForOfficialBot />,
|
|
content: <BotInstallProcessForOfficialBot />,
|
|
|
},
|
|
},
|
|
|
- '②': {
|
|
|
|
|
|
|
+ 2: {
|
|
|
title: 'register_for_growi_official_bot_proxy_service',
|
|
title: 'register_for_growi_official_bot_proxy_service',
|
|
|
content: <GeneratingTokensAndRegisteringProxyServiceProcess
|
|
content: <GeneratingTokensAndRegisteringProxyServiceProcess
|
|
|
growiUrl={siteUrl}
|
|
growiUrl={siteUrl}
|
|
@@ -315,7 +315,7 @@ const WithProxyAccordions = (props) => {
|
|
|
onUpdateTokens={props.onUpdateTokens}
|
|
onUpdateTokens={props.onUpdateTokens}
|
|
|
/>,
|
|
/>,
|
|
|
},
|
|
},
|
|
|
- '③': {
|
|
|
|
|
|
|
+ 3: {
|
|
|
title: 'manage_permission',
|
|
title: 'manage_permission',
|
|
|
content: <ManageCommandsProcess
|
|
content: <ManageCommandsProcess
|
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
@@ -324,7 +324,7 @@ const WithProxyAccordions = (props) => {
|
|
|
permissionsForSlackEventActions={props.permissionsForSlackEventActions}
|
|
permissionsForSlackEventActions={props.permissionsForSlackEventActions}
|
|
|
/>,
|
|
/>,
|
|
|
},
|
|
},
|
|
|
- '④': {
|
|
|
|
|
|
|
+ 4: {
|
|
|
title: 'test_connection',
|
|
title: 'test_connection',
|
|
|
content: <TestProcess
|
|
content: <TestProcess
|
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
@@ -336,15 +336,15 @@ const WithProxyAccordions = (props) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const CustomBotIntegrationProcedure = {
|
|
const CustomBotIntegrationProcedure = {
|
|
|
- '①': {
|
|
|
|
|
|
|
+ 1: {
|
|
|
title: 'create_bot',
|
|
title: 'create_bot',
|
|
|
content: <BotCreateProcess />,
|
|
content: <BotCreateProcess />,
|
|
|
},
|
|
},
|
|
|
- '②': {
|
|
|
|
|
|
|
+ 2: {
|
|
|
title: 'install_bot_to_slack',
|
|
title: 'install_bot_to_slack',
|
|
|
content: <BotInstallProcessForCustomBotWithProxy />,
|
|
content: <BotInstallProcessForCustomBotWithProxy />,
|
|
|
},
|
|
},
|
|
|
- '③': {
|
|
|
|
|
|
|
+ 3: {
|
|
|
title: 'register_for_growi_custom_bot_proxy',
|
|
title: 'register_for_growi_custom_bot_proxy',
|
|
|
content: <GeneratingTokensAndRegisteringProxyServiceProcess
|
|
content: <GeneratingTokensAndRegisteringProxyServiceProcess
|
|
|
growiUrl={siteUrl}
|
|
growiUrl={siteUrl}
|
|
@@ -354,11 +354,11 @@ const WithProxyAccordions = (props) => {
|
|
|
onUpdateTokens={props.onUpdateTokens}
|
|
onUpdateTokens={props.onUpdateTokens}
|
|
|
/>,
|
|
/>,
|
|
|
},
|
|
},
|
|
|
- '④': {
|
|
|
|
|
|
|
+ 4: {
|
|
|
title: 'set_proxy_url_on_growi',
|
|
title: 'set_proxy_url_on_growi',
|
|
|
content: <RegisteringProxyUrlProcess />,
|
|
content: <RegisteringProxyUrlProcess />,
|
|
|
},
|
|
},
|
|
|
- '⑤': {
|
|
|
|
|
|
|
+ 5: {
|
|
|
title: 'manage_permission',
|
|
title: 'manage_permission',
|
|
|
content: <ManageCommandsProcess
|
|
content: <ManageCommandsProcess
|
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
@@ -367,7 +367,7 @@ const WithProxyAccordions = (props) => {
|
|
|
permissionsForSlackEventActions={props.permissionsForSlackEventActions}
|
|
permissionsForSlackEventActions={props.permissionsForSlackEventActions}
|
|
|
/>,
|
|
/>,
|
|
|
},
|
|
},
|
|
|
- '⑥': {
|
|
|
|
|
|
|
+ 6: {
|
|
|
title: 'test_connection',
|
|
title: 'test_connection',
|
|
|
content: <TestProcess
|
|
content: <TestProcess
|
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
slackAppIntegrationId={props.slackAppIntegrationId}
|
|
@@ -382,14 +382,14 @@ const WithProxyAccordions = (props) => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div
|
|
<div
|
|
|
- className="card border-0 rounded-3 shadow overflow-hidden"
|
|
|
|
|
|
|
+ className="accordion"
|
|
|
>
|
|
>
|
|
|
{Object.entries(integrationProcedureMapping).map(([key, value]) => {
|
|
{Object.entries(integrationProcedureMapping).map(([key, value]) => {
|
|
|
return (
|
|
return (
|
|
|
<Accordion
|
|
<Accordion
|
|
|
title={(
|
|
title={(
|
|
|
<>
|
|
<>
|
|
|
- <span className="me-2">{key}</span>
|
|
|
|
|
|
|
+ <span className="me-3">{key}</span>
|
|
|
{t(`admin:slack_integration.accordion.${value.title}`)}
|
|
{t(`admin:slack_integration.accordion.${value.title}`)}
|
|
|
{value.title === 'test_connection' && isLatestConnectionSuccess && <i className="ms-3 text-success fa fa-check"></i>}
|
|
{value.title === 'test_connection' && isLatestConnectionSuccess && <i className="ms-3 text-success fa fa-check"></i>}
|
|
|
</>
|
|
</>
|