feat(settings): add video tooltip previews for canvas settings#3749
feat(settings): add video tooltip previews for canvas settings#3749waleedlatif1 merged 2 commits intostagingfrom
Conversation
PR SummaryLow Risk Overview Extends the shared Written by Cursor Bugbot for commit ffa535e. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds video tooltip previews to the "Auto-connect on drop" and "Canvas error notifications" settings in the General settings panel, and renames "Workflow error notifications" to "Canvas error notifications" for clarity. Key changes:
The previously flagged issues (missing Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant Label as Tooltip Trigger Label
participant Content as Tooltip Content
participant Preview as Tooltip Preview
participant Browser
User->>Label: Hover
Label->>Content: Show tooltip via Radix portal
Content->>Preview: Render with src .mp4
Preview->>Preview: Detect extension after stripping query and hash
alt isVideo
Preview->>Browser: Render video element with preload=none autoPlay muted loop
Browser->>Browser: autoPlay triggers load and playback
else isImage
Preview->>Browser: Render img element with loading=lazy
end
User->>Label: Mouse leave
Label->>Content: Hide tooltip and unmount portal
Browser->>Browser: Video element destroyed and playback stops
Reviews (2): Last reviewed commit: "fix(tooltip): add preload=none and handl..." | Re-trigger Greptile |
|
@greptile |
|
@cursor review |
Summary
Type of Change
Testing
Tested manually
Checklist