feat: add connection group management and sidebar layout persistence

This commit is contained in:
t8y2
2026-05-04 13:52:42 +08:00
parent 1818cd3b78
commit bc7f521604
13 changed files with 1187 additions and 53 deletions
+16 -1
View File
@@ -80,12 +80,27 @@ export interface QueryResult {
}
export type TreeNodeType =
| "connection" | "database" | "schema" | "table" | "view"
| "connection" | "connection-group" | "database" | "schema" | "table" | "view"
| "group-columns" | "group-indexes" | "group-fkeys" | "group-triggers"
| "column" | "index" | "fkey" | "trigger"
| "redis-db"
| "mongo-db" | "mongo-collection";
export interface ConnectionGroup {
id: string;
name: string;
collapsed: boolean;
}
export type SidebarOrderEntry =
| { type: "group"; id: string; connectionIds: string[] }
| { type: "connection"; id: string };
export interface SidebarLayout {
groups: ConnectionGroup[];
order: SidebarOrderEntry[];
}
export interface TreeNode {
id: string;
label: string;