feat: bouton Tester l'upload SharePoint + tooltip erreur SP dans historique BAP

This commit is contained in:
Manus
2026-05-06 10:18:46 -04:00
parent 6c21c71660
commit 94844b0589
3 changed files with 104 additions and 4 deletions

View File

@@ -291,11 +291,21 @@ export default function BapHistory() {
)}
</div>
) : (entry as any).sharepointUploadStatus === 'error' ? (
<div className="flex items-center gap-1" title={(entry as any).sharepointUploadError || 'Erreur SharePoint'}>
<div className="flex items-center gap-1 text-red-600">
<CloudOff className="h-3.5 w-3.5" />
<span className="text-xs">SP Erreur</span>
<div
className="flex items-center gap-1 cursor-help"
title={(entry as any).sharepointUploadError || 'Erreur SharePoint'}
>
<div className="flex items-center gap-1 text-red-600 border border-red-200 bg-red-50 rounded px-1.5 py-0.5">
<CloudOff className="h-3.5 w-3.5 shrink-0" />
<span className="text-xs font-medium">SP Erreur</span>
</div>
{(entry as any).sharepointUploadError && (
<span
className="hidden group-hover:block absolute z-50 max-w-xs bg-gray-900 text-white text-xs rounded p-2 shadow-lg"
>
{(entry as any).sharepointUploadError}
</span>
)}
</div>
) : entry.exportPath ? (
<div className="flex items-center gap-1">