Repository navigation
fix(timeline): copy anchored modifiers onto a duplicated clip - #1033
Conversation
duplicateClip copied only the trims anchored to the original, so a pasted clip lost its zooms, speed regions, annotations and Full Camera regions. Copy every anchored modifier collection through mapAllRegionCollections, with fresh ids and the copy's clipId. Imported audio is left out on purpose until the take fold is fixed (#1011).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthrough
ChangesClip duplication
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: Merge Risk: ⚪ Minimal · up to The modifier-copying change is mergeable after normal checks. Duplicating a clip still does not duplicate its imported audio take. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description covers the summary, issue, change type, release impact, desktop impact, and testing. However, it says “Closes Full details: Linked Issues checkExplanation Issue [
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
A clip duplicated with Ctrl+C / Ctrl+V lost the modifiers anchored to the original:
duplicateClipcopied only its trims.mapAllRegionCollections, so every anchored collection is covered, including later ones. Each copy gets a new id and the copy'sclipId.Related issue
Closes #1007
Type of change
Release impact
Desktop impact
Testing
timeline.test.ts: one of each modifier on the copy, 10 s later, with new ids; the original unchanged; a second paste gives three; the input not mutated; an audio take stays on the original.src/lib/ai-edition/documentand the store; both tsc configs; Biome.🤖 Generated with Claude Code