From 7cef8db6afe92f1a7daafd74703e64c61c02e5b3 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Tue, 26 May 2026 08:49:58 +0000 Subject: [PATCH] feat(ui): customers.js skeletons, empty states, version bump --- pos/static/js/customers.js | 11 ++++++++--- pos/templates/customers.html | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pos/static/js/customers.js b/pos/static/js/customers.js index fd0943b..34caada 100644 --- a/pos/static/js/customers.js +++ b/pos/static/js/customers.js @@ -127,7 +127,12 @@ const Customers = (() => { if (!tbody) return; if (!customers || customers.length === 0) { - tbody.innerHTML = 'Sin resultados.'; + tbody.innerHTML = '' + renderEmptyState({ + icon: '', + title: 'Sin clientes', + subtitle: 'No se encontraron clientes registrados.', + action: '' + }) + ''; return; } @@ -137,7 +142,7 @@ const Customers = (() => { rowHeight: 52, buffer: 3, renderRow: renderCustomerRow, - emptyHtml: 'Sin resultados.' + emptyHtml: '' + renderEmptyState({ title: 'Sin clientes', subtitle: 'No hay clientes registrados.' }) + '' }); } customersVS.setData(customers); @@ -486,7 +491,7 @@ const Customers = (() => { if (nameEl) nameEl.textContent = currentCustomer.name; const content = document.getElementById('statementContent'); - if (content) content.innerHTML = '
Cargando...
'; + if (content) content.innerHTML = '
'; modal.classList.add('active'); try { diff --git a/pos/templates/customers.html b/pos/templates/customers.html index 4366db7..aa274f2 100644 --- a/pos/templates/customers.html +++ b/pos/templates/customers.html @@ -627,7 +627,7 @@ - +