* feat: add browser pane element picker Port the browser pane from PR #198 and route picked elements through workspace attachments so the context follows every agent composer in a workspace. Co-authored-by: Jason Kneen <jason.kneen@bouncingfish.com> * docs: document electron platform overlays * fix: harden browser pane navigation * fix: polish browser tab interactions * fix: route browser pane focus shortcuts --------- Co-authored-by: Jason Kneen <jason.kneen@bouncingfish.com>
30 lines
791 B
TypeScript
30 lines
791 B
TypeScript
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,
|
|
focusPane: expect.any(Function),
|
|
});
|
|
expect(
|
|
createPaneFocusContextValue({
|
|
isWorkspaceFocused: false,
|
|
isPaneFocused: true,
|
|
}),
|
|
).toEqual({
|
|
isWorkspaceFocused: false,
|
|
isPaneFocused: true,
|
|
isInteractive: false,
|
|
focusPane: expect.any(Function),
|
|
});
|
|
});
|
|
});
|