Make Olist sync incremental and resumable

This commit is contained in:
Cauê Faleiros
2026-08-10 13:38:03 -03:00
parent 838354f784
commit 4bba1bb21c
5 changed files with 153 additions and 14 deletions

View File

@@ -593,6 +593,9 @@ const Registrations = () => {
<span>{olistStatus.runs[0].mode === 'full' ? 'Carga completa' : 'Atualização incremental'}</span>
<span>{olistStatus.runs[0].imported} composições</span>
<span>{olistStatus.runs[0].referenceCount} referências</span>
{olistStatus.productCache.total > 0 && (
<span>{olistStatus.productCache.checked.toLocaleString('pt-BR')} / {olistStatus.productCache.total.toLocaleString('pt-BR')} estruturas verificadas</span>
)}
{olistStatus.runs[0].failed > 0 && <span className="text-red-300">{olistStatus.runs[0].failed} falhas</span>}
</div>
)}

View File

@@ -227,6 +227,12 @@ export interface OlistStatus {
connected: boolean;
tokenExpiresAt: string | null;
syncInProgress: boolean;
productCache: {
total: number;
checked: number;
pending: number;
manufactured: number;
};
runs: OlistSyncRun[];
}