From 6101a56a6084d97e36a64d4bb9682bbd710f8b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:10:35 -0500 Subject: [PATCH 1/3] modification schema of event --- dataconnect/connector/event/mutations.gql | 56 +++++++++++++++++++++-- dataconnect/connector/event/queries.gql | 35 +++++++++++++- dataconnect/schema/event.gql | 15 +++++- 3 files changed, 99 insertions(+), 7 deletions(-) diff --git a/dataconnect/connector/event/mutations.gql b/dataconnect/connector/event/mutations.gql index 9d003504..c04425ee 100644 --- a/dataconnect/connector/event/mutations.gql +++ b/dataconnect/connector/event/mutations.gql @@ -22,7 +22,7 @@ mutation CreateEvent( $contractType: ContractType, $poReference: String, $status: EventStatus!, - $date: Timestamp!, + $date: String!, $shifts: Any, $addons: Any, $total: Float, @@ -32,7 +32,19 @@ mutation CreateEvent( $invoiceId: UUID, $notes: String, $requested: Int, - $assignedStaff: Any + $assignedStaff: Any, + $department: String, + $createdBy: String, + $orderType: String, + $recurringStartDate: String, + $recurringEndDate: String, + $recurringDays: Any, + $permanentStartDate: String, + $permanentDays: Any, + $includeBackup: Boolean, + $backupStaffCount: Int, + $recurringTime: String, + $permanentTime: String ) @auth(level: USER) { event_insert( data: { @@ -68,8 +80,20 @@ mutation CreateEvent( clientPhone: $clientPhone invoiceId: $invoiceId notes: $notes + orderType: $orderType requested: $requested assignedStaff: $assignedStaff + department: $department + createdBy: $createdBy + recurringStartDate: $recurringStartDate + recurringEndDate: $recurringEndDate + recurringDays: $recurringDays + permanentStartDate: $permanentStartDate + permanentDays: $permanentDays + includeBackup: $includeBackup + backupStaffCount: $backupStaffCount + recurringTime: $recurringTime + permanentTime: $permanentTime } ) } @@ -100,7 +124,7 @@ mutation UpdateEvent( $contractType: ContractType, $poReference: String, $status: EventStatus, - $date: Timestamp, + $date: String, $shifts: Any, $addons: Any, $total: Float, @@ -110,7 +134,19 @@ mutation UpdateEvent( $invoiceId: UUID, $notes: String, $requested: Int, - $assignedStaff: Any + $orderType: String, + $department: String, + $assignedStaff: Any, + $createdBy: String, + $recurringStartDate: String, + $recurringEndDate: String, + $recurringDays: Any, + $permanentStartDate: String, + $permanentDays: Any, + $includeBackup: Boolean, + $backupStaffCount: Int, + $recurringTime: String, + $permanentTime: String ) @auth(level: USER) { event_update( id: $id, @@ -147,8 +183,20 @@ mutation UpdateEvent( clientPhone: $clientPhone invoiceId: $invoiceId notes: $notes + orderType: $orderType requested: $requested assignedStaff: $assignedStaff + department: $department + createdBy: $createdBy + recurringStartDate: $recurringStartDate + recurringEndDate: $recurringEndDate + recurringDays: $recurringDays + permanentStartDate: $permanentStartDate + permanentDays: $permanentDays + includeBackup: $includeBackup + backupStaffCount: $backupStaffCount + recurringTime: $recurringTime + permanentTime: $permanentTime } ) } diff --git a/dataconnect/connector/event/queries.gql b/dataconnect/connector/event/queries.gql index 98f1b392..2a4a5996 100644 --- a/dataconnect/connector/event/queries.gql +++ b/dataconnect/connector/event/queries.gql @@ -45,7 +45,18 @@ query listEvents ( notes requested assignedStaff + orderType + department createdBy + recurringStartDate + recurringEndDate + recurringDays + permanentStartDate + permanentDays + includeBackup + backupStaffCount + recurringTime + permanentTime } } @@ -87,7 +98,18 @@ query getEventById( invoiceId notes requested + orderType + department assignedStaff + recurringStartDate + recurringEndDate + recurringDays + permanentStartDate + permanentDays + includeBackup + backupStaffCount + recurringTime + permanentTime } } @@ -99,7 +121,7 @@ query filterEvents( $isRapid: Boolean, $isMultiDay: Boolean, $recurrenceType: RecurrenceType, - $date: Timestamp, + $date: String, $hub: String, $eventLocation: String, $contractType: ContractType, @@ -155,6 +177,17 @@ query filterEvents( notes requested assignedStaff + orderType + department createdBy + recurringStartDate + recurringEndDate + recurringDays + permanentStartDate + permanentDays + includeBackup + backupStaffCount + recurringTime + permanentTime } } diff --git a/dataconnect/schema/event.gql b/dataconnect/schema/event.gql index cad6f68f..d1de38ea 100644 --- a/dataconnect/schema/event.gql +++ b/dataconnect/schema/event.gql @@ -46,14 +46,14 @@ type Event @table(name: "events") { detectedConflicts: Any businessId: UUID! businessName: String - vendorId: String + vendorId: String @default(expr: "auth.uid") vendorName: String hub: String eventLocation: String contractType: ContractType poReference: String status: EventStatus! - date: Timestamp! + date: String! shifts: Any addons: Any total: Float @@ -64,6 +64,17 @@ type Event @table(name: "events") { notes: String requested: Int @default(expr: "0") assignedStaff: Any + orderType: String + department: String + recurringStartDate: String + recurringEndDate: String + recurringDays: Any + permanentStartDate: String + permanentDays: Any + includeBackup: Boolean + backupStaffCount: Int + recurringTime: String + permanentTime: String createdDate: Timestamp @default(expr: "request.time") updatedDate: Timestamp @default(expr: "request.time") createdBy: String @default(expr: "auth.uid") From 7d3185708cfe50a922313d02e2a6ea7cced4a64a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:11:38 -0500 Subject: [PATCH 2/3] adding instrucction for web free? --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 9bca6ce7..71c83e6a 100644 --- a/Makefile +++ b/Makefile @@ -208,6 +208,11 @@ deploy-admin-full: deploy-admin configure-iap-admin @echo "✅ Admin Console deployed and IAP configured successfully!" +# --- Frontend Web Free --- +free-dev: dataconnect-sync + @echo "--> Starting free web development server on http://localhost:5174 ..." + @cd frontend-web-free && npm run dev -- --port 5174 + # --- Cloud IAP Configuration --- configure-iap-launchpad: @echo "--> Configuring IAP for Cloud Run service [$(CR_LAUNCHPAD_SERVICE_NAME)]..." From 671003932c6be70aab6b7cb77b29472e721bfc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Salazar?= <73718835+joshrs23@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:12:11 -0500 Subject: [PATCH 3/3] just enums --- frontend-web-free/src/components/events/SmartAssignModal.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend-web-free/src/components/events/SmartAssignModal.jsx b/frontend-web-free/src/components/events/SmartAssignModal.jsx index 94cbefdb..3dc12d3c 100644 --- a/frontend-web-free/src/components/events/SmartAssignModal.jsx +++ b/frontend-web-free/src/components/events/SmartAssignModal.jsx @@ -23,6 +23,7 @@ import { Check, Calendar, Sliders, + Clock, TrendingUp, Shield, DollarSign,