refac/enh: knowledge base name on icon hover

This commit is contained in:
Timothy Jaeryang Baek 2025-11-26 21:33:27 -05:00
parent d1bbf6ba92
commit 3fe5a47050

View file

@ -121,6 +121,7 @@
...item,
type: 'collection'
}));
let collection_files =
knowledge.length > 0
? [
@ -139,7 +140,7 @@
.map((file) => ({
...file,
name: file?.meta?.name,
description: `${file?.collection?.name} - ${file?.collection?.description}`,
description: `${file?.collection?.description}`,
knowledge: true, // DO NOT REMOVE, USED TO INDICATE KNOWLEDGE BASE FILE
type: 'file'
}))
@ -218,7 +219,7 @@
content={item?.legacy
? $i18n.t('Legacy')
: item?.type === 'file'
? $i18n.t('File')
? `${item?.collection?.name} > ${$i18n.t('File')}`
: item?.type === 'collection'
? $i18n.t('Collection')
: ''}