feat(ui): add organic human-cell biological membranes & real-time elastic stretch physics - #105
hassanafridi wants to merge 1 commit into
Conversation
cell membrane based file view and small UI tweaking
|
@hassanafridi is attempting to deploy a commit to the braedonsaunders' projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for sending this. The elastic membrane / stretch hull idea is interesting, but I can't take this PR as written. A few blockers:
If you want to open a follow-up, keep it to the membrane helpers plus wiring into |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved moderate issues remain across performance, theming, accessibility, geometry, and package metadata.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 4
Open (5)
What changed in this PR
Adds organic membrane rendering, elastic drag behavior, UI styling updates, and CLI branding changes.
Changes:
- Adds membrane and stretch-bridge geometry.
- Integrates live hull redraws during dragging.
- Refreshes themes, responsive styling, and package/CLI metadata.
| File | Summary and findings |
|---|---|
package.json |
CLI metadata; duplicate codeflow bin key (moderate, 4 votes). |
index.html |
Membrane physics, drag integration, and UI refresh. Findings cover light-theme contrast (2 moderate, 1 vote each), fallback double-padding (moderate, 1), drag performance (moderate, 4), reduced motion (moderate, 4), missing geometry tests (nit, 3), toolbar theming (moderate, 2), and code-view drag updates (moderate, 1). |
cli/codeflow.mjs |
CLI branding updates; no findings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| animation:cyber-pulse 2s infinite ease-out; | ||
| } |
| display:flex; | ||
| gap:4px; | ||
| z-index:50; | ||
| background:rgba(9,14,24,0.88); |
| @@ -12159,17 +13765,20 @@ | |||
| if(codeViewDragShouldDrawMinimap('move')&&drawMinimapRef.current)drawMinimapRef.current(); | |||
| return; | |||
| } | |||
| if(updateHullsRef.current)updateHullsRef.current(); | |||
| "codeflow": "./cli/codeflow.mjs", | ||
| "codeflow": "./cli/codeflow.mjs" |
| @@ -12240,6 +13849,197 @@ | |||
| }); | |||
| return grouped; | |||
| } | |||
| var cellCurveGen=d3.line().curve(d3.curveCatmullRomClosed.alpha(0.5)); | |||


Summary & Motivation
This PR introduces an Organic Human-Cell Biological Membrane visualization for file clusters in the codebase graph, replacing rigid, geometric convex hulls with dynamic, fluid cellular boundaries inspired by biological cell membranes and amoebic pseudopodia.
Why this change?
📸 Visual Showcase
🔬 Key Features & Technical Details
1. Organic Cellular Morphology (
buildHumanCellMembrane)d3.curveCatmullRomClosed.alpha(0.5)sampling circle perimeters (samples = 16) around each constituent file node to synthesize seamless, organic continuous curves without sharp polygonal vertices.2. Elastic Stretch & Dynamic Waist Tapering (
buildStretchedClusterPath)minDist > rSum * 1.15), the algorithm calculates the surface tension based on distance. The waist radius (waistR) dynamically narrows and thins:buildTwoCellBridge): Specialized connector topology for 2-node relationships with smooth bilateral neck pinching.3. Real-Time Zero-Latency Drag Updates
updateHullsRef.current()directly into the D3 drag lifecycle (drag.on('drag')).4. Bioluminescent Styling
fill-opacity: 0.08), soft glowing border strokes (stroke-width: 2.5), and coordinated colored drop shadows (drop-shadow: 0 0 8px ${color}55) matching the folder's color scheme.🧪 How to Test & Review
codeflow.Open.Source.Architecture.Intelligence.-.Avast.Secure.Browser.2026-09-25.19-32-31.mp4