Milvus supports multiple databases, but the sidebar only ever showed collections under the hardcoded "default" database. The backend returned ["default"] for every vector store and the frontend loaded collections for a single database and flattened them under the connection node. - Backend (vector_driver): add list_databases() that calls Milvus /v2/vectordb/databases/list (falling back to "default" for older Milvus and for non-Milvus vector stores), and thread a database parameter through find_documents() instead of hardcoding "default". - document_ops: list_databases_core delegates VectorDb to list_databases(); find_documents_core forwards the selected database. - Frontend: add a "vector-database" tree node type. For Milvus, connections expand into database nodes, which expand into their own collections. Collection node ids are namespaced by database to avoid collisions across databases, and the collection id is stored in meta so activation no longer parses the node id. Fixes #2693 Co-authored-by: 朱豪豪 <zhu.hh.sz@belle.com.cn>
Desktop Library Layout
src/lib is organized by product/runtime domain. Keep implementation modules inside a domain folder instead of adding new files at the root.
backend: Tauri, HTTP, platform, storage, and transport bridges.common: generic helpers with no DBX feature ownership.app,tabs,sidebar,connection: shell, navigation, and connection UI state helpers.database,metadata,schema,table: relational database metadata, capabilities, DDL, and table-object helpers.sql,sql/semantic,editor,query,history,savedSql: SQL editing, execution, diagnostics, history, and saved SQL behavior.dataGrid: result/grid rendering, editing, previews, pagination, and export helpers tied to the grid.ai,mcp: AI assistant and MCP configuration helpers.redis,mongo,elasticsearch,etcd,kv,mq,nacos,zookeeper,webdav: non-relational or service-specific helpers.diagram,document,export,imports: feature-specific utilities that are shared by more than one component.
Tests under src/lib/__tests__ mirror the same domain folders. When moving a module, update both runtime imports and colocated tests so stale root-level aliases do not return.