From 467e04b605286b743de6f6ea8fbef9a4db1d05ab Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Sat, 22 Nov 2025 23:57:05 -0300 Subject: [PATCH] feat: enhance RegistroPonto and WebcamCapture components for improved data handling and user experience - Added a refresh mechanism in the RegistroPonto component to ensure queries are updated after point registration, improving data accuracy. - Expanded the WebcamCapture component to prevent multiple simultaneous play calls, enhancing video playback reliability. - Updated the registro-pontos page to default the date range to the last 30 days for better visibility and user convenience. - Introduced debug logging for queries and data handling to assist in development and troubleshooting. --- .../components/ponto/ComprovantePonto.svelte | 76 ++++++++++++++- .../lib/components/ponto/RegistroPonto.svelte | 39 +++++++- .../lib/components/ponto/WebcamCapture.svelte | 92 ++++++++++++------- .../registro-pontos/+page.svelte | 32 ++++++- packages/backend/convex/pontos.ts | 88 +++++++++++++++--- 5 files changed, 269 insertions(+), 58 deletions(-) diff --git a/apps/web/src/lib/components/ponto/ComprovantePonto.svelte b/apps/web/src/lib/components/ponto/ComprovantePonto.svelte index aabb54f..4656d4e 100644 --- a/apps/web/src/lib/components/ponto/ComprovantePonto.svelte +++ b/apps/web/src/lib/components/ponto/ComprovantePonto.svelte @@ -237,18 +237,36 @@ } -