Add activity logging for partner enrollments group changes#3416
Add activity logging for partner enrollments group changes#3416
Conversation
- Implemented `updateReferralAction` to handle updating partner referral details. - Created `EditReferralModal` component for editing referral information. - Enhanced referral form data handling with new schema and type definitions. - Updated referral details display to include edit functionality. - Improved form data parsing and validation for custom fields.
- Introduced `updateReferralStatusAction` to manage referral status transitions. - Created `ConfirmReferralStatusChangeModal` for user confirmation on status changes. - Updated referral status dropdown to trigger the new modal for status updates. - Enhanced referral status handling with new schemas and constants for validation. - Consolidated existing status change logic for better maintainability.
- Introduced new actions for marking referrals as qualified and closed won. - Updated `updateReferralStatusAction` to include additional validation and status transition logic. - Enhanced notification system for referral status updates. - Improved referral lead details component to support read-only and interactive modes. - Refactored status dropdown to accommodate selected status handling. - Updated email template to reflect accurate referral status in notifications.
- Integrated `addReferralEvent` function to log referral events during submission and status updates. - Updated `submitReferralAction` to include event logging for referral creation. - Enhanced `updateReferralStatusAction` to log events for referral status changes, including user context. - Introduced new `PartnerReferralEvent` model in Prisma schema to support event tracking.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
- Add build-change-set helper for tracking field diffs - Add activity-log zod schemas and GET endpoint - Support batch creation and new resource types in trackActivityLog - Track partner group changes with changeSet - Update ActivityLog index to include workspaceId
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ 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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
@coderabbitai I'm seeing a lot of merge conflicts here and I'm thinking of starting fresh with another PR, can you confirm that the majority of the changes are in |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 7811
The file you mentioned:
Actual distribution across 38 files (2,795 total line changes): Largest additions (new files/major changes):
Largest deletions (removed files):
The changes are spread across UI components, API routes, actions, and database schema. Starting fresh might indeed be cleaner given the merge conflicts. |
No description provided.