espace-paie-odentas/supabase/migrations
odentas d7bdb1ef08 feat: Add notification tracking system with smart reminders
- Add database columns for last_employer_notification_at and last_employee_notification_at in cddu_contracts
- Update all email sending endpoints to record timestamps (remind-employer, relance-salarie, docuseal-signature, signature-salarie)
- Create smart reminder system with 24h cooldown to prevent spam
- Add progress tracking modal with real-time status (pending/sending/success/error)
- Display actual employer/employee email addresses in reminder modal
- Show notification timestamps in contracts grid with color coding (green/orange/red based on contract start date)
- Change employer email button URL from DocuSeal direct link to /signatures-electroniques
- Create /api/staff/organizations/emails endpoint for bulk email fetching
- Add retroactive migration script for historical email_logs data
- Update Contract TypeScript type and API responses to include new fields
2025-10-22 21:49:35 +02:00
..
001_create_email_logs.sql Initial commit 2025-10-12 17:05:46 +02:00
0001_tickets.sql Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
002_backfill_contract_ids_in_email_logs.sql feat: Add notification tracking system with smart reminders 2025-10-22 21:49:35 +02:00
0002_notes_functions.sql Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
002_update_email_logs_safe.sql Initial commit 2025-10-12 17:05:46 +02:00
003_add_html_content_to_email_logs.sql Initial commit 2025-10-12 17:05:46 +02:00
0003_maintenance_status_customization.sql Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
0003_professions_feminisations.sql Initial commit 2025-10-12 17:05:46 +02:00
0004_search_index_policies.sql Initial commit 2025-10-12 17:05:46 +02:00
20251009_documents_rls.sql Initial commit 2025-10-12 17:05:46 +02:00
20241007000000_create_auto_declaration_tokens.sql Initial commit 2025-10-12 17:05:46 +02:00
add_bulk_signature_notification_email_type.sql Ajout filtre org Virements salaires 2025-10-13 02:21:23 +02:00
add_notification_timestamps_to_contracts.sql feat: Add notification tracking system with smart reminders 2025-10-22 21:49:35 +02:00
add_salaires_payes_column.sql Modification virements salaires staff 2025-10-14 17:33:43 +02:00
add_signature_b64_column.sql Signature préremplie B64 2025-10-14 19:23:14 +02:00
alternative_policy.sql Initial commit 2025-10-12 17:05:46 +02:00
debug_auth_uid.sql Initial commit 2025-10-12 17:05:46 +02:00
debug_disable_rls.sql Initial commit 2025-10-12 17:05:46 +02:00
diagnostic_email_logs.sql Initial commit 2025-10-12 17:05:46 +02:00
final_rls_fix.sql Initial commit 2025-10-12 17:05:46 +02:00
fix_contribution_notifications_id.sql Cotis mensuelles et notifs 2025-10-13 20:56:34 +02:00
fix_message_count_trigger.sql Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
fix_rls_policies.sql Initial commit 2025-10-12 17:05:46 +02:00
fix_staff_access.sql Initial commit 2025-10-12 17:05:46 +02:00
remove_resolved_status.sql Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
temporary_policy_fix.sql Initial commit 2025-10-12 17:05:46 +02:00
transpose_callsheet_to_num_appel.sql Modification virements salaires staff 2025-10-14 17:33:43 +02:00