feat: muestra la fecha del documento en la lista de adjuntos

El backend ya devolvia created_at, solo faltaba mostrarlo junto a
quien lo subio y el tamaño.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Milton Gonzalez
2026-09-14 09:21:01 -05:00
parent d2319a7f85
commit ab30dfe53e
5 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -47,7 +47,9 @@ export function AttachmentsPanel({ entityType, entityId }) {
<Paperclip size={15} style={{ opacity: .7 }} />
<div style={{ flex: 1 }}>
<div style={{ fontSize: '.82rem' }}>{f.original_name}</div>
<div className="text-muted" style={{ fontSize: '.7rem' }}>{f.uploaded_by_name} · {(f.size / 1024).toFixed(0)} KB</div>
<div className="text-muted" style={{ fontSize: '.7rem' }}>
{f.uploaded_by_name} · {(f.size / 1024).toFixed(0)} KB · {String(f.created_at).slice(0, 10)}
</div>
</div>
<button className="icon-btn" onClick={() => downloadAttachment(f.id, f.original_name)}><Download size={16} /></button>
<button className="icon-btn" onClick={() => confirmDelete(f)}><Trash2 size={16} /></button>