Files
hyperframes/packages
ukimsanov 1f7c6a44d1 refactor(studio): extract resolveZoneDropPlacement — the whole drop decision, unit-tested
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.
2026-07-10 10:23:51 -07:00
..
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00
2026-07-10 09:57:48 -07:00