Conversation
Files changed: - lib/emails/inbound/__tests__/validateCcReplyExpected.test.ts - lib/emails/inbound/validateCcReplyExpected.ts
- Introduced RECOUP_EMAIL_DOMAIN constant for better maintainability. - Updated EmailReplyAgent to utilize the new constant in instructions. - Created containsRecoupEmail function to check for Recoup email addresses. - Refactored getFromWithName and validateCcReplyExpected to use the new constant. - Updated tests to reflect changes in email address handling.
…r-logic-in-validateccreplyexpe-mk2w2l4d Ralph/updated the cc filter logic in validateccreplyexpe mk2w2l4d
…able.com - Add INBOUND_EMAIL_DOMAIN and OUTBOUND_EMAIL_DOMAIN constants to lib/consts.ts - Update getFromWithName to convert inbound domain to outbound domain for replies - Inbound emails still received at @mail.recoupable.com - Outbound replies now sent from @recoupable.com 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Always commit/push after completing changes - Never push directly to main or test branches - Include build commands and architecture overview 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Use RECOUP_EMAIL_DOMAIN from lib/const.ts for inbound (from test branch) - Add OUTBOUND_EMAIL_DOMAIN to lib/const.ts for outbound emails - Remove duplicate constants from lib/consts.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…tmantech/myc-3864-api-outbound-emails-send-from-agent-by
- Move SUPABASE_STORAGE_BUCKET to lib/const.ts - Update import in uploadFileByKey.ts - Delete lib/consts.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Clearer naming to distinguish from OUTBOUND_EMAIL_DOMAIN 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Test inbound @mail.recoupable.com converts to outbound @recoupable.com - Test finding email in to/cc arrays - Test error handling for missing recoup email - Test name capitalization formatting 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Changes FROM display from "Support <email>" to "Support by Recoup <email>" - Update tests to match new format 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…outbound-emails-send-from-agent-by Sweetmantech/myc 3864 api outbound emails send from agent by
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis change centralizes email domain and storage constants into a unified constant file (lib/const.ts), updates related imports throughout the codebase, introduces a new email validation utility function, and refactors email reply handling logic to use dynamic constants and add conditional logic for To-address handling. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
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 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Summary by CodeRabbit
New Features
Chores
✏️ Tip: You can customize this high-level summary in your review settings.