Merge pull request #189 from Oloodi/187-category-short-description-of-the-task

187 category short description of the task
This commit is contained in:
José Salazar
2025-12-18 19:21:11 -05:00
committed by GitHub
5 changed files with 105 additions and 7 deletions

View File

@@ -208,6 +208,11 @@ deploy-admin-full: deploy-admin configure-iap-admin
@echo "✅ Admin Console deployed and IAP configured successfully!" @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 --- # --- Cloud IAP Configuration ---
configure-iap-launchpad: configure-iap-launchpad:
@echo "--> Configuring IAP for Cloud Run service [$(CR_LAUNCHPAD_SERVICE_NAME)]..." @echo "--> Configuring IAP for Cloud Run service [$(CR_LAUNCHPAD_SERVICE_NAME)]..."

View File

@@ -22,7 +22,7 @@ mutation CreateEvent(
$contractType: ContractType, $contractType: ContractType,
$poReference: String, $poReference: String,
$status: EventStatus!, $status: EventStatus!,
$date: Timestamp!, $date: String!,
$shifts: Any, $shifts: Any,
$addons: Any, $addons: Any,
$total: Float, $total: Float,
@@ -32,7 +32,19 @@ mutation CreateEvent(
$invoiceId: UUID, $invoiceId: UUID,
$notes: String, $notes: String,
$requested: Int, $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) { ) @auth(level: USER) {
event_insert( event_insert(
data: { data: {
@@ -68,8 +80,20 @@ mutation CreateEvent(
clientPhone: $clientPhone clientPhone: $clientPhone
invoiceId: $invoiceId invoiceId: $invoiceId
notes: $notes notes: $notes
orderType: $orderType
requested: $requested requested: $requested
assignedStaff: $assignedStaff 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, $contractType: ContractType,
$poReference: String, $poReference: String,
$status: EventStatus, $status: EventStatus,
$date: Timestamp, $date: String,
$shifts: Any, $shifts: Any,
$addons: Any, $addons: Any,
$total: Float, $total: Float,
@@ -110,7 +134,19 @@ mutation UpdateEvent(
$invoiceId: UUID, $invoiceId: UUID,
$notes: String, $notes: String,
$requested: Int, $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) { ) @auth(level: USER) {
event_update( event_update(
id: $id, id: $id,
@@ -147,8 +183,20 @@ mutation UpdateEvent(
clientPhone: $clientPhone clientPhone: $clientPhone
invoiceId: $invoiceId invoiceId: $invoiceId
notes: $notes notes: $notes
orderType: $orderType
requested: $requested requested: $requested
assignedStaff: $assignedStaff assignedStaff: $assignedStaff
department: $department
createdBy: $createdBy
recurringStartDate: $recurringStartDate
recurringEndDate: $recurringEndDate
recurringDays: $recurringDays
permanentStartDate: $permanentStartDate
permanentDays: $permanentDays
includeBackup: $includeBackup
backupStaffCount: $backupStaffCount
recurringTime: $recurringTime
permanentTime: $permanentTime
} }
) )
} }

View File

@@ -45,7 +45,18 @@ query listEvents (
notes notes
requested requested
assignedStaff assignedStaff
orderType
department
createdBy createdBy
recurringStartDate
recurringEndDate
recurringDays
permanentStartDate
permanentDays
includeBackup
backupStaffCount
recurringTime
permanentTime
} }
} }
@@ -87,7 +98,18 @@ query getEventById(
invoiceId invoiceId
notes notes
requested requested
orderType
department
assignedStaff assignedStaff
recurringStartDate
recurringEndDate
recurringDays
permanentStartDate
permanentDays
includeBackup
backupStaffCount
recurringTime
permanentTime
} }
} }
@@ -99,7 +121,7 @@ query filterEvents(
$isRapid: Boolean, $isRapid: Boolean,
$isMultiDay: Boolean, $isMultiDay: Boolean,
$recurrenceType: RecurrenceType, $recurrenceType: RecurrenceType,
$date: Timestamp, $date: String,
$hub: String, $hub: String,
$eventLocation: String, $eventLocation: String,
$contractType: ContractType, $contractType: ContractType,
@@ -155,6 +177,17 @@ query filterEvents(
notes notes
requested requested
assignedStaff assignedStaff
orderType
department
createdBy createdBy
recurringStartDate
recurringEndDate
recurringDays
permanentStartDate
permanentDays
includeBackup
backupStaffCount
recurringTime
permanentTime
} }
} }

View File

@@ -46,14 +46,14 @@ type Event @table(name: "events") {
detectedConflicts: Any detectedConflicts: Any
businessId: UUID! businessId: UUID!
businessName: String businessName: String
vendorId: String vendorId: String @default(expr: "auth.uid")
vendorName: String vendorName: String
hub: String hub: String
eventLocation: String eventLocation: String
contractType: ContractType contractType: ContractType
poReference: String poReference: String
status: EventStatus! status: EventStatus!
date: Timestamp! date: String!
shifts: Any shifts: Any
addons: Any addons: Any
total: Float total: Float
@@ -64,6 +64,17 @@ type Event @table(name: "events") {
notes: String notes: String
requested: Int @default(expr: "0") requested: Int @default(expr: "0")
assignedStaff: Any 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") createdDate: Timestamp @default(expr: "request.time")
updatedDate: Timestamp @default(expr: "request.time") updatedDate: Timestamp @default(expr: "request.time")
createdBy: String @default(expr: "auth.uid") createdBy: String @default(expr: "auth.uid")

View File

@@ -23,6 +23,7 @@ import {
Check, Check,
Calendar, Calendar,
Sliders, Sliders,
Clock,
TrendingUp, TrendingUp,
Shield, Shield,
DollarSign, DollarSign,