Skip to content

feat: add DependencyGraph and configurable graph controls - #46

Merged
NWYLZW merged 2 commits into
mainfrom
feat/dependency-graph
Oct 29, 2026
Merged

NWYLZW merged 2 commits into
mainfrom
feat/dependency-graph

Conversation

@NWYLZW

@NWYLZW NWYLZW commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds DependencyGraph for skill trees, technology trees and synthesis recipes. Nodes are laid out automatically, dependency paths can be highlighted, and custom renderers can own the complete node surface for image nodes or Flip cards. Node/edge anchors use normalized coordinates, with edge-specific overrides.

NodeGraph and DependencyGraph now allow individual viewport buttons to be hidden, custom actions to be appended and the toolbar to be positioned. Initial fitting completes before visible-node culling is enabled. The package exports and optional stylesheet include the new component.

Validation

Tested commit: c05502dc749550162842e32edff86b7a372b5162; base: fbe25a47085c77e088781328eb17019d24b7204c. The worktree was clean during validation.

  • npm run check:repository passed.
  • npm run build passed; this result is reused for unchanged shipped sources after the package-boundary test-only follow-up.
  • node --test packages/inkra/test/node-graph.test.mjs packages/inkra/test/package-boundaries.test.mjs: 7 passed, 0 failed, 0 skipped, using Node 24.19.0 / React 19.3.1 on macOS arm64 at the exact committed head.
  • The first CI run found the old fixed export count (282). The boundary contract now expects the four new exports (286 total), verifies their identities and verifies that the optional DependencyGraph CSS includes its NodeGraph canvas rules. The failed result was fixed, not exempted.
  • The local documentation used an installed package archive for the synthesis, custom controls and Flip interactions. Those manual checks are not claimed as a CI browser-suite exemption or mobile-device acceptance.

Required package/installed-consumer checks and all other selected component tests remain enabled. This PR does not publish npm; the documentation deployment will pin the merged source candidate.

{
  "schemaVersion": 1,
  "tested_commit": "c05502dc749550162842e32edff86b7a372b5162",
  "base_commit": "fbe25a47085c77e088781328eb17019d24b7204c",
  "local_passed": [
    {
      "group": "component:node-graph",
      "environments": ["node24-react19.3.1"],
      "evidence": "https://github.com/inkrajs/inkra/pull/46#validation",
      "reason": "The exact committed head passed all five NodeGraph tests locally on Node 24 / React 19; retain Node 22 / React 18 and other required checks."
    },
    {
      "group": "component:package-boundaries",
      "environments": ["node24-react19.3.1"],
      "evidence": "https://github.com/inkrajs/inkra/pull/46#validation",
      "reason": "Both package-boundary tests passed after updating the API inventory and checking the new public identities and optional CSS; this supersedes the fixed-count failure."
    }
  ]
}

@NWYLZW
NWYLZW merged commit cdeda34 into main Oct 29, 2026
3 of 5 checks passed
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