feat(elasticsearch): model indices as first-class nodes

This commit is contained in:
t8y2 committed 2026-06-11 12:52:47 +08:00
1 parent 6f253abe55
commit 26d714909e
15 files changed
+146 -38

No files matched your search

@@ -84,6 +84,9 @@ function schemaMatches(node: TreeNode, schema: string | undefined): boolean {
export function matchesTarget(node: TreeNode, target: ActiveTabSidebarTarget): boolean {
if (target.type === "mongo-collection") {
if (node.type === "elasticsearch-index") {
return node.connectionId === target.connectionId && node.label === target.collectionName;
}
return node.type === "mongo-collection" && node.connectionId === target.connectionId && node.database === target.database && node.label === target.collectionName;
}