feat(web): add workspace sharing management i18n and update share modal
- Add new i18n keys for share management UI (shareSpace, shareSpaceTitle, shareSpaceNote) in both English and Chinese translations - Update ShareModal title to use new 'shareSpace' i18n key for better UX clarity - Update ShareModal description and note text to use new i18n keys (shareSpaceTitle, shareSpaceNote) - Fix parser_config field name from 'third_party_platform' to '_third_party_platform' in CreateModal for proper form binding - Improve share modal messaging to better communicate workspace sharing status and access control
This commit is contained in:
@@ -766,6 +766,9 @@ export const en = {
|
||||
toWorkspace: 'Authorization to workspace',
|
||||
shareTitle:'Please select the workspace you want to share',
|
||||
shareNote:'Note: Sharing is not possible when workspace app is closed',
|
||||
shareSpace:'Manage Sharing',
|
||||
shareSpaceTitle:'Shared with the following workspaces',
|
||||
shareSpaceNote: 'Note: sharing is turned off, others will no longer have access.',
|
||||
authorizedPerson:'Authorized person',
|
||||
chunkList:'Chunk List',
|
||||
delimiter:'Text paragraph delimiter',
|
||||
|
||||
@@ -305,6 +305,9 @@ export const zh = {
|
||||
toWorkspace: '授权到工作空间',
|
||||
shareTitle: '请选择要分享的工作空间',
|
||||
shareNote: '注意:工作空间应用关闭时无法分享',
|
||||
shareSpace:'管理共享',
|
||||
shareSpaceTitle:'已共享至以下工作空间',
|
||||
shareSpaceNote: '注意:关闭共享后对方将无法访问',
|
||||
authorizedPerson: '授权人',
|
||||
chunkList: '分块列表',
|
||||
delimiter: '文本段落分隔符',
|
||||
|
||||
@@ -579,7 +579,7 @@ const CreateModal = forwardRef<CreateModalRef, CreateModalRefProps>(({
|
||||
{currentType === 'Third-party' && (
|
||||
<>
|
||||
<Form.Item
|
||||
name={['parser_config', 'third_party_platform']}
|
||||
name={['parser_config', '_third_party_platform']}
|
||||
label={t('knowledgeBase.createForm.platform')}
|
||||
rules={[{ required: true, message: t('knowledgeBase.createForm.platformRequired') }]}
|
||||
initialValue="yuque"
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* @Author: yujiangping
|
||||
* @Date: 2025-11-10 18:52:55
|
||||
* @LastEditors: yujiangping
|
||||
* @LastEditTime: 2026-02-03 17:08:00
|
||||
* @LastEditTime: 2026-02-10 15:18:32
|
||||
*/
|
||||
import { forwardRef, useImperativeHandle, useState, useRef } from 'react';
|
||||
import { Switch } from 'antd';
|
||||
@@ -93,7 +93,7 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
|
||||
<>
|
||||
{contextHolder}
|
||||
<RbModal
|
||||
title={t('knowledgeBase.toWorkspace')}
|
||||
title={t('knowledgeBase.shareSpace')}
|
||||
open={visible}
|
||||
onCancel={handleClose}
|
||||
okText={t('knowledgeBase.share')}
|
||||
@@ -101,8 +101,8 @@ const ShareModal = forwardRef<ShareModalRef,ShareModalRefProps>(({ handleShare:
|
||||
confirmLoading={loading}
|
||||
>
|
||||
<div className='rb:flex rb:flex-col rb:text-left'>
|
||||
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareTitle')}</h4>
|
||||
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareNote')}</span>
|
||||
<h4 className='rb:text-sm rb:font-medium rb:text-gray-800'>{t('knowledgeBase.shareSpaceTitle')}</h4>
|
||||
<span className='rb:text-xs rb:text-gray-500'>{t('knowledgeBase.shareSpaceNote')}</span>
|
||||
<div className='rb:flex rb:flex-col rb:text-left rb:gap-4 rb:mt-4 '>
|
||||
{spaceList.length === 0 && (
|
||||
<NoData />
|
||||
|
||||
Reference in New Issue
Block a user