Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (24)
📝 WalkthroughWalkthroughThis pull request introduces a new CursorFollower component for flexible cursor rendering, refactors RocketCursor to leverage it, modernizes the build toolchain with tsup and Vitest, establishes GitHub Actions workflows for CI and release automation with version validation, enhances the demo with dual-cursor modes and comprehensive UI controls, and rewrites documentation with expanded API guidance. Changes
Sequence DiagramsequenceDiagram
participant User as User/Browser
participant Demo as Demo App
participant CF as CursorFollower
participant RC as RocketCursor
participant DOM as DOM
User->>Demo: mousemove event
Demo->>CF: CursorFollower receives event
CF->>CF: Calculate distance to target
alt Distance > threshold
CF->>CF: Update moving state = true
CF->>CF: Calculate movement angle
end
CF->>CF: Lerp current position toward target
CF->>CF: Apply rotation if rotateWithMovement enabled
CF->>RC: Render with isMoving state
RC->>RC: Conditional FlameSvg opacity based on isMoving
RC->>DOM: Update transform and rotation
DOM->>User: Visual feedback
User->>Demo: Stop moving
CF->>CF: Wait movingTimeout duration
CF->>CF: Update moving state = false
RC->>DOM: Update FlameSvg opacity to 0
Estimated code review effort🎯 4 (Complex) | ⏱️ ~65 minutes Poem
✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip You can get early access to new features in CodeRabbit.Enable the |
Summary by CodeRabbit
Release Notes
New Features
CursorFollowercomponent for building custom cursor implementationsDocumentation
Chores