feat: add SQL library panel with folder/file management, rename, and sync support

This commit is contained in:
t8y2 committed 2026-06-10 02:46:10 +08:00
1 parent d7a8f5d285
commit 9ffa4c41d9
26 files changed
+711 -352

No files matched your search

+2 -5
View File
@@ -31,12 +31,9 @@ export function sortSidebarTreeChildrenForParent(
}
if (parent.type === "connection") {
const savedSqlRoots = normalized.filter((child) => child.type === "saved-sql-root");
const userAdminNodes = normalized.filter((child) => child.type === "user-admin");
const regularChildren = normalized.filter(
(child) => child.type !== "saved-sql-root" && child.type !== "user-admin",
);
const withConnectionUtilityOrder = (children: TreeNode[]) => [...savedSqlRoots, ...children, ...userAdminNodes];
const regularChildren = normalized.filter((child) => child.type !== "user-admin");
const withConnectionUtilityOrder = (children: TreeNode[]) => [...children, ...userAdminNodes];
if (databaseType === "mongodb" || databaseType === "elasticsearch") {
return withConnectionUtilityOrder(sortByLabel(regularChildren));