diff --git a/src/App.jsx b/src/App.jsx
index 169aaf2..e5be447 100644
--- a/src/App.jsx
+++ b/src/App.jsx
@@ -1670,7 +1670,7 @@ async function createNewChat() {
{library.name}
{chatLibrarySlug === library.slug &&
Chat
}
- {pendingChatLibrarySlug === library.slug &&
Preparing
}
+ {isLibrarySyncing(library.slug) &&
Syncing
}
@@ -1766,9 +1766,9 @@ async function createNewChat() {
<>
Chat - {chatSessions.find(s => s.session_id === activeSessionId)?.name || 'New Chat'}
- {chatAttachmentLibrary && (
+ {chatLibrary && (
- {chatLibrary ? `DB: ${chatLibrary.name}` : `DB: ${chatAttachmentLibrary.name} (preparing)`}
+ {`DB: ${chatLibrary.name}${chatLibraryStatusSuffix}`}
)}
@@ -1891,6 +1891,74 @@ async function createNewChat() {
placeholder="Ask any question..."
maxRows={13}
/>
+
+
+ {isDbPickerOpen && (
+
+
+ {libraries.length === 0 ? (
+
No databases yet.
+ ) : (
+ libraries.map(library => {
+ const selected = chatLibrarySlug === library.slug
+ const syncing = isLibrarySyncing(library.slug)
+ const status = !library.files?.length
+ ? 'Empty'
+ : library.states?.is_indexed
+ ? 'Ready'
+ : syncing
+ ? 'Syncing'
+ : 'Needs sync'
+
+ return (
+
+ )
+ })
+ )}
+
+ )}
+