Repository navigation
feat(gpui): drag music from the library onto the timeline - #2848
YoavLevavi wants to merge 4 commits into
Conversation
A library row can be dragged onto the timeline: dropped on an audio lane it lands there, anywhere else it gets a new lane, and it starts at the time under the pointer instead of the playhead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@YoavLevavi is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks @YoavLevavi, dragging music onto the timeline feels natural, and routing the drop through the existing import request and generation checks is the right call. The drop time doesn't survive the clamp in |
- audio_import_placement keeps a dropped track's start (pulled in only far enough to leave a minimum segment) and shortens it to end with the project, instead of sliding it back to 0:00 when the track is longer than the project. Picker imports still start at the playhead and slide to fit. - finish_audio_import takes audio_drop_start on every path, so a failed or empty copy can't make a later click land at the old drop time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks @richiemcilroy, both are in 7431f96 (also merged main):
@greptileai review |
| this.add_library_track(id, name, window, cx); | ||
| })) | ||
| }) | ||
| // Drag the row onto a timeline lane to add the track where it lands. |
There was a problem hiding this comment.
This comment repeats what the next on_drag call does. AGENTS.md prohibits comments that merely describe the code or the current change. Remove it and the similar descriptions above LibraryDrag and LibraryDragPreview to satisfy that requirement before merging.
Context Used: AGENTS.md (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: apps/desktop-gpui/src/editor_audio.rs
Line: 302
Comment:
**Comments repeat the code**
This comment repeats what the next `on_drag` call does. `AGENTS.md` prohibits comments that merely describe the code or the current change. Remove it and the similar descriptions above `LibraryDrag` and `LibraryDragPreview` to satisfy that requirement before merging.
**Context Used:** AGENTS.md ([source](https://github.com/capsoftware/cap/blob/main/AGENTS.md))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
Thanks! Can you get Greptile to 5/5? Then we'll take a look. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@greptile-apps review |
|
Thanks! Can you add a screenshot or short video showing it working? |
Drag music from the audio library onto the timeline.
on_drag) with a small chip preview. Clicking still adds at the playhead as before.Testing:
cargo test --bin cap-gpui, clippy clean on the touched files.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge, with the previous finding addressed and no new findings.Summary
The PR lets users drag library music onto the timeline.
Reviews (2) · Last reviewed commit: "Library drag: drop comments that restate..." · Reviewed by Greptile