From 4aef8938f218e112ba04362e1ce86c8a3caf04f1 Mon Sep 17 00:00:00 2001 From: wizardchen Date: Fri, 6 Feb 2026 19:54:58 +0800 Subject: [PATCH] feat(ui): update icon usage and enhance styling in share settings and knowledge base components - Replaced organization icons with a new control platform icon in AgentShareSettings, ShareKnowledgeBaseDialog, and KBShareSettings for consistency. - Added new styles for the agent icon to improve visual representation. - Adjusted padding, margins, and layout in various components including ListSpaceSidebar, KnowledgeBase, and OrganizationList to enhance overall UI consistency and readability. - Introduced hover effects and popover details for knowledge cards to improve user interaction and information accessibility. This update enhances the user interface by ensuring consistent iconography and improving the layout and interaction design across components. --- .../src/components/AgentShareSettings.vue | 12 +- frontend/src/components/ListSpaceSidebar.vue | 18 +- .../components/ShareKnowledgeBaseDialog.vue | 8 +- frontend/src/i18n/locales/en-US.ts | 3 + frontend/src/i18n/locales/zh-CN.ts | 3 + frontend/src/views/agent/AgentList.vue | 88 +++-- .../src/views/knowledge/KnowledgeBase.vue | 314 +++++++++++++++--- .../src/views/knowledge/KnowledgeBaseList.vue | 65 +++- .../knowledge/components/FAQEntryManager.vue | 42 +-- .../knowledge/settings/KBShareSettings.vue | 12 +- .../views/organization/OrganizationList.vue | 64 +++- 11 files changed, 502 insertions(+), 127 deletions(-) diff --git a/frontend/src/components/AgentShareSettings.vue b/frontend/src/components/AgentShareSettings.vue index c5184b4d..150c8db9 100644 --- a/frontend/src/components/AgentShareSettings.vue +++ b/frontend/src/components/AgentShareSettings.vue @@ -51,7 +51,7 @@ {{ org.share_count ?? 0 }} - + {{ org.agent_share_count ?? 0 }} @@ -107,7 +107,7 @@ - + {{ getOrgForShare(share.organization_id)?.agent_share_count ?? 0 }} @@ -377,6 +377,10 @@ defineExpose({ loadShares }) height: 12px; opacity: 0.75; } + .org-meta-icon-agent { + font-size: 12px; + opacity: 0.75; + } } .share-actions { display: flex; @@ -486,6 +490,10 @@ defineExpose({ loadShares }) height: 12px; opacity: 0.75; } + .org-meta-icon-agent { + font-size: 12px; + opacity: 0.75; + } } diff --git a/frontend/src/components/ListSpaceSidebar.vue b/frontend/src/components/ListSpaceSidebar.vue index 33040a3a..7271a04b 100644 --- a/frontend/src/components/ListSpaceSidebar.vue +++ b/frontend/src/components/ListSpaceSidebar.vue @@ -132,13 +132,13 @@ onMounted(() => { diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index 470c3138..19409fcb 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -111,6 +111,9 @@ export default { documentContent: 'Document Content', importTime: 'Import Time', createTime: 'Create Time', + createdAt: 'Created', + updatedAt: 'Updated', + clickToViewFull: 'Click card to view full text and chunks', characters: 'chars', segment: 'Segment', chunkCount: 'Total {count} segments', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index c7cdcf7d..27d713d5 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -110,6 +110,9 @@ export default { documentContent: "文档内容", importTime: "导入时间", createTime: "创建时间", + createdAt: "创建", + updatedAt: "更新", + clickToViewFull: "点击卡片查看全文与分段", characters: "字符", segment: "片段", chunkCount: "共 {count} 个片段", diff --git a/frontend/src/views/agent/AgentList.vue b/frontend/src/views/agent/AgentList.vue index a17426b2..78a68170 100644 --- a/frontend/src/views/agent/AgentList.vue +++ b/frontend/src/views/agent/AgentList.vue @@ -874,8 +874,8 @@ defineExpose({ diff --git a/frontend/src/views/organization/OrganizationList.vue b/frontend/src/views/organization/OrganizationList.vue index e7f21fe6..af9dd133 100644 --- a/frontend/src/views/organization/OrganizationList.vue +++ b/frontend/src/views/organization/OrganizationList.vue @@ -1201,8 +1201,8 @@ onUnmounted(() => {