- Introduced SignatureBadge component to display the signature status of sponsors.
- Added utility functions for handling signature status and calculating days pending.
- Updated SponsorCard to conditionally render the SignatureBadge based on the current view and sponsor's signature status.
refactor: enhance OrganizerCombobox and SponsorCombobox stories
- Updated stories to include documentation descriptions for better clarity.
- Changed interface names from Organizer to MockOrganizer and Sponsor to MockSponsor for consistency.
chore: remove documentation sections from OrganizerCombobox and SponsorCombobox stories
- Cleaned up unused documentation sections to streamline story files.
fix: improve styling and accessibility in SponsorContactRoleSelect
- Added gray text color for placeholder option in the select dropdown.
- Enhanced styling for better visibility when no value is selected.
feat: implement logo upload functionality in SponsorOnboardingForm
- Added SponsorOnboardingLogoUpload component for uploading primary and bright logo variants.
- Integrated logo upload functionality into the SponsorOnboardingForm.
- Updated form to handle logo state and display appropriate upload fields.
feat: add send contract mutation to sponsor router
- Implemented sendContract mutation to handle contract generation and sending.
- Added logging for contract status changes and integrated PDF generation.
feat: create SendContractSchema for contract sending validation
- Defined SendContractSchema to validate inputs for sending contracts.
User description
Introduce a SignatureBadge component to display the signature status of sponsors and implement logo upload functionality in the SponsorOnboardingForm. Enhance the OrganizerCombobox and SponsorCombobox stories for better clarity, improve styling and accessibility in the SponsorContactRoleSelect, and add a send contract mutation to the sponsor router with validation schema.
PR Type
Enhancement, Tests
Description
Add signature status badge display to SponsorCard with days pending calculation
Implement multi-step SendContractModal for contract generation and sending workflow
Create SendContractButton component integrated into SponsorCRMForm header
Add comprehensive test coverage for contract schemas and CRM utilities
Implement SponsorOnboardingLogoUpload component for SVG logo variants
Enhance dark mode support across onboarding form and related components
Add SVG sanitization utility to prevent XSS attacks in logo uploads
Create contract email templates migration for Sanity CMS
Diagram Walkthrough
File Walkthrough
8 files
Comprehensive test coverage for contract template schemasTest coverage for contract and signature status schemasTest coverage for CRM utility functions including signature badgesAdditional test cases for onboarding URL buildingComprehensive test coverage for SVG sanitization utilityCreate Storybook stories for SendContractButton componentAdd signature status badge stories to SponsorCardCreate Storybook stories for logo upload component2 files
Seed contract-related email templates for Sanity CMSAdd SendContractButton and SponsorOnboardingLogoUpload to Storybook14 files
Add signature status badge and days pending utility functionsImplement sendContract mutation with PDF generation and loggingAdd SendContractSchema for contract sending validationAdd dark mode classes to EmptyState story variantsImplement SendContractButton with modal trigger and state managementImplement multi-step SendContractModal with readiness, preview,confirmIntegrate SendContractButton into CRM form headerAdd SignatureBadge component display in contract viewEnhance Storybook documentation and rename mock interfaceEnhance Storybook documentation and rename mock interfaceImprove styling and accessibility of placeholder optionIntegrate logo upload component and enhance dark mode supportImplement logo upload component with SVG sanitization and previewAdd SVG sanitization utility to prevent XSS attacks