Skip to content

fix(parser): exclude layer_name from nodeAttributeNames#65

Merged
shainova merged 1 commit into
mainfrom
fix/exclude-layer-name-from-node-attrs
May 21, 2026
Merged

fix(parser): exclude layer_name from nodeAttributeNames#65
shainova merged 1 commit into
mainfrom
fix/exclude-layer-name-from-node-attrs

Conversation

@shainova
Copy link
Copy Markdown
Member

Summary

  • Every node object carries layer_name as the structural pointer to its layer
    (used to build stateNodeMap, nodesPerLayer, etc.), but it was leaking into
    the colour-by / size-by dropdowns.
  • The exclusion list on js/dataParser.js:134 was missing 'layer_name' — the
    state-node line (135) and layer line (137) already had it.
  • One-line fix; regression assertion added to test 6.1 in tests/dataParser.test.js.

Test plan

  • npm test — all 225 vitest unit tests pass
  • Open any built-in dataset and confirm the Node colour-by / size-by dropdowns
    no longer list layer_name

Every node object carries layer_name as the structural pointer to its
layer (used to build stateNodeMap, nodesPerLayer, etc.). It was leaking
into the colour-by / size-by dropdowns because the exclusion list in
parseMultilayerData was missing it — state-node and layer extraction
already excluded it, only the node-attribute line had the omission.

Test 6.1 in dataParser.test.js gains a regression assertion.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@shainova shainova merged commit 51c7afd into main May 21, 2026
2 checks passed
@shainova shainova deleted the fix/exclude-layer-name-from-node-attrs branch May 21, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant