diff --git a/e2e/playwright/debug-pane.spec.ts b/e2e/playwright/debug-pane.spec.ts index 3d7cf111a..1b1a2bec5 100644 --- a/e2e/playwright/debug-pane.spec.ts +++ b/e2e/playwright/debug-pane.spec.ts @@ -38,14 +38,14 @@ test.describe('Debug pane', () => { // Set the code in the code editor. await u.codeLocator.click() await page.keyboard.type(code, { delay: 0 }) - // Scroll to the feature tree. + // Scroll to the artifact graph. await tree.scrollIntoViewIfNeeded() - // Expand the feature tree. - await tree.getByText('Feature Tree').click() + // Expand the artifact graph. + await tree.getByText('Artifact Graph').click() // Just expanded the details, making the element taller, so scroll again. await tree.getByText('Plane').first().scrollIntoViewIfNeeded() }) - // Extract the artifact IDs from the debug feature tree. + // Extract the artifact IDs from the debug artifact graph. const initialSegmentIds = await segment.innerText({ timeout: 5_000 }) // The artifact ID should include a UUID. expect(initialSegmentIds).toMatch( diff --git a/src/components/DebugFeatureTree.tsx b/src/components/DebugArtifactGraph.tsx similarity index 81% rename from src/components/DebugFeatureTree.tsx rename to src/components/DebugArtifactGraph.tsx index b4bd1b80c..07ed9d5eb 100644 --- a/src/components/DebugFeatureTree.tsx +++ b/src/components/DebugArtifactGraph.tsx @@ -4,18 +4,18 @@ import { expandPlane, PlaneArtifactRich } from 'lang/std/artifactGraph' import { ArtifactGraph } from 'lang/wasm' import { DebugDisplayArray, GenericObj } from './DebugDisplayObj' -export function DebugFeatureTree() { - const featureTree = useMemo(() => { +export function DebugArtifactGraph() { + const artifactGraphTree = useMemo(() => { return computeTree(engineCommandManager.artifactGraph) }, [engineCommandManager.artifactGraph]) const filterKeys: string[] = ['__meta', 'codeRef', 'pathToNode'] return (
- Feature Tree - {featureTree.length > 0 ? ( + Artifact Graph + {artifactGraphTree.length > 0 ? (
-          
+          
         
) : (

(Empty)

diff --git a/src/components/ModelingSidebar/ModelingPanes/DebugPane.tsx b/src/components/ModelingSidebar/ModelingPanes/DebugPane.tsx index c98810ded..99c4a0166 100644 --- a/src/components/ModelingSidebar/ModelingPanes/DebugPane.tsx +++ b/src/components/ModelingSidebar/ModelingPanes/DebugPane.tsx @@ -1,4 +1,4 @@ -import { DebugFeatureTree } from 'components/DebugFeatureTree' +import { DebugArtifactGraph } from 'components/DebugArtifactGraph' import { AstExplorer } from '../../AstExplorer' import { EngineCommands } from '../../EngineCommands' import { CamDebugSettings } from 'clientSideScene/ClientSideSceneComp' @@ -14,7 +14,7 @@ export const DebugPane = () => { - +