Skip to content

Add timeline quick actions for creating typed tracks and clips#151

Open
ink00Yuan wants to merge 1 commit into
jbilcke-hf:mainfrom
ink00Yuan:codex/clapper-bounty10
Open

Add timeline quick actions for creating typed tracks and clips#151
ink00Yuan wants to merge 1 commit into
jbilcke-hf:mainfrom
ink00Yuan:codex/clapper-bounty10

Conversation

@ink00Yuan

Copy link
Copy Markdown

Summary

This PR adds a first pass at dynamic timeline editing:

  • Add typed tracks from the timeline UI.
  • Create clips at the current timeline cursor.
  • Prefer same-category tracks when creating clips.
  • Move clips horizontally on the timeline.
  • Allow moving clips to empty or same-category tracks.
  • Reject moves to tracks with incompatible categories.

Implementation Notes

  • Added addTrack, createClip, and moveSegment to the timeline store.
  • Added TimelineQuickActions with a category selector and quick Add track/Add clip buttons.
  • Updated existing segment pointer handling so hover does not automatically put a segment into dragging mode.
  • During drag, the segment center follows the pointer and the store rejects incompatible target tracks.
  • Empty tracks adopt the moved/created segment category when they become occupied.
  • Empty audio clips without an assetUrl no longer try to load an audio buffer.

Validation

git diff --check
git diff --check main..HEAD
npm exec --yes bun@1.0.25 -- run build:clap
npm exec --yes bun@1.0.25 -- run build:timeline

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