Skip to content

feat: elastic cell membrane hulls with interactive drag stretching - #106

Open
hassanafridi wants to merge 1 commit into
braedonsaunders:mainfrom
hassanafridi:feature/cell-membrane-ui
Open

hassanafridi wants to merge 1 commit into
braedonsaunders:mainfrom
hassanafridi:feature/cell-membrane-ui

Conversation

@hassanafridi

Copy link
Copy Markdown

Summary

Follow-up to address feedback on the elastic membrane / stretch hull feature:

  • Branding preserved: All user-facing strings and product branding remain as canonical CodeFlow.
  • Zero drive-by styles: Reverted all unrelated CSS reformatting, glows, and shadow alterations.
  • package.json & CLI untouched: Completely reverted package.json (removed duplicate bin key) and cli/codeflow.mjs.
  • Strictly scoped diff: Confined entirely to:
    1. Catmull-Rom membrane spline calculation helpers (buildTwoCellBridge, buildStretchedClusterPath, buildHumanCellMembrane).
    2. Rendering the smooth membrane path inside updateHulls with the default canvas hull styling.
    3. Real-time updates wired into node.call(d3.drag()) (drag, paintCodeNodeDragFrame, end).

Verification

  • Tested interactive node drags and multi-node stretching in the canvas.
  • Ran test suite (node --test tests/code-canvas.test.mjs - 109/109 passed).

Copilot AI lite review requested due to automatic review settings September 25, 2026 15:57
@vercel

vercel Bot commented Sep 25, 2026

Copy link
Copy Markdown

@hassanafridi is attempting to deploy a commit to the braedonsaunders' projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown
Owner

Thanks for the focused follow-up. This hits what I asked for on #105: membrane helpers, updateHulls, and drag wiring only. No branding rename, no drive-by CSS, and package.json left alone.

I'll dig into the stretch math and the shift/alt change on sibling moves next. Holding for CI and Codex before anything merges.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Multiple moderate correctness and performance issues remain unresolved.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Adds elastic Catmull–Rom membrane hulls and real-time hull updates during interactive node dragging.

Changes:

  • Adds single-, paired-, and multi-node membrane geometry.
  • Renders smooth membrane hull paths.
  • Refreshes hulls throughout the drag lifecycle.
File Summary Review findings
index.html Implements membrane geometry, rendering, and drag-time updates. Remove redundant drag-frame and pre-settlement rebuilds; fix double padding and inverted bridge points; add focused geometry tests.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread index.html
scheduleCodeViewDragFrame(codeNodeDragFrame,requestAnimationFrame,paintCodeNodeDragFrame);
}
if(codeViewDragShouldDrawMinimap('move')&&drawMinimapRef.current)drawMinimapRef.current();
if(updateHullsRef.current)updateHullsRef.current();
Comment thread index.html
Comment on lines +12253 to +12255
if(d<=Math.abs(r1-r2)){
var bigger=r1>=r2?p1:p2;
return buildHumanCellMembrane([bigger]);
Comment thread index.html
Comment on lines +12405 to +12406
if(pts.length===2){
return buildTwoCellBridge(pts[0],pts[1]);

This branch has not been deployed

No deployments
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.

3 participants