diff --git a/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts b/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts index 3a8be845..360931cd 100644 --- a/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts +++ b/web/hwlab-cloud-web/scripts/agent-observer-ui-contract.test.ts @@ -11,6 +11,7 @@ import { const viewSource = readSource("../src/views/agents/AgentRunsView.vue"); const inspectorSource = readSource("../src/components/agents/AgentRunInspector.vue"); const inspectorPanelSource = readSource("../src/components/console/InspectorPanel.vue"); +const mindMapSource = readSource("../src/components/agents/AgentRunMindMap.vue"); const virtualGridSource = readSource("../src/components/common/VirtualGrid.vue"); const styleSource = readSource("../src/styles/agent-observer.css"); @@ -88,6 +89,19 @@ test("AgentRun mind map always owns the flexible tree row", () => { assert.match(styleSource, /agent-observer-tree > \.agent-mind-map \{ grid-row: -2 \/ -1; \}/); }); +test("AgentRun mind map connects custom nodes through Vue Flow handles", () => { + assert.match(mindMapSource, /import \{ Handle, MarkerType, Position, VueFlow/); + assert.match(mindMapSource, //); + assert.match(mindMapSource, //); + assert.match(styleSource, /agent-mind-map-flow \.vue-flow__handle/); +}); + +test("AgentRun inspector keeps chrome fixed and scrolls only its body", () => { + assert.match(styleSource, /agent-observer-inspector \{[^}]*overflow: hidden;/); + assert.match(styleSource, /agent-observer-inspector > \.operations-inspector-panel \{[^}]*grid-template-rows: auto auto minmax\(0, 1fr\) auto;/); + assert.match(styleSource, /agent-observer-inspector \.operations-inspector-body \{[^}]*overflow: auto;/); +}); + function readSource(relativePath: string): string { return readFileSync(new URL(relativePath, import.meta.url), "utf8"); } diff --git a/web/hwlab-cloud-web/src/components/agents/AgentRunMindMap.vue b/web/hwlab-cloud-web/src/components/agents/AgentRunMindMap.vue index 3c0a20fd..ee801755 100644 --- a/web/hwlab-cloud-web/src/components/agents/AgentRunMindMap.vue +++ b/web/hwlab-cloud-web/src/components/agents/AgentRunMindMap.vue @@ -1,7 +1,7 @@