feat: améliorations SharePoint - test connexion Azure AD, alerte expiration secret, log statut upload dans BapHistory

This commit is contained in:
Manus
2026-05-06 07:55:46 -04:00
parent bbee4cd7c9
commit 6553aee8a6
5 changed files with 176 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ import {
User,
Download,
RefreshCw,
Cloud,
CloudOff,
ExternalLink,
} from "lucide-react";
// Helper : télécharge un PDF annoté BAP depuis son URL de stockage
@@ -269,6 +272,31 @@ export default function BapHistory() {
<Download className="h-3.5 w-3.5" />
</Button>
</div>
) : (entry as any).sharepointUploadStatus === 'success' ? (
<div className="flex items-center gap-1">
<div className="flex items-center gap-1 text-blue-600">
<Cloud className="h-3.5 w-3.5" />
<span className="text-xs">SharePoint</span>
</div>
{(entry as any).sharepointUploadPath && (
<a
href={(entry as any).sharepointUploadPath}
target="_blank"
rel="noopener noreferrer"
className="text-blue-500 hover:text-blue-700"
title="Ouvrir dans SharePoint"
>
<ExternalLink className="h-3.5 w-3.5" />
</a>
)}
</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>
</div>
) : entry.exportPath ? (
<div className="flex items-center gap-1">
<div className="flex items-center gap-1 text-orange-600">