fix: strip newlines from implicit view titles#2683
Conversation
…ents/changeset-generator.agent.md
🦋 Changeset detectedLatest commit: 6ffb6ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR fixes a runtime error in implicit view generation where multi-line element titles cause view title validation failures. The fix sanitizes newline characters to spaces in auto-generated implicit view titles, and includes a test case to verify the behavior. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Fixes "View title cannot contain newlines" error when using implicit views with elements that have multi-line titles.
When
implicitViewsgenerates titles from element titles (e.g.,Auto / ${element.title}), any newlines in the element title would cause validation to fail. Now newlines are replaced with spaces to ensure valid view titles.Fixes
Test Plan
Summary by CodeRabbit
Bug Fixes
Chores