Enhance metadata display and refine item readiness status in LibraryManager

This commit is contained in:
2026-06-15 02:05:23 +02:00
parent d7cf6f3fc4
commit 55a4e7ce28
2 changed files with 51 additions and 1 deletions

View File

@@ -13,13 +13,18 @@ function itemSyncMeta(item) {
const progress = Math.max(0, Math.min(100, Number(sync.progress) || 0))
const detail = String(sync.detail || '').trim()
const enrichEnabled = !!item?.enrich_enabled
const metadataReady = ['ready', 'fallback'].includes(item?.metadata?.status)
if (status === 'ready') {
return {
status,
progress: 100,
label: 'Available',
detail: detail || (enrichEnabled ? 'Ready with standard metadata and deep enrichment.' : 'Ready with standard metadata.')
detail: detail || (
metadataReady
? (enrichEnabled ? 'Ready with standard metadata and deep enrichment.' : 'Ready with standard metadata.')
: 'Ready for chat. Automatic metadata has not been generated yet.'
)
}
}
if (status === 'failed') {