Preserve heading/title style when splitting blocks#133
Conversation
…ior) When pressing Enter in a Title/Heading/Subtitle block, preserve the block style on both halves unless splitting at the end (where the new block resets to paragraph). This matches Google Docs behavior. Also fixes two related bugs: - Empty title/heading blocks now use the correct font size for height calculation instead of falling back to the default 11pt. - Yorkie tree path resolution now reads the actual tree inline structure instead of the cache, preventing "unacceptable path" errors when cache inlines (normalized) diverge from Yorkie tree inlines (separate nodes after split/merge). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThe changes extend block type and style preservation when splitting document blocks. Splitting Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Verification: verify:selfResult: ✅ PASS in 120.7s
Verification: verify:integrationResult: ✅ PASS |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Summary
editByPathpaths are now computed from the actual Yorkie tree inline structure instead of the cache, preventingunacceptable patherrors whennormalizeInlinesmerges inlines that remain separate in the Yorkie tree after split/merge operations.Test plan
document.test.ts)layout.test.ts)pnpm verify:fast+ frontend tests)🤖 Generated with Claude Code
Summary by CodeRabbit
Release Notes
Bug Fixes