From 5821f82eb235f901bf580e0f811f52a6b8cd44bc Mon Sep 17 00:00:00 2001 From: Manus Date: Tue, 27 Jan 2026 08:14:31 -0500 Subject: [PATCH] Rollback to feb708bb --- client/src/pages/FormateurEmargement.tsx | 20 ++++++++++---------- server/presenceDb.ts | 3 --- todo.md | 23 ++++------------------- 3 files changed, 14 insertions(+), 32 deletions(-) diff --git a/client/src/pages/FormateurEmargement.tsx b/client/src/pages/FormateurEmargement.tsx index 6e6df1e..bd2afa1 100644 --- a/client/src/pages/FormateurEmargement.tsx +++ b/client/src/pages/FormateurEmargement.tsx @@ -269,8 +269,9 @@ export default function FormateurEmargement() { const presenceInfo = getPresenceInfo(inscrit.inscription.id, date.id, "matin"); if (presenceInfo) { return ( -
- {inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} a validé(e) le {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", { +
+ • {inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} + • {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", { day: "2-digit", month: "2-digit", year: "numeric", @@ -281,14 +282,13 @@ export default function FormateurEmargement() { @@ -329,8 +329,9 @@ export default function FormateurEmargement() { const presenceInfo = getPresenceInfo(inscrit.inscription.id, date.id, "apres_midi"); if (presenceInfo) { return ( -
- {inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} a validé(e) le {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", { +
+ • {inscrit.apprenant?.prenom} {inscrit.apprenant?.nom} + • {new Date(presenceInfo.heurePresence).toLocaleString("fr-FR", { day: "2-digit", month: "2-digit", year: "numeric", @@ -341,14 +342,13 @@ export default function FormateurEmargement() { diff --git a/server/presenceDb.ts b/server/presenceDb.ts index 9a49012..f990238 100644 --- a/server/presenceDb.ts +++ b/server/presenceDb.ts @@ -68,9 +68,6 @@ export async function getPresencesBySequence(sequenceId: number) { modeValidation: presences.modeValidation, validateurId: presences.validateurId, commentaire: presences.commentaire, - signatureUrl: presences.signatureUrl, - signatureS3Key: presences.signatureS3Key, - dateSigned: presences.dateSigned, apprenantId: apprenants.id, apprenantNom: apprenants.nom, apprenantPrenom: apprenants.prenom, diff --git a/todo.md b/todo.md index 3b4b96e..f544765 100644 --- a/todo.md +++ b/todo.md @@ -1314,23 +1314,8 @@ ## Affichage des signatures dans l'émargement numérique -- [x] Modifier l'API pour récupérer les présences avec signatures -- [x] Afficher nom du signataire, date/heure et icône à côté de chaque puce matin/après-midi -- [x] Ajouter une modale pour visualiser la signature en grand format +- [ ] Modifier l'API pour récupérer les présences avec signatures +- [ ] Afficher nom du signataire, date/heure et icône à côté de chaque puce matin/après-midi +- [ ] Ajouter une modale pour visualiser la signature en grand format - [ ] Tester l'affichage sur smartphone -- [x] Déployer sur le VPS - -## Correction affichage signature - -- [x] Modifier le format d'affichage : "Prénom Nom a validé(e) le date et heure" -- [x] Rendre l'icône de signature plus visible (taille, couleur) -- [ ] Tester l'affichage -- [x] Déployer sur le VPS - -## Bug: Icône de signature non visible - -- [ ] Vérifier si signatureUrl est bien remplie dans la base de données -- [ ] Vérifier si l'API retourne bien signatureUrl dans getPresencesBySequence -- [ ] Ajouter des logs pour déboguer -- [ ] Corriger le problème -- [ ] Déployer +- [ ] Déployer sur le VPS