Files
formation-manager-itinova/drizzle/meta/_journal.json
Manus Sandbox bb0ec9e3b0 Checkpoint: Amélioration système de rappels - Historique et notifications d'échec
**Nouvelles fonctionnalités** :

1. **Historique des rappels envoyés**
   - Nouvelle table `logsRappels` pour tracer tous les emails de rappels
   - Enregistrement automatique de chaque envoi (succès ou échec)
   - Prévention des doublons : vérification avant envoi
   - Informations stockées : rappelId, sequenceId, apprenantId, email, type, statut, message d'erreur

2. **Notifications automatiques à l'administrateur**
   - Alerte par email en cas d'échec d'envoi de rappels
   - Détail des échecs : liste des emails et messages d'erreur
   - Résumé : nombre d'envois réussis vs échecs

3. **Procédure de test manuel** (backend uniquement)
   - Nouvelle procédure tRPC `rappels.testerRappel`
   - Permet de tester l'envoi d'un rappel J-7 ou J-1 pour une séquence
   - Envoie au premier apprenant inscrit uniquement

**Fichiers créés** :
- `server/rappelDb.ts` : Fonctions de gestion des logs de rappels
- `drizzle/schema.ts` : Ajout de la table `logsRappels`

**Fichiers modifiés** :
- `server/rappelScheduler.ts` : Intégration du logging et des notifications
- `server/routers.ts` : Ajout de la procédure `testerRappel`

**Bénéfices** :
-  Aucun doublon même en cas de redémarrage du serveur
-  Traçabilité complète de tous les rappels envoyés
-  Alertes automatiques en cas de problème d'envoi
-  Possibilité de tester les rappels avant envoi automatique
2025-12-08 03:01:50 -05:00

153 lines
3.0 KiB
JSON

{
"version": "7",
"dialect": "mysql",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1762953852020,
"tag": "0000_charming_grey_gargoyle",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1762953926304,
"tag": "0001_smooth_warbird",
"breakpoints": true
},
{
"idx": 2,
"version": "5",
"when": 1762957612797,
"tag": "0002_fuzzy_sugar_man",
"breakpoints": true
},
{
"idx": 3,
"version": "5",
"when": 1762958719297,
"tag": "0003_steady_mystique",
"breakpoints": true
},
{
"idx": 4,
"version": "5",
"when": 1763047968048,
"tag": "0004_futuristic_malice",
"breakpoints": true
},
{
"idx": 5,
"version": "5",
"when": 1763050409917,
"tag": "0005_cuddly_bushwacker",
"breakpoints": true
},
{
"idx": 6,
"version": "5",
"when": 1763412717239,
"tag": "0006_lame_madrox",
"breakpoints": true
},
{
"idx": 7,
"version": "5",
"when": 1763414014386,
"tag": "0007_awesome_genesis",
"breakpoints": true
},
{
"idx": 8,
"version": "5",
"when": 1763416801277,
"tag": "0008_jittery_fenris",
"breakpoints": true
},
{
"idx": 9,
"version": "5",
"when": 1763448844826,
"tag": "0009_polite_senator_kelly",
"breakpoints": true
},
{
"idx": 10,
"version": "5",
"when": 1763628773882,
"tag": "0010_aspiring_kitty_pryde",
"breakpoints": true
},
{
"idx": 11,
"version": "5",
"when": 1763630439521,
"tag": "0011_natural_cyclops",
"breakpoints": true
},
{
"idx": 12,
"version": "5",
"when": 1763737191050,
"tag": "0012_dapper_ronan",
"breakpoints": true
},
{
"idx": 13,
"version": "5",
"when": 1763927796862,
"tag": "0013_demonic_trish_tilby",
"breakpoints": true
},
{
"idx": 14,
"version": "5",
"when": 1763933695050,
"tag": "0014_calm_thanos",
"breakpoints": true
},
{
"idx": 15,
"version": "5",
"when": 1764056078540,
"tag": "0015_young_moonstone",
"breakpoints": true
},
{
"idx": 16,
"version": "5",
"when": 1764329348207,
"tag": "0016_romantic_sinister_six",
"breakpoints": true
},
{
"idx": 17,
"version": "5",
"when": 1764540514199,
"tag": "0017_unique_skrulls",
"breakpoints": true
},
{
"idx": 18,
"version": "5",
"when": 1764934995109,
"tag": "0018_smooth_purifiers",
"breakpoints": true
},
{
"idx": 19,
"version": "5",
"when": 1765143202063,
"tag": "0019_unknown_nomad",
"breakpoints": true
},
{
"idx": 20,
"version": "5",
"when": 1765180630803,
"tag": "0020_large_rocket_raccoon",
"breakpoints": true
}
]
}