From 94f4b23a395406fa74cc22e846375b26723c8338 Mon Sep 17 00:00:00 2001 From: killer-cf Date: Wed, 12 Nov 2025 16:29:18 -0300 Subject: [PATCH] refactor: enhance employee registration form and backend validation - Updated the employee registration form in Svelte to include additional fields for personal and banking information. - Improved validation logic for required fields and document uploads, ensuring better user feedback. - Refactored the backend mutation to streamline argument handling and added new fields for document storage. - Enhanced the overall structure and readability of the code, maintaining existing functionality while improving maintainability. --- .../funcionarios/cadastro/+page.svelte | 672 +++++++++++------- packages/backend/convex/funcionarios.ts | 217 +++--- 2 files changed, 539 insertions(+), 350 deletions(-) diff --git a/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/cadastro/+page.svelte b/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/cadastro/+page.svelte index c19b909..931c6f4 100644 --- a/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/cadastro/+page.svelte +++ b/apps/web/src/routes/(dashboard)/recursos-humanos/funcionarios/cadastro/+page.svelte @@ -1,202 +1,216 @@