From 57073376bd069e7b65645e620d72ef530545fdd4 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 4 Oct 2026 21:58:31 -0600 Subject: [PATCH] fix(balance): actualizacion de saldo y disponible hoy en tiempo real via SSE y correccion de zona horaria local --- public/css/styles.css | 12 ++++ public/index.html | 6 +- public/js/app.js | 126 ++++++++++++++++++++++++++++++++++++++++-- public/js/pos.js | 24 ++++++++ public/pos.html | 4 +- server/db.js | 17 +++--- server/server.js | 85 ++++++++++++++++++++++++++-- 7 files changed, 250 insertions(+), 24 deletions(-) diff --git a/public/css/styles.css b/public/css/styles.css index 1f36bb2..4fdbed7 100644 --- a/public/css/styles.css +++ b/public/css/styles.css @@ -1840,3 +1840,15 @@ body.dark-mode .selected-student-banner { border-color: #38bdf8; } +/* Animación de actualización de saldo y disponible en tiempo real */ +@keyframes balancePulseHighlight { + 0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0)); } + 35% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.9)); color: #0284c7; } + 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0)); } +} + +.balance-updated { + animation: balancePulseHighlight 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); + display: inline-block; +} + diff --git a/public/index.html b/public/index.html index 6b2a883..22e5144 100644 --- a/public/index.html +++ b/public/index.html @@ -10,7 +10,7 @@ - +