feat(editor): track regions — draw the region strip + region selection - #333
Conversation
|
Warning Review limit reached
Next review available in: 44 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (7)
✨ Finishing Touches🧪 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 |
#333) Includes review fix: clear selectedRegionId on track/song switch and drum-tab delete. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
235bbb5 to
85e3a58
Compare
PR 2 of the track-regions arc — the region strip + selection
Stacked on #332 (the region data model) — merge #332 first. Base is
track-regions-p1, so this shows only PR 2's diff.Renders each track's content inside a region block in the Tracks (Parts) view, and adds region-level selection — the first visible step of the region layer. No move/trim yet.
What's here
S.selectedRegionId) — the move/trim target a later PR acts on.src/region.js:_regionTimeSpanPure,_regionBlockRectPure,_regionHitPure.Rides the existing rAF Parts-view draw +
timeToX; no new listeners or timers, no per-frame work added.Tests
tests/region_layout.test.mjs(4), fails on main. Full suite green: JS 297/0 · lint 0 errors. Runtime-verified in the real host — region blocks render and the selection accent works.Next
PR 3 is the import-into-existing-project driver (place / move / delete a region — the drums-only-GP case).
🤖 Generated with Claude Code
https://claude.ai/code/session_017xGPjDBF8NTwTK7VQvizix