Skip to content

Animate Code-view active-file dependency links - #99

Merged
braedonsaunders merged 6 commits into
mainfrom
cursor/code-view-link-motion-1a06
Sep 1, 2026
Merged

Animate Code-view active-file dependency links#99
braedonsaunders merged 6 commits into
mainfrom
cursor/code-view-link-motion-1a06

Conversation

@braedonsaunders

@braedonsaunders braedonsaunders commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Last leftover from #82: when a file is selected in Code view, its incident dependency edges now move like the 3D Graph linkDirectionalParticles treatment.

What this does

  • Selected-adjacent Code (and shared Graph force) links get brighter orange (outgoing) / purple (incoming) strokes plus traveling white SVG dash particles.
  • Non-incident edges dim and stay static.
  • Clearing the selection returns links to the quiet baseline.
  • The existing Thickness 1–6 slider still drives stroke width. No new runtime deps.
  • prefers-reduced-motion: reduce keeps the orange/purple highlight but turns off continuous animation.

Helpers (forceLinkVisual, forceLinkRole, prefersReducedMotion) live in the existing canvas block so tests/code-canvas.test.mjs can cover active vs inactive vs reduced-motion without a DOM.

Cards, hulls, minimap, color blocks, root gate, and CLI diff paint are untouched.

Test plan

  • node --test tests/code-canvas.test.mjs (new helper cases)
  • node --test tests/*.test.mjs tests/*.smoke.js
  • Open index.html, analyze a small fixture, switch to Code, click a card: incident edges move, others stay quiet
  • Click empty canvas: motion stops
  • Move Thickness 1–6: width still applies
  • Reduced-motion: static highlight only
Open in Web Open in Cursor 

Incident edges pick up the 3D Graph orange/purple particle treatment
via SVG dash motion. Inactive edges stay dim; reduced-motion users
get a static highlight. Line thickness 1-6 is unchanged.

Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
codeflow Ready Ready Preview Sep 1, 2026 10:19pm UTC

Request Review

Same-color dashes on the orange/purple base were invisible. Beads
now use a lighter highlight so the 3D-style motion reads on Code
and Graph force edges.

Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
@braedonsaunders

Copy link
Copy Markdown
Owner Author

@codex review

@braedonsaunders
braedonsaunders marked this pull request as ready for review September 1, 2026 20:53
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T22:13:58.053530Z 434b431 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e564975eaa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread index.html Outdated
Comment thread index.html Outdated
When prefers-reduced-motion flips on a live page, hide .is-on
particles instead of stripping their dash pattern into a solid
white overlay. Simulation ticks now skip particle d updates
unless a selection is animating, and only rewrite .is-on paths.

Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
@braedonsaunders

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 434b431a0b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread index.html Outdated
Comment thread index.html Outdated
Toggling prefers-reduced-motion now re-runs Code-view link visuals so particles come back after a static selection. Graph selection keeps its prior accent highlight instead of inheriting Code particles.

Co-authored-by: Braedon Saunders <braedonsaunders@users.noreply.github.com>
@braedonsaunders
braedonsaunders merged commit 8bf5d91 into main Sep 1, 2026
5 checks passed
@braedonsaunders
braedonsaunders deleted the cursor/code-view-link-motion-1a06 branch September 1, 2026 22:32
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.

2 participants