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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user