From 7cdc72678181a981facfe3215cfa441041fecaba Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Wed, 19 Nov 2025 06:22:07 -0300 Subject: [PATCH] feat: implement customizable point registration labels and GMT offset adjustment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Added functionality to customize labels for point registration types (Entrada, Saída, etc.) in the configuration settings. - Introduced a GMT offset adjustment feature to account for time zone differences during point registration. - Updated the backend to ensure default values for custom labels and GMT offset are set correctly. - Enhanced the UI to allow users to input and save personalized names for each type of point registration. - Improved the point registration process to utilize the new configuration settings for displaying labels consistently across the application. --- .../components/ponto/ComprovantePonto.svelte | 56 +++++------ .../lib/components/ponto/RegistroPonto.svelte | 65 ++++++++++--- apps/web/src/lib/utils/ponto.ts | 31 +++++- .../registro-pontos/+page.svelte | 34 ++++++- .../ti/configuracoes-ponto/+page.svelte | 96 +++++++++++++++++++ .../ti/configuracoes-relogio/+page.svelte | 32 +++++++ packages/backend/convex/configuracaoPonto.ts | 21 +++- .../backend/convex/configuracaoRelogio.ts | 9 +- packages/backend/convex/pontos.ts | 53 +++------- packages/backend/convex/schema.ts | 7 ++ 10 files changed, 311 insertions(+), 93 deletions(-) diff --git a/apps/web/src/lib/components/ponto/ComprovantePonto.svelte b/apps/web/src/lib/components/ponto/ComprovantePonto.svelte index 33c460d..b2e7385 100644 --- a/apps/web/src/lib/components/ponto/ComprovantePonto.svelte +++ b/apps/web/src/lib/components/ponto/ComprovantePonto.svelte @@ -1,6 +1,5 @@