Skip to content

Graph PR-B: clean (non-overlapping) demo seed spacing + force reseed#63

Merged
mvalancy merged 1 commit into
developfrom
feat/hierarchy-seed-spacing
Jun 14, 2026
Merged

Graph PR-B: clean (non-overlapping) demo seed spacing + force reseed#63
mvalancy merged 1 commit into
developfrom
feat/hierarchy-seed-spacing

Conversation

@mvalancy

Copy link
Copy Markdown
Member

The demo sub-graphs were seeded on a 140px grid — under the ~224px card collision diameter — so they loaded as overlapping piles.

  • hierarchyDemo.ts: sub-graph spacing 140 → 260 (> collision diameter) → non-overlapping on load, zero physics cost (important for the 1000-node Compute Core showcase). Nodes stay pinned (no drift).
  • create-hierarchy-demo --force: tears down the existing demo (edges → work items → graphs, so no orphan edges) and recreates it, to apply the spacing fix to an already-seeded DB.

Pairs with PR-A (one-shot physics): PR-A's Organize/auto-layout cleans any graph; PR-B makes the canonical demo clean by construction so it never needs organizing.

Verified: reseeded the dev DB (17 graphs / 2911 items / 4073 edges); a 90-node sub-graph has 0 overlapping card pairs; THE GATE 5/5.

🤖 Generated with Claude Code

…ed (PR-B)

The demo sub-graphs were laid out on a 140px grid — far under the node-card
collision diameter (~224px) — so they loaded as overlapping "garbage piles".

- hierarchyDemo.ts: sub-graph grid spacing 140 -> 260 (> collision diameter),
  so the seeded layout is non-overlapping on load with zero physics cost
  (matters for the 1000-node showcase). Nodes stay placed/pinned (no drift).
- create-hierarchy-demo --force: deletes the existing demo (edges -> work items
  -> graphs, in order, so no orphan edges) and recreates it, so the spacing fix
  can be applied to an already-seeded DB.

Verified: reseeded (17 graphs / 2911 items / 4073 edges); a 90-node sub-graph
has 0 overlapping card pairs; THE GATE 5/5.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🧪 Comprehensive Test Suite

  • Unit suites (Node 18.x & 20.x) — core, web, server, mcp-server: ✅ passed
  • Installer & deploy config: ✅ passed

Full-stack smoke gate runs in the CI workflow.

@mvalancy mvalancy merged commit ee97656 into develop Jun 14, 2026
16 checks passed
@mvalancy mvalancy deleted the feat/hierarchy-seed-spacing branch June 14, 2026 19:03
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