Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

fix(explorer): review follow-ups for #830 render-loop fix

KaifAhmad15cd4407e57ad
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 18a246fb..6122e91b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,11 +30,18 @@ jobs:
node-version: '20'
cache: 'npm'
cache-dependency-path: explorer/package-lock.json
- - name: Build Explorer frontend
+ - name: Install Explorer frontend dependencies
+ working-directory: explorer
+ run: npm ci
+ - name: Test Explorer frontend
working-directory: explorer
run: |
- npm ci
- npm run build
+ npm run test:graph-store
+ npm run test:graph-workspace
+ npm run test:plugin-registry
+ - name: Build Explorer frontend
+ working-directory: explorer
+ run: npm run build
- run: pip install build
- run: python -m build
- name: Verify Explorer frontend is packaged
diff --git a/explorer/src/workspaces/GraphWorkspace/GraphWorkspace.tsx b/explorer/src/workspaces/GraphWorkspace/GraphWorkspace.tsx
index 4aa36e7a..df2cd6ec 100644
--- a/explorer/src/workspaces/GraphWorkspace/GraphWorkspace.tsx
+++ b/explorer/src/workspaces/GraphWorkspace/GraphWorkspace.tsx
@@ -2323,7 +2323,11 @@ export function GraphWorkspace({ externalFocusNodeId, externalFocusToken }: Grap
const structureLayerChanged =
prev.structureLayer?.cacheKey !== diagnostics.structureLayer?.cacheKey ||
prev.structureLayer?.lastDrawAt !== diagnostics.structureLayer?.lastDrawAt ||
- prev.structureLayer?.enabled !== diagnostics.structureLayer?.enabled;
+ prev.structureLayer?.enabled !== diagnostics.structureLayer?.enabled ||
+ prev.structureLayer?.disabledReason !== diagnostics.structureLayer?.disabledReason ||
+ prev.structureLayer?.curveCount !== diagnostics.structureLayer?.curveCount ||
+ prev.structureLayer?.bridgeCurveCount !== diagnostics.structureLayer?.bridgeCurveCount ||
+ prev.structureLayer?.backboneCurveCount !== diagnostics.structureLayer?.backboneCurveCount;
// distanceVisual is compared by reference: GraphCanvas passes the same
// object when distances haven't changed.