fix: ficha no finge sync al guardar IDs; normaliza URL de Drive

«Conectar» en la ficha solo guarda la referencia; last_sync queda
para syncs reales. Drive acepta URL completa → folder id.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-09-24 12:22:41 +02:00
parent 5501f45a67
commit 81ba5df37d
2 changed files with 20 additions and 5 deletions

View File

@@ -205,12 +205,16 @@ export default function ClientIntegrationsPanel({
Carpeta: {folderHint}
</p>
)}
{row?.last_sync_at && (
{row?.last_sync_at ? (
<p className="text-[10px] text-gray-500">
Último sync{' '}
Último sync real{' '}
{new Date(row.last_sync_at).toLocaleString('es-ES')}
</p>
)}
) : status === 'connected' ? (
<p className="text-[10px] text-amber-700">
Referencia guardada (aún sin sync de datos)
</p>
) : null}
{row?.error_message && (
<p className="text-[11px] text-red-600 mt-1">
{row.error_message}