Improve workspace navigation and render isolation

This commit is contained in:
Mohamed Boudra
2026-04-20 16:14:22 +07:00
parent 403fb03c97
commit a6423f7f0a
46 changed files with 2801 additions and 862 deletions
@@ -0,0 +1,27 @@
import { describe, expect, it } from "vitest";
import { createPaneFocusContextValue } from "@/panels/pane-context";
describe("createPaneFocusContextValue", () => {
it("derives interactivity from both workspace and pane focus", () => {
expect(
createPaneFocusContextValue({
isWorkspaceFocused: true,
isPaneFocused: true,
}),
).toEqual({
isWorkspaceFocused: true,
isPaneFocused: true,
isInteractive: true,
});
expect(
createPaneFocusContextValue({
isWorkspaceFocused: false,
isPaneFocused: true,
}),
).toEqual({
isWorkspaceFocused: false,
isPaneFocused: true,
isInteractive: false,
});
});
});