Checkpoint: Ajout de la colonne 'Export SP' dans le tableau historique de Ventilation FreePro : icône horloge grise = non exporté, icône verte = exporté (date au survol), icône rouge = erreur (message au survol). Le statut est sauvegardé en base (sharepointUploadStatus, sharepointUploadPath, sharepointUploadError, sharepointExportedAt) lors de chaque export via 'Envoyer vers SharePoint'.

This commit is contained in:
Manus
2026-06-08 10:53:34 -04:00
parent 43cacda7ad
commit 056bccd985
7 changed files with 2214 additions and 0 deletions

View File

@@ -2436,9 +2436,16 @@ export const appRouter = router({
);
if (!result.success) {
// Sauvegarder le statut d'erreur en base
const { updateFreeproSharepointStatus } = await import('./db');
await updateFreeproSharepointStatus(input.id, 'error', null, result.error || 'Erreur inconnue');
throw new TRPCError({ code: "INTERNAL_SERVER_ERROR", message: result.error || 'Erreur upload SharePoint' });
}
// Sauvegarder le statut de succès en base
const { updateFreeproSharepointStatus } = await import('./db');
await updateFreeproSharepointStatus(input.id, 'success', result.webUrl || null, null);
return { success: true, webUrl: result.webUrl, fileName };
}),
}),