Skip to content

graph energy flow on active branch v0.6.0-rc.0#12

Merged
opariffazman merged 13 commits into
mainfrom
feat/graph-energy-flow
May 29, 2026
Merged

graph energy flow on active branch v0.6.0-rc.0#12
opariffazman merged 13 commits into
mainfrom
feat/graph-energy-flow

Conversation

@opariffazman

Copy link
Copy Markdown
Owner

Summary

  • energy flow: cyan dots stream root → HEAD along active branch first-parent chain
  • pure module src/graph/flow.ts: builds combined Bézier path, headless-tested (11 cases)
  • SVG SMIL: animateMotion dots ride invisible guide path; {#key activeFlow.d} remounts on HEAD move (SMIL snapshots path at start)
  • reduced-motion: static cyan stroke instead of dots; layer aria-hidden + pointer-events="none"
  • mpath carries both xlink:href + href (Safari compat)
  • edgePath DRY'd onto shared cubicSegment helper
  • bundles spec + plan docs

Test Plan

  • dots stream root → HEAD on main, speed even
  • new commit extends flow, no stale path (remount)
  • detached HEAD ends flow at that commit; merge follows first parent only
  • click commit a dot passes over still checks out (pointer-events none)
  • prefers-reduced-motion → static stroke, zero dots
  • empty + single-commit repo → no dots, no console errors

🤖 Generated with Claude Code

opariffazman and others added 9 commits May 29, 2026 00:20
Design for a continuous stream of glowing dots traveling the first-parent
chain root -> HEAD, with reduced-motion fallback and a headless-testable
pure path-builder module.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add known-risks section and tighten the renderer spec: remount SMIL on
path change, xlink:href for mpath, pointer-events/aria-hidden on dots,
phantom-node guard, and the non-uniform-speed caveat.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Two-task TDD plan: pure flow-path builder module with headless tests,
then SMIL animateMotion rendering in Graph.svelte with reduced-motion
fallback and manual browser verification checklist.

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

github-actions Bot commented May 29, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-29 00:57 UTC

opariffazman and others added 4 commits May 29, 2026 08:29
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Double per-segment duration (0.6s → 1.2s) for a calmer flow.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Per-segment duration 1.2s → 2.4s.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@opariffazman
opariffazman merged commit 3d1c07a into main May 29, 2026
3 checks passed
@opariffazman
opariffazman deleted the feat/graph-energy-flow branch May 29, 2026 00:57
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