feat(frontend): consolidate KB metadata into an info popover
Replace the inline meta strip on the knowledge base detail header (role tag · share source · last updated · vector store badge) and the vector-store engine badge on the list cards with a single structured "info" popover next to the settings button. The popover groups Basic, Access, Capabilities, Chunking, Stats and Storage Binding into separate sections, only rendering those with data. A warning dot on the info button surfaces unreachable vector-store bindings without occupying header real estate. The popover caps at min(70vh, 560px) with an internal scrolling body so it never overflows the viewport. Hide the last-updated row when it equals created_at, since GORM only bumps KB.updated_at on metadata edits — never on document uploads — so surfacing two identical timestamps next to "created at" was misleading. Once the KB metadata is actually edited the row reappears naturally. i18n entries added for zh-CN, en-US, ko-KR, ru-RU.
This commit is contained in:
@@ -83,6 +83,28 @@ export default {
|
||||
sharedAt: 'Shared at',
|
||||
lastUpdated: 'Last updated',
|
||||
},
|
||||
infoCard: {
|
||||
tooltip: 'View knowledge base info',
|
||||
title: 'Knowledge Base Info',
|
||||
basic: 'Basic',
|
||||
access: 'Access',
|
||||
binding: 'Storage Binding',
|
||||
capabilities: 'Capabilities',
|
||||
stats: 'Statistics',
|
||||
type: 'Type',
|
||||
createdAt: 'Created at',
|
||||
source: 'Source',
|
||||
sharedTo: 'Shared to',
|
||||
enabled: 'Enabled',
|
||||
vectorStore: 'Vector store',
|
||||
fileStorage: 'File storage',
|
||||
documentCount: 'Documents',
|
||||
faqCount: 'FAQs',
|
||||
supportedFileTypes: 'Accepted formats',
|
||||
chunking: 'Chunking',
|
||||
parentShort: 'parent',
|
||||
childShort: 'child',
|
||||
},
|
||||
create: 'Create Knowledge Base',
|
||||
edit: 'Edit Knowledge Base',
|
||||
delete: 'Delete Knowledge Base',
|
||||
|
||||
Reference in New Issue
Block a user