mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 14:27:26 +00:00
The drop-placement logic (no same-track overlap, zone clamp, relocate to nearest free track, else create) was inline in the drag hook and untested. Extract it into one pure function and cover every case with unit tests (relocate up/down, all-occupied→create, sequential-share, zone-clamp both ways, boundary insert + wrong-zone rejection, audio-track creation). The hook now calls it, so the verified logic is the live logic. 39 collision tests pass.