Add "New Client" page to allow client creation#21
Open
rafaelhgcarlos wants to merge 3 commits intostagefrom
Open
Add "New Client" page to allow client creation#21rafaelhgcarlos wants to merge 3 commits intostagefrom
rafaelhgcarlos wants to merge 3 commits intostagefrom
Conversation
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: