fix: Superhuman sync solo agencia — mensaje claro y botón oculto a cliente
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -33,6 +33,7 @@ type Payload = {
|
||||
tenantId?: string;
|
||||
hint?: string;
|
||||
entries: Entry[];
|
||||
isAgency?: boolean;
|
||||
};
|
||||
|
||||
function typeLabel(t: string) {
|
||||
@@ -237,19 +238,21 @@ export default function SeguimientoBoard() {
|
||||
<Send className="w-3.5 h-3.5" />
|
||||
{noteBusy ? 'Guardando…' : 'Añadir al seguimiento'}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
disabled={syncBusy || !data.tenantId}
|
||||
onClick={() => void syncSuperhuman()}
|
||||
className="inline-flex items-center gap-2 rounded-xl border border-gray-200 bg-white px-4 py-2 text-sm font-semibold text-gray-800 hover:bg-gray-50 disabled:opacity-50"
|
||||
>
|
||||
{syncBusy ? (
|
||||
<Loader2 className="w-3.5 h-3.5 animate-spin" />
|
||||
) : (
|
||||
<Radio className="w-3.5 h-3.5 text-emerald-600" />
|
||||
)}
|
||||
Traer notas Superhuman
|
||||
</button>
|
||||
{data.isAgency ? (
|
||||
<button
|
||||
type="button"
|
||||
disabled={syncBusy || !data.tenantId}
|
||||
onClick={() => void syncSuperhuman()}
|
||||
className="inline-flex items-center gap-2 rounded-xl border border-gray-200 bg-white px-4 py-2 text-sm font-semibold text-gray-800 hover:bg-gray-50 disabled:opacity-50"
|
||||
>
|
||||
{syncBusy ? (
|
||||
<Loader2 className="w-3.5 h-3.5 animate-spin" />
|
||||
) : (
|
||||
<Radio className="w-3.5 h-3.5 text-emerald-600" />
|
||||
)}
|
||||
Traer notas Superhuman
|
||||
</button>
|
||||
) : null}
|
||||
{noteMsg ? (
|
||||
<p className="text-xs text-emerald-700">{noteMsg}</p>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user