espace-paie-odentas/templates-mails
odentas 5b72941777 feat: Système complet de gestion des avenants avec signatures électroniques
 Nouvelles fonctionnalités
- Page de gestion des avenants (/staff/avenants)
- Page de détail d'un avenant (/staff/avenants/[id])
- Création d'avenants (objet, durée, rémunération)
- Génération automatique de PDF d'avenant
- Signature électronique via DocuSeal (employeur puis salarié)
- Changement manuel du statut d'un avenant
- Suppression d'avenants

🔧 Routes API
- POST /api/staff/amendments/create - Créer un avenant
- POST /api/staff/amendments/generate-pdf - Générer le PDF
- POST /api/staff/amendments/[id]/send-signature - Envoyer en signature
- POST /api/staff/amendments/[id]/change-status - Changer le statut
- POST /api/webhooks/docuseal-amendment - Webhook après signature employeur
- GET /api/signatures-electroniques/avenants - Liste des avenants en signature

📧 Système email universel v2
- Migration vers le système universel v2 pour les emails d'avenants
- Template 'signature-request-employee-amendment' pour salariés
- Insertion automatique dans DynamoDB pour la Lambda
- Mise à jour automatique du statut dans Supabase

🗄️ Base de données
- Table 'avenants' avec tous les champs (objet, durée, rémunération)
- Colonnes de notification (last_employer_notification_at, last_employee_notification_at)
- Liaison avec cddu_contracts

🎨 Composants
- AvenantDetailPageClient - Détail complet d'un avenant
- ChangeStatusModal - Changement de statut manuel
- SendSignatureModal - Envoi en signature
- DeleteAvenantModal - Suppression avec confirmation
- AvenantSuccessModal - Confirmation de création

📚 Documentation
- AVENANT_EMAIL_SYSTEM_MIGRATION.md - Guide complet de migration

🐛 Corrections
- Fix parsing défensif dans Lambda AWS
- Fix récupération des données depuis DynamoDB
- Fix statut MFA !== 'verified' au lieu de === 'unverified'
2025-10-23 15:30:11 +02:00
..
2fa-active.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
2fa-desactive.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
activation-espace.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
annulationCDDU.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
appel-virement.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
bug-report.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cdduAnnule.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cdduAnnuleInterne.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cdduAnnuleInterne_old.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cdduModifie.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cdduModifieInterne.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
compte-revoque.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
cotisations-mensuelles-disponibles.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
facture-payee.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
facture.html Initial commit 2025-10-12 17:05:46 +02:00
facture.html.backup Initial commit 2025-10-12 17:05:46 +02:00
invitation-auto-declaration.html Initial commit 2025-10-12 17:05:46 +02:00
invite.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
modification-mot-de-passe.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
modificationCDDU.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveau-mot-de-passe.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveauCDDU-tableau.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveauCDDU.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveauContrat.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveauContratInterne.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
nouveauRG.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
otp.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
revocation.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
salaire-verse-salarie.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
signature-avenant-employeur.html feat: Système complet de gestion des avenants avec signatures électroniques 2025-10-23 15:30:11 +02:00
signature-electronique-employeur.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
signature-electronique-salarie.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
signature-electronique.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
signature-ok-employeur.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
signature-ok-salarie.html Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
texts.json Initial commit - TypeScript errors fixed, build working 2025-10-07 14:51:56 +02:00
universal-template.html Système notif tickets support 2025-10-14 23:21:58 +02:00