feat: améliorations SharePoint - test connexion Azure AD, alerte expiration secret, log statut upload dans BapHistory
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user