Refactor sponsor management to remove contact info handling#315
Refactor sponsor management to remove contact info handling#315Starefossen merged 7 commits intomainfrom
Conversation
- Updated SponsorContactTable to use SponsorForConferenceExpanded type instead of SponsorWithContactInfo. - Removed unnecessary contact info fetching in SponsorIndividualEmailModal. - Simplified SponsorTierManagement and SponsorTiersPageClient to use ConferenceSponsor type. - Removed sponsor contact info from various schemas and validation logic. - Updated sponsor-related sanity functions to align with new data structure. - Removed audience management functions related to sponsor contacts. - Cleaned up unused imports and types across the codebase.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||
- Introduced a new document type `sponsorEmailTemplate` in Sanity CMS to manage reusable email templates for sponsor outreach. - Updated the data model to reflect the addition of the `sponsorEmailTemplate` document type. - Created migration script to seed initial email templates for various outreach scenarios. - Implemented CRUD operations for email templates in the sponsor router. - Added a template picker component in the admin UI for selecting email templates when composing messages. - Enhanced the email modal to support template selection and dynamic variable processing in email subjects and bodies. - Updated relevant types and utility functions to handle email template processing and variable substitution.
User description
PR Type
Enhancement
Description
Migrated contact persons and billing from sponsor to sponsorForConference
Added contact_persons and billing fields to sponsorForConference schema
Updated email routes to fetch contacts from CRM records instead of sponsor
Removed contact info handling from sponsor management functions
Added is_primary flag to identify primary contact for each sponsorship
Diagram Walkthrough
File Walkthrough
1 files
Added comprehensive tests for contact and billing schemas21 files
Removed contact/billing from sponsor CRUD operationsSimplified sponsor queries and removed audience syncFetch contacts from sponsorForConference instead of sponsorUpdated to use CRM sponsors with contact personsAdded contact_persons and billing to CRM operationsFetch contacts from sponsorForConference CRM recordRemoved sponsorContact parameter from conference queriesAdded contact_persons and billing to input schemasRemoved ConferenceSponsorWithContact type definitionAdded contact_persons and billing to CRM typesRemoved ConferenceSponsorWithContact from conference typeRemoved sponsorContact option from email route helpersRemoved contact/billing handling from sponsor modalUpdated to work with sponsorForConference CRM recordsUpdated to display contacts from sponsorForConferenceRemoved contact/billing info validation from tier managementUpdated to fetch sponsors from CRM instead of conferenceUpdated contact editor to use sponsorForConference dataRemoved sponsor fetch, use sponsorForConference contactsSimplified sponsor filtering logic for broadcastsRemoved sponsorContact parameter from conference query3 files
Migration to copy contacts and billing to sponsorForConferenceAdded contact_persons and billing field definitionsMigration to remove deprecated fields from sponsor2 files
Updated documentation to reflect new contact/billing locationUpdated example to remove includeContactInfo parameter7 files