diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts index 8a4f7a07..43dea1c5 100644 --- a/web/src/i18n/en.ts +++ b/web/src/i18n/en.ts @@ -454,6 +454,7 @@ export const en = { prevStep: 'Previous Step', exportSuccess: 'Export successful', recommend: 'Recommend', + default: 'Default', logoTip: `Supported image formats: JPG, PNG \n Suggested size: square ratio \n Maximum size: ≤ 2MB`, imageSquareRequired: 'Please upload a square image', nameInvalid: 'Name cannot start or end with a space', diff --git a/web/src/i18n/zh.ts b/web/src/i18n/zh.ts index 5182b4c4..62ce77e3 100644 --- a/web/src/i18n/zh.ts +++ b/web/src/i18n/zh.ts @@ -1034,6 +1034,7 @@ export const zh = { prevStep: '上一步', exportSuccess: '导出成功', recommend: '推荐', + default: '默认', logoTip: `支持图片格式(JPG、PNG)\n 尺寸:正方形比例 \n 文件大小限制:≤ 2MB`, imageSquareRequired: '请上传正方形比例图片', nameInvalid: '不能是空格开头或结尾', diff --git a/web/src/views/MemoryManagement/index.tsx b/web/src/views/MemoryManagement/index.tsx index ac2b4fa5..6ebb49c7 100644 --- a/web/src/views/MemoryManagement/index.tsx +++ b/web/src/views/MemoryManagement/index.tsx @@ -1,8 +1,8 @@ /* * @Author: ZhaoYing * @Date: 2026-02-03 17:33:15 - * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-03 17:33:15 + * @Last Modified by: ZhaoYing + * @Last Modified time: 2026-03-05 16:28:58 */ /** * Memory Management Page @@ -110,9 +110,15 @@ const MemoryManagement: React.FC = () => { + {item.is_system_default && +
+ {t('common.default')} +
+ } -
{item.config_desc}
+
{item.config_desc}
diff --git a/web/src/views/MemoryManagement/types.ts b/web/src/views/MemoryManagement/types.ts index 48bdbb77..dc3ae091 100644 --- a/web/src/views/MemoryManagement/types.ts +++ b/web/src/views/MemoryManagement/types.ts @@ -2,7 +2,7 @@ * @Author: ZhaoYing * @Date: 2026-02-03 17:33:01 * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-03 17:33:24 + * @Last Modified time: 2026-03-05 16:33:53 */ /** * Memory management form data type @@ -42,6 +42,7 @@ export interface Memory { workspace_id: string; scene_id: string; scene_name: string; + is_system_default: boolean; [key: string]: string | number | boolean; } /** diff --git a/web/src/views/Ontology/index.tsx b/web/src/views/Ontology/index.tsx index 37f9118d..eaf1188b 100644 --- a/web/src/views/Ontology/index.tsx +++ b/web/src/views/Ontology/index.tsx @@ -1,8 +1,8 @@ /* * @Author: ZhaoYing * @Date: 2026-02-03 14:10:15 - * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-03-05 10:57:53 + * @Last Modified by: ZhaoYing + * @Last Modified time: 2026-03-05 16:28:53 */ import { type FC, useState, useRef, type MouseEvent } from 'react'; import { useNavigate } from 'react-router-dom'; @@ -144,8 +144,13 @@ const Ontology: FC = () => { title={item.scene_name} extra={{item.type_num} {t('ontology.typeCount')}} onClick={() => handleJump(item)} - className="rb:cursor-pointer" + className="rb:cursor-pointer rb:relative" > + {item.is_system_default && +
+ {t('common.default')} +
+ }
diff --git a/web/src/views/Ontology/types.ts b/web/src/views/Ontology/types.ts index d78d8464..aad94ee0 100644 --- a/web/src/views/Ontology/types.ts +++ b/web/src/views/Ontology/types.ts @@ -1,8 +1,8 @@ /* * @Author: ZhaoYing * @Date: 2026-02-03 14:10:10 - * @Last Modified by: ZhaoYing - * @Last Modified time: 2026-02-03 14:10:10 + * @Last Modified by: ZhaoYing + * @Last Modified time: 2026-03-05 16:18:56 */ /** * Query parameters for ontology list pagination and filtering @@ -38,6 +38,8 @@ export interface OntologyItem { updated_at: number; /** Total count of classes in the scene */ classes_count: number; + /** Whether this is the system default configuration */ + is_system_default: boolean; } /**