fix(sidebar): stop sticky headers at connection boundaries

Closes #9996
This commit is contained in:
t8y2 committed 2026-09-26 02:26:53 +08:00
1 parent cc456c3d4f
commit 6e3709c73b
5 files changed
+46 -48

No files matched your search

@@ -55,6 +55,9 @@ describe("createFlatTreeIndex", () => {
expect(index.nextSchemaContainerIndexByIndex[2]).toBe(4);
expect(index.nextSchemaContainerIndexByIndex[4]).toBe(-1);
expect(index.nextSchemaContainerIndexByIndex[9]).toBe(-1);
expect(index.nextBoundaryIndexByIndex[1]).toBe(8);
expect(index.nextBoundaryIndexByIndex[6]).toBe(8);
expect(index.nextBoundaryIndexByIndex[9]).toBe(-1);
});
it("keeps indexes isolated across connections without database containers", () => {
@@ -65,6 +68,7 @@ describe("createFlatTreeIndex", () => {
expect(index.stickyContainerIndexByIndex[2]).toBe(1);
expect(index.stickyContainerIndexByIndex[4]).toBe(-1);
expect(index.nextSchemaContainerIndexByIndex[1]).toBe(-1);
expect(index.nextBoundaryIndexByIndex[1]).toBe(3);
expect(index.flatNodeIndexById.get("table-b")).toBe(4);
});