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:
@@ -326,6 +326,28 @@ export default {
|
||||
sharedAt: 'Дата общего доступа',
|
||||
lastUpdated: 'Последнее обновление'
|
||||
},
|
||||
infoCard: {
|
||||
tooltip: 'Просмотр информации о базе знаний',
|
||||
title: 'Информация о базе знаний',
|
||||
basic: 'Основное',
|
||||
access: 'Доступ',
|
||||
binding: 'Привязка хранилища',
|
||||
capabilities: 'Возможности',
|
||||
stats: 'Статистика',
|
||||
type: 'Тип',
|
||||
createdAt: 'Создано',
|
||||
source: 'Источник',
|
||||
sharedTo: 'Общий доступ',
|
||||
enabled: 'Включено',
|
||||
vectorStore: 'Векторное хранилище',
|
||||
fileStorage: 'Файловое хранилище',
|
||||
documentCount: 'Документы',
|
||||
faqCount: 'FAQ',
|
||||
supportedFileTypes: 'Допустимые форматы',
|
||||
chunking: 'Разделение',
|
||||
parentShort: 'родитель',
|
||||
childShort: 'потомок',
|
||||
},
|
||||
addDocument: 'Добавить документ',
|
||||
createdAt: 'Создано',
|
||||
updatedAt: 'Обновлено',
|
||||
|
||||
Reference in New Issue
Block a user