[WIP] Add "New Service" page to allow service creation#20
Merged
reenatoteixeira merged 6 commits intostagefrom Mar 31, 2026
Merged
[WIP] Add "New Service" page to allow service creation#20reenatoteixeira merged 6 commits intostagefrom
reenatoteixeira merged 6 commits intostagefrom
Conversation
…ing instead of min-h-screen
…top padding instead of min-h-screen" This reverts commit bda189a.
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 Service" feature, allowing users to add new services to the catalog via a dedicated page and form. It also updates the service data model, improves the input field UI, and ensures newly created service documents include their generated ID.
The most important changes include:
New Service Creation Feature:
NewServicePagewith a form for creating services, including fields for name, description, pricing, and promotional details. The form handles submission, validation, and user feedback. (src/modules/services/pages/NewServicePage.tsx)/services/newso only authenticated users can access it. (src/modules/services/pages/index.tsx,src/router/components/AppRoute.tsx) [1] [2] [3]Data Model and Backend Integration:
Servicetype by removing the unusedimageUrlproperty to match the new service creation form. (src/modules/services/types/Service.types.ts)createDocumentfunction to automatically set the generated document ID into theidfield of the new service record. (src/services/firebase/firestore.ts)UI/UX Improvements:
InputFieldcomponent's styling to ensure full width and adjusted label styling for consistency. (src/shared/components/InputField/InputField.styles.ts,src/shared/components/InputField/InputField.tsx) [1] [2]