Skip to content

Integrate the graph-layout crate into the editor to replace its node graph layout - #5007

Merged
TrueDoctor merged 11 commits into
masterfrom
graph-layout-editor
Nov 23, 2026
Merged

TrueDoctor merged 11 commits into
masterfrom
graph-layout-editor

Conversation

@TrueDoctor

@TrueDoctor TrueDoctor commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Fixes #4978

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 65 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread document/migrations/runner/src/node.rs Resolved
Comment thread document/migrations/formats/src/v5.rs Resolved
@TrueDoctor TrueDoctor changed the title Integrate graph-layout crate into the editor to replace existing layouting Integrate the graph-layout crate into the editor to replace its node graph layout Nov 23, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 12 files (changes from recent commits).

Confidence score: 4/5

  • downstream_consumer in document/migrations/runner/src/node.rs uses only the first consumer, so adding a node that feeds several existing nodes can give it the wrong relative offset. Account for all relevant consumers when calculating the offset.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="document/migrations/runner/src/node.rs">

<violation number="1" location="document/migrations/runner/src/node.rs:374">
P2: `downstream_consumer` uses only the first consumer in `edits.connections`. When an added node feeds several existing nodes, its relative offset is measured from that one consumer, while the editor measures stored offsets from the left-most reader. Consider basing the offset on the same reader set the editor uses, or document the first-consumer choice.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread document/migrations/runner/src/node.rs Resolved
@TrueDoctor
TrueDoctor added this pull request to the merge queue Nov 23, 2026
Merged via the queue into master with commit e420a87 Nov 23, 2026
16 checks passed
@TrueDoctor
TrueDoctor deleted the graph-layout-editor branch November 23, 2026 18:44

This branch was successfully deployed

1 active deployment
graphite-dev (Preview) — 624dfb2f Deployed Nov 23, 2026 by github-actions[bot]
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.

Node loses its grab point when dragged out of a Merge layer

2 participants