Add "New Client" page to allow client creation#21
Merged
rafaelhgcarlos merged 12 commits intostagefrom Apr 21, 2026
Merged
Conversation
…handling - Integrates validateClientForm for centralized validation - Adds inline error handling for all fields - Implements CPF and ZIP code input masks - Improves ZIP code logic with auto-fill and validation states - Refactors form state management and error handling
Deploying hs-system with
|
| Latest commit: |
7cbdcd4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://206aaa9f.hs-system.pages.dev |
| Branch Preview URL: | https://feat-clients-module-new-clie.hs-system.pages.dev |
- Refactors zip code input handling logic - Integrates validation with errors state instead of separate zipError - Fixes error behavior during typing vs submit - Ensures proper address autofill after valid ZIP Code - Improves form state consistency and UX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Create Client" feature, allowing users to add new clients to the system through a dedicated page and form. It also integrates the new page into the application routing and updates the clients module exports so the page can be properly referenced throughout the application.
The most important changes include:
New Client Creation Feature:
NewClientPagewith a form for creating clients. The form includes fields for name, email, phone, company, status, and notes, and handles submission, validation, and user feedback using toast notifications. (src/modules/clients/pages/NewClientPage.tsx)Routing Integration:
/clients/newso authenticated users can access the client creation page. (src/router/components/AppRoute.tsx)NewClientPagewithin the existingProtectedRoutewrapper to maintain authentication control.Module Export Updates:
NewClientPage, allowing it to be easily imported and registered in the router. (src/modules/clients/pages/index.tsx)UI/UX Behavior: