fix: auto-capitalize lead first and last names on save (#703) - #726
fix: auto-capitalize lead first and last names on save (#703)#726aditya226-sharma wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe ChangesLead name normalization
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This localized name-formatting change is merge-ready after normal checks and review; no actionable merge-blocking risk remains. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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
Auto-capitalizes lead first_name and last_name upon model save so merge tags render as "Hi John" instead of "Hi john".
Changes
save()override toLeadmodel that applies.strip().title()to first_name and last_nameWhy
When leads are imported or added with lowercase names, personalize merge tags render unprofessionally. This ensures outreach emails always look polished.
Closes #703
Summary by CodeRabbit