feat: add SQL library panel with folder/file management, rename, and sync support
This commit is contained in:
1 parent
d7a8f5d285
commit
9ffa4c41d9
26 files changed
+711
-352
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user