@burdenoff/microfe-ggnomad 2026.726.1 → 2026.728.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ggnomad/GGNomadRoot.d.ts.map +1 -1
- package/dist/ggnomad/GGNomadRoot.js +63 -56
- package/dist/ggnomad/GGNomadRoot.js.map +1 -1
- package/dist/ggnomad/GGNomadRoutes.d.ts.map +1 -1
- package/dist/ggnomad/GGNomadRoutes.js +9 -5
- package/dist/ggnomad/GGNomadRoutes.js.map +1 -1
- package/dist/ggnomad/components/AuditTrailDialog.d.ts +17 -0
- package/dist/ggnomad/components/AuditTrailDialog.d.ts.map +1 -0
- package/dist/ggnomad/components/AuditTrailDialog.js +88 -0
- package/dist/ggnomad/components/AuditTrailDialog.js.map +1 -0
- package/dist/ggnomad/components/index.d.ts +1 -0
- package/dist/ggnomad/components/index.d.ts.map +1 -1
- package/dist/ggnomad/components/index.js +1 -0
- package/dist/ggnomad/graphql.d.ts +12 -0
- package/dist/ggnomad/graphql.d.ts.map +1 -1
- package/dist/ggnomad/graphql.js +102 -1
- package/dist/ggnomad/graphql.js.map +1 -1
- package/dist/ggnomad/pages/DashboardPage.d.ts.map +1 -1
- package/dist/ggnomad/pages/DashboardPage.js.map +1 -1
- package/dist/ggnomad/pages/OperationsQueuePage.d.ts +11 -0
- package/dist/ggnomad/pages/OperationsQueuePage.d.ts.map +1 -0
- package/dist/ggnomad/pages/OperationsQueuePage.js +323 -0
- package/dist/ggnomad/pages/OperationsQueuePage.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.js","names":[],"sources":["../../src/ggnomad/graphql.ts"],"sourcesContent":["import { gql } from '@apollo/client/core';\n\nexport const GGNOMAD_OVERVIEW_QUERY = gql`\n query GGNomadOverview {\n ggnomadOverviewStats {\n users\n listings\n bookings\n monthlyRevenue\n }\n ggnomadAnalytics {\n totalRevenue\n totalBookings\n totalUsers\n conversionRate\n revenueByCategory\n }\n }\n`;\n\n/**\n * One bookable item of each type (properties are priced per night, the rest\n * carry a flat price). Used to seed the Bookings \"create demo booking\" action\n * with a REAL listing id so the mutation passes the backend's\n * assertTargetInWorkspace check instead of failing on a synthetic id.\n */\nexport const GGNOMAD_BOOKABLE_SAMPLE_QUERY = gql`\n query GGNomadBookableSample {\n ggnomadProperties(pagination: { limit: 1, offset: 0 }) {\n id\n name\n pricePerNight\n currency\n }\n ggnomadTours(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n ggnomadEvents(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n ggnomadActivities(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n }\n`;\n\n/**\n * id + name for every favouritable listing type, used to (a) resolve the real\n * entity name for a saved favorite (which the backend only exposes as\n * targetType + targetId) and (b) seed the \"toggle demo favorite\" action with a\n * real target id.\n */\nexport const GGNOMAD_FAVORITE_TARGETS_QUERY = gql`\n query GGNomadFavoriteTargets {\n ggnomadProperties(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadTours(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadEvents(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadActivities(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n }\n`;\n\nexport const GGNOMAD_PROVIDERS_QUERY = gql`\n query GGNomadProviders($limit: Int, $offset: Int) {\n ggnomadProviders(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n type\n status\n listingCount\n totalRevenue\n rating\n reviewCount\n contactEmail\n website\n }\n }\n`;\n\nexport const GGNOMAD_PROPERTIES_QUERY = gql`\n query GGNomadProperties($limit: Int, $offset: Int) {\n ggnomadProperties(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n type\n status\n description\n pricePerNight\n currency\n rating\n reviewCount\n maxGuests\n amenities\n images\n providerId\n }\n }\n`;\n\nexport const GGNOMAD_PROPERTY_QUERY = gql`\n query GGNomadProperty($id: ID!) {\n ggnomadProperty(id: $id) {\n id\n name\n type\n status\n description\n address\n pricePerNight\n currency\n rating\n reviewCount\n bedrooms\n bathrooms\n maxGuests\n checkInTime\n checkOutTime\n amenities\n images\n provider {\n id\n name\n type\n rating\n }\n }\n }\n`;\n\n// Query to get property details for booking - ensures id is included\nexport const GGNOMAD_PROPERTY_FOR_BOOKING_QUERY = gql`\n query GGNomadPropertyForBooking($id: ID!) {\n ggnomadProperty(id: $id) {\n id\n name\n pricePerNight\n currency\n }\n }\n`;\n\nexport const GGNOMAD_TOURS_QUERY = gql`\n query GGNomadTours($limit: Int, $offset: Int) {\n ggnomadTours(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n type\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n highlights\n images\n }\n }\n`;\n\nexport const GGNOMAD_TOUR_QUERY = gql`\n query GGNomadTour($id: ID!) {\n ggnomadTour(id: $id) {\n id\n name\n description\n type\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n highlights\n images\n languages\n guideName\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_EVENTS_QUERY = gql`\n query GGNomadEvents($limit: Int, $offset: Int) {\n ggnomadEvents(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n category\n status\n startsAt\n price\n currency\n rating\n reviewCount\n performers\n images\n }\n }\n`;\n\nexport const GGNOMAD_EVENT_QUERY = gql`\n query GGNomadEvent($id: ID!) {\n ggnomadEvent(id: $id) {\n id\n name\n description\n category\n status\n startsAt\n endsAt\n venue\n price\n currency\n rating\n reviewCount\n performers\n images\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_ACTIVITIES_QUERY = gql`\n query GGNomadActivities($limit: Int, $offset: Int) {\n ggnomadActivities(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n category\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n maxParticipants\n includes\n requirements\n images\n }\n }\n`;\n\nexport const GGNOMAD_ACTIVITY_QUERY = gql`\n query GGNomadActivity($id: ID!) {\n ggnomadActivity(id: $id) {\n id\n name\n description\n category\n status\n location\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n maxParticipants\n includes\n requirements\n safetyInfo\n images\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_TRIPS_QUERY = gql`\n query GGNomadTrips($limit: Int, $offset: Int) {\n ggnomadTrips(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n transportMode\n status\n origin\n destination\n departureAt\n arrivalAt\n isRoundTrip\n carrier\n class\n price\n currency\n passengers\n ecoFriendly\n }\n }\n`;\n\nexport const GGNOMAD_BOOKINGS_QUERY = gql`\n query GGNomadBookings($limit: Int, $offset: Int) {\n ggnomadBookings(pagination: { limit: $limit, offset: $offset }) {\n id\n referenceCode\n bookingType\n status\n itemId\n itemName\n guestName\n guestEmail\n guestPhone\n guests\n checkIn\n checkOut\n eventDate\n totalPrice\n currency\n paymentStatus\n paymentMethod\n specialRequests\n createdAt\n }\n }\n`;\n\nexport const GGNOMAD_FAVORITES_QUERY = gql`\n query GGNomadFavorites {\n ggnomadFavorites\n }\n`;\n\nexport const CREATE_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CreateGGNomadBooking($input: CreateGgnomadBookingInput!) {\n createGgnomadBooking(input: $input) {\n id\n referenceCode\n bookingType\n status\n itemId\n itemName\n guestName\n totalPrice\n currency\n createdAt\n }\n }\n`;\n\nexport const TOGGLE_GGNOMAD_FAVORITE_MUTATION = gql`\n mutation ToggleGGNomadFavorite($input: ToggleGgnomadFavoriteInput!) {\n toggleGgnomadFavorite(input: $input)\n }\n`;\n\nexport const CANCEL_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CancelGGNomadBooking($id: ID!, $reason: String) {\n cancelGgnomadBooking(id: $id, reason: $reason) {\n id\n status\n }\n }\n`;\n\n// Mobile tickets / QR-code redemption (BOFF-4362)\nexport const GGNOMAD_TICKETS_QUERY = gql`\n query GGNomadTickets($bookingId: String) {\n ggnomadTickets(bookingId: $bookingId) {\n id\n bookingId\n ticketCode\n qrCodeDataUrl\n status\n issuedAt\n redeemedAt\n redeemedBy\n revokedAt\n revokedReason\n }\n }\n`;\n\nexport const ISSUE_GGNOMAD_TICKET_MUTATION = gql`\n mutation IssueGGNomadTicket($bookingId: ID!) {\n issueGgnomadTicket(bookingId: $bookingId) {\n id\n bookingId\n ticketCode\n qrCodeDataUrl\n status\n issuedAt\n }\n }\n`;\n\nexport const REDEEM_GGNOMAD_TICKET_MUTATION = gql`\n mutation RedeemGGNomadTicket($token: String!) {\n redeemGgnomadTicket(token: $token) {\n id\n bookingId\n ticketCode\n status\n redeemedAt\n redeemedBy\n }\n }\n`;\n\nexport const REVOKE_GGNOMAD_TICKET_MUTATION = gql`\n mutation RevokeGGNomadTicket($id: ID!, $reason: String) {\n revokeGgnomadTicket(id: $id, reason: $reason) {\n id\n status\n revokedAt\n revokedReason\n }\n }\n`;\n\n// Trip Plan Queries\nexport const GGNOMAD_TRIP_PLANS_QUERY = gql`\n query GGNomadTripPlans($limit: Int, $offset: Int) {\n ggnomadTripPlans(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n createdAt\n }\n }\n`;\n\nexport const GGNOMAD_TRIP_PLAN_QUERY = gql`\n query GGNomadTripPlan($id: ID!) {\n ggnomadTripPlan(id: $id) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n items {\n id\n itemType\n itemId\n itemName\n day\n scheduledAt\n price\n currency\n notes\n }\n createdAt\n updatedAt\n }\n }\n`;\n\n// Trip Plan Mutations\nexport const CREATE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation CreateGGNomadTripPlan($input: CreateGgnomadTripPlanInput!) {\n createGgnomadTripPlan(input: $input) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n createdAt\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation UpdateGGNomadTripPlan($id: ID!, $input: UpdateGgnomadTripPlanInput!) {\n updateGgnomadTripPlan(id: $id, input: $input) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n updatedAt\n }\n }\n`;\n\nexport const DELETE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation DeleteGGNomadTripPlan($id: ID!) {\n deleteGgnomadTripPlan(id: $id)\n }\n`;\n\nexport const ADD_GGNOMAD_TRIP_PLAN_ITEM_MUTATION = gql`\n mutation AddGGNomadTripPlanItem($tripPlanId: ID!, $input: AddGgnomadTripPlanItemInput!) {\n addGgnomadTripPlanItem(tripPlanId: $tripPlanId, input: $input) {\n id\n itemType\n itemId\n itemName\n day\n scheduledAt\n price\n currency\n notes\n }\n }\n`;\n\nexport const REMOVE_GGNOMAD_TRIP_PLAN_ITEM_MUTATION = gql`\n mutation RemoveGGNomadTripPlanItem($id: ID!) {\n removeGgnomadTripPlanItem(id: $id)\n }\n`;\n\n// Review Queries\nexport const GGNOMAD_REVIEW_SUMMARY_QUERY = gql`\n query GGNomadReviewSummary($targetType: GgnomadBookingType!, $targetId: String!) {\n ggnomadReviewSummary(targetType: $targetType, targetId: $targetId) {\n average\n count\n distribution\n }\n }\n`;\n\nexport const GGNOMAD_REVIEWS_QUERY = gql`\n query GGNomadReviews(\n $targetType: GgnomadBookingType!\n $targetId: String!\n $limit: Int\n $offset: Int\n ) {\n ggnomadReviews(\n targetType: $targetType\n targetId: $targetId\n pagination: { limit: $limit, offset: $offset }\n ) {\n id\n rating\n title\n content\n images\n isVerified\n helpfulCount\n response\n respondedAt\n createdAt\n }\n }\n`;\n\n// Review Mutations\nexport const CREATE_GGNOMAD_REVIEW_MUTATION = gql`\n mutation CreateGGNomadReview($input: CreateGgnomadReviewInput!) {\n createGgnomadReview(input: $input) {\n id\n rating\n title\n content\n }\n }\n`;\n\nexport const RESPOND_GGNOMAD_REVIEW_MUTATION = gql`\n mutation RespondGGNomadReview($id: ID!, $response: String!) {\n respondGgnomadReview(id: $id, response: $response) {\n id\n response\n respondedAt\n }\n }\n`;\n\n// Listing Edit Mutations\nexport const UPDATE_GGNOMAD_PROPERTY_MUTATION = gql`\n mutation UpdateGGNomadProperty($id: ID!, $input: UpdateGgnomadPropertyInput!) {\n updateGgnomadProperty(id: $id, input: $input) {\n id\n name\n description\n pricePerNight\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TOUR_MUTATION = gql`\n mutation UpdateGGNomadTour($id: ID!, $input: UpdateGgnomadTourInput!) {\n updateGgnomadTour(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_EVENT_MUTATION = gql`\n mutation UpdateGGNomadEvent($id: ID!, $input: UpdateGgnomadEventInput!) {\n updateGgnomadEvent(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_ACTIVITY_MUTATION = gql`\n mutation UpdateGGNomadActivity($id: ID!, $input: UpdateGgnomadActivityInput!) {\n updateGgnomadActivity(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\n// Corporate travel management — policy, budgets, approvals (BOFF-4365)\nexport const GGNOMAD_TRAVEL_POLICIES_QUERY = gql`\n query GGNomadTravelPolicies($limit: Int, $offset: Int) {\n ggnomadTravelPolicies(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n isActive\n costCenter\n currency\n maxBookingAmount\n maxMonthlyPerTraveler\n blockedDestinations\n allowedTravelClasses\n requireApprovalAlways\n createdAt\n }\n }\n`;\n\nexport const CREATE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation CreateGGNomadTravelPolicy($input: CreateGgnomadTravelPolicyInput!) {\n createGgnomadTravelPolicy(input: $input) {\n id\n name\n isActive\n costCenter\n currency\n maxBookingAmount\n maxMonthlyPerTraveler\n blockedDestinations\n allowedTravelClasses\n requireApprovalAlways\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation UpdateGGNomadTravelPolicy($id: ID!, $input: UpdateGgnomadTravelPolicyInput!) {\n updateGgnomadTravelPolicy(id: $id, input: $input) {\n id\n isActive\n }\n }\n`;\n\nexport const DELETE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation DeleteGGNomadTravelPolicy($id: ID!) {\n deleteGgnomadTravelPolicy(id: $id)\n }\n`;\n\nexport const GGNOMAD_BOOKING_APPROVALS_QUERY = gql`\n query GGNomadBookingApprovals($status: GgnomadApprovalStatus, $limit: Int, $offset: Int) {\n ggnomadBookingApprovals(status: $status, pagination: { limit: $limit, offset: $offset }) {\n id\n bookingId\n requestedBy\n costCenter\n reasons\n status\n reviewedBy\n reviewedAt\n reviewNote\n createdAt\n booking {\n id\n referenceCode\n itemName\n totalPrice\n currency\n status\n paymentStatus\n }\n }\n }\n`;\n\nexport const APPROVE_GGNOMAD_BOOKING_APPROVAL_MUTATION = gql`\n mutation ApproveGGNomadBookingApproval($id: ID!, $note: String) {\n approveGgnomadBookingApproval(id: $id, note: $note) {\n id\n status\n reviewedBy\n reviewedAt\n }\n }\n`;\n\nexport const REJECT_GGNOMAD_BOOKING_APPROVAL_MUTATION = gql`\n mutation RejectGGNomadBookingApproval($id: ID!, $reason: String!) {\n rejectGgnomadBookingApproval(id: $id, reason: $reason) {\n id\n status\n reviewedBy\n reviewedAt\n reviewNote\n }\n }\n`;\n\nexport const GGNOMAD_SPEND_SUMMARY_QUERY = gql`\n query GGNomadSpendSummary($costCenter: String) {\n ggnomadSpendSummary(costCenter: $costCenter) {\n totalSpend\n bookingCount\n pendingApprovalCount\n pendingApprovalAmount\n byCostCenter\n }\n }\n`;\n"],"mappings":";;AAEA,IAAa,IAAyB,CAAG;;;;;;;;;;;;;;;;GAwB5B,IAAgC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCnC,IAAiC,CAA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AatC,IAA+B,CAAG;;;;;;;;;;;GAalC,IAAgC,CAAG;;;;;;;;;;;GAanC,IAAmC,CAAG;;;;;;;;;;;GActC,IAAgC,CAAG;;;;;;;;;;;;;;;;GAkBnC,IAAwC,CAAG;;;;;;;;;;;;;;;;AAiBH,CAAG;;;;;;;;AASxD,IAAa,IAAwC,CAAG;;;;GAM3C,IAAkC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;GA0BrC,IAA4C,CAAG;;;;;;;;;GAW/C,IAA2C,CAAG;;;;;;;;;;GAY9C,IAA8B,CAAG"}
|
|
1
|
+
{"version":3,"file":"graphql.js","names":[],"sources":["../../src/ggnomad/graphql.ts"],"sourcesContent":["import { gql } from '@apollo/client/core';\n\nexport const GGNOMAD_OVERVIEW_QUERY = gql`\n query GGNomadOverview {\n ggnomadOverviewStats {\n users\n listings\n bookings\n monthlyRevenue\n }\n ggnomadAnalytics {\n totalRevenue\n totalBookings\n totalUsers\n conversionRate\n revenueByCategory\n }\n }\n`;\n\n/**\n * One bookable item of each type (properties are priced per night, the rest\n * carry a flat price). Used to seed the Bookings \"create demo booking\" action\n * with a REAL listing id so the mutation passes the backend's\n * assertTargetInWorkspace check instead of failing on a synthetic id.\n */\nexport const GGNOMAD_BOOKABLE_SAMPLE_QUERY = gql`\n query GGNomadBookableSample {\n ggnomadProperties(pagination: { limit: 1, offset: 0 }) {\n id\n name\n pricePerNight\n currency\n }\n ggnomadTours(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n ggnomadEvents(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n ggnomadActivities(pagination: { limit: 1, offset: 0 }) {\n id\n name\n price\n currency\n }\n }\n`;\n\n/**\n * id + name for every favouritable listing type, used to (a) resolve the real\n * entity name for a saved favorite (which the backend only exposes as\n * targetType + targetId) and (b) seed the \"toggle demo favorite\" action with a\n * real target id.\n */\nexport const GGNOMAD_FAVORITE_TARGETS_QUERY = gql`\n query GGNomadFavoriteTargets {\n ggnomadProperties(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadTours(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadEvents(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n ggnomadActivities(pagination: { limit: 100, offset: 0 }) {\n id\n name\n }\n }\n`;\n\nexport const GGNOMAD_PROVIDERS_QUERY = gql`\n query GGNomadProviders($limit: Int, $offset: Int) {\n ggnomadProviders(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n type\n status\n listingCount\n totalRevenue\n rating\n reviewCount\n contactEmail\n website\n }\n }\n`;\n\nexport const GGNOMAD_PROPERTIES_QUERY = gql`\n query GGNomadProperties($limit: Int, $offset: Int) {\n ggnomadProperties(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n type\n status\n description\n pricePerNight\n currency\n rating\n reviewCount\n maxGuests\n amenities\n images\n providerId\n }\n }\n`;\n\nexport const GGNOMAD_PROPERTY_QUERY = gql`\n query GGNomadProperty($id: ID!) {\n ggnomadProperty(id: $id) {\n id\n name\n type\n status\n description\n address\n pricePerNight\n currency\n rating\n reviewCount\n bedrooms\n bathrooms\n maxGuests\n checkInTime\n checkOutTime\n amenities\n images\n provider {\n id\n name\n type\n rating\n }\n }\n }\n`;\n\n// Query to get property details for booking - ensures id is included\nexport const GGNOMAD_PROPERTY_FOR_BOOKING_QUERY = gql`\n query GGNomadPropertyForBooking($id: ID!) {\n ggnomadProperty(id: $id) {\n id\n name\n pricePerNight\n currency\n }\n }\n`;\n\nexport const GGNOMAD_TOURS_QUERY = gql`\n query GGNomadTours($limit: Int, $offset: Int) {\n ggnomadTours(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n type\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n highlights\n images\n }\n }\n`;\n\nexport const GGNOMAD_TOUR_QUERY = gql`\n query GGNomadTour($id: ID!) {\n ggnomadTour(id: $id) {\n id\n name\n description\n type\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n highlights\n images\n languages\n guideName\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_EVENTS_QUERY = gql`\n query GGNomadEvents($limit: Int, $offset: Int) {\n ggnomadEvents(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n category\n status\n startsAt\n price\n currency\n rating\n reviewCount\n performers\n images\n }\n }\n`;\n\nexport const GGNOMAD_EVENT_QUERY = gql`\n query GGNomadEvent($id: ID!) {\n ggnomadEvent(id: $id) {\n id\n name\n description\n category\n status\n startsAt\n endsAt\n venue\n price\n currency\n rating\n reviewCount\n performers\n images\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_ACTIVITIES_QUERY = gql`\n query GGNomadActivities($limit: Int, $offset: Int) {\n ggnomadActivities(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n category\n status\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n maxParticipants\n includes\n requirements\n images\n }\n }\n`;\n\nexport const GGNOMAD_ACTIVITY_QUERY = gql`\n query GGNomadActivity($id: ID!) {\n ggnomadActivity(id: $id) {\n id\n name\n description\n category\n status\n location\n duration\n difficulty\n price\n currency\n rating\n reviewCount\n maxParticipants\n includes\n requirements\n safetyInfo\n images\n provider {\n id\n name\n }\n }\n }\n`;\n\nexport const GGNOMAD_TRIPS_QUERY = gql`\n query GGNomadTrips($limit: Int, $offset: Int) {\n ggnomadTrips(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n transportMode\n status\n origin\n destination\n departureAt\n arrivalAt\n isRoundTrip\n carrier\n class\n price\n currency\n passengers\n ecoFriendly\n }\n }\n`;\n\nexport const GGNOMAD_BOOKINGS_QUERY = gql`\n query GGNomadBookings($limit: Int, $offset: Int) {\n ggnomadBookings(pagination: { limit: $limit, offset: $offset }) {\n id\n referenceCode\n bookingType\n status\n itemId\n itemName\n guestName\n guestEmail\n guestPhone\n guests\n checkIn\n checkOut\n eventDate\n totalPrice\n currency\n paymentStatus\n paymentMethod\n specialRequests\n createdAt\n }\n }\n`;\n\nexport const GGNOMAD_FAVORITES_QUERY = gql`\n query GGNomadFavorites {\n ggnomadFavorites\n }\n`;\n\nexport const CREATE_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CreateGGNomadBooking($input: CreateGgnomadBookingInput!) {\n createGgnomadBooking(input: $input) {\n id\n referenceCode\n bookingType\n status\n itemId\n itemName\n guestName\n totalPrice\n currency\n createdAt\n }\n }\n`;\n\nexport const TOGGLE_GGNOMAD_FAVORITE_MUTATION = gql`\n mutation ToggleGGNomadFavorite($input: ToggleGgnomadFavoriteInput!) {\n toggleGgnomadFavorite(input: $input)\n }\n`;\n\nexport const CANCEL_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CancelGGNomadBooking($id: ID!, $reason: String) {\n cancelGgnomadBooking(id: $id, reason: $reason) {\n id\n status\n }\n }\n`;\n\n// Mobile tickets / QR-code redemption (BOFF-4362)\nexport const GGNOMAD_TICKETS_QUERY = gql`\n query GGNomadTickets($bookingId: String) {\n ggnomadTickets(bookingId: $bookingId) {\n id\n bookingId\n ticketCode\n qrCodeDataUrl\n status\n issuedAt\n redeemedAt\n redeemedBy\n revokedAt\n revokedReason\n }\n }\n`;\n\nexport const ISSUE_GGNOMAD_TICKET_MUTATION = gql`\n mutation IssueGGNomadTicket($bookingId: ID!) {\n issueGgnomadTicket(bookingId: $bookingId) {\n id\n bookingId\n ticketCode\n qrCodeDataUrl\n status\n issuedAt\n }\n }\n`;\n\nexport const REDEEM_GGNOMAD_TICKET_MUTATION = gql`\n mutation RedeemGGNomadTicket($token: String!) {\n redeemGgnomadTicket(token: $token) {\n id\n bookingId\n ticketCode\n status\n redeemedAt\n redeemedBy\n }\n }\n`;\n\nexport const REVOKE_GGNOMAD_TICKET_MUTATION = gql`\n mutation RevokeGGNomadTicket($id: ID!, $reason: String) {\n revokeGgnomadTicket(id: $id, reason: $reason) {\n id\n status\n revokedAt\n revokedReason\n }\n }\n`;\n\n// Trip Plan Queries\nexport const GGNOMAD_TRIP_PLANS_QUERY = gql`\n query GGNomadTripPlans($limit: Int, $offset: Int) {\n ggnomadTripPlans(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n createdAt\n }\n }\n`;\n\nexport const GGNOMAD_TRIP_PLAN_QUERY = gql`\n query GGNomadTripPlan($id: ID!) {\n ggnomadTripPlan(id: $id) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n items {\n id\n itemType\n itemId\n itemName\n day\n scheduledAt\n price\n currency\n notes\n }\n createdAt\n updatedAt\n }\n }\n`;\n\n// Trip Plan Mutations\nexport const CREATE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation CreateGGNomadTripPlan($input: CreateGgnomadTripPlanInput!) {\n createGgnomadTripPlan(input: $input) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n createdAt\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation UpdateGGNomadTripPlan($id: ID!, $input: UpdateGgnomadTripPlanInput!) {\n updateGgnomadTripPlan(id: $id, input: $input) {\n id\n name\n description\n startDate\n endDate\n travelers\n status\n total\n itemCount\n updatedAt\n }\n }\n`;\n\nexport const DELETE_GGNOMAD_TRIP_PLAN_MUTATION = gql`\n mutation DeleteGGNomadTripPlan($id: ID!) {\n deleteGgnomadTripPlan(id: $id)\n }\n`;\n\nexport const ADD_GGNOMAD_TRIP_PLAN_ITEM_MUTATION = gql`\n mutation AddGGNomadTripPlanItem($tripPlanId: ID!, $input: AddGgnomadTripPlanItemInput!) {\n addGgnomadTripPlanItem(tripPlanId: $tripPlanId, input: $input) {\n id\n itemType\n itemId\n itemName\n day\n scheduledAt\n price\n currency\n notes\n }\n }\n`;\n\nexport const REMOVE_GGNOMAD_TRIP_PLAN_ITEM_MUTATION = gql`\n mutation RemoveGGNomadTripPlanItem($id: ID!) {\n removeGgnomadTripPlanItem(id: $id)\n }\n`;\n\n// Review Queries\nexport const GGNOMAD_REVIEW_SUMMARY_QUERY = gql`\n query GGNomadReviewSummary($targetType: GgnomadBookingType!, $targetId: String!) {\n ggnomadReviewSummary(targetType: $targetType, targetId: $targetId) {\n average\n count\n distribution\n }\n }\n`;\n\nexport const GGNOMAD_REVIEWS_QUERY = gql`\n query GGNomadReviews(\n $targetType: GgnomadBookingType!\n $targetId: String!\n $limit: Int\n $offset: Int\n ) {\n ggnomadReviews(\n targetType: $targetType\n targetId: $targetId\n pagination: { limit: $limit, offset: $offset }\n ) {\n id\n rating\n title\n content\n images\n isVerified\n helpfulCount\n response\n respondedAt\n createdAt\n }\n }\n`;\n\n// Review Mutations\nexport const CREATE_GGNOMAD_REVIEW_MUTATION = gql`\n mutation CreateGGNomadReview($input: CreateGgnomadReviewInput!) {\n createGgnomadReview(input: $input) {\n id\n rating\n title\n content\n }\n }\n`;\n\nexport const RESPOND_GGNOMAD_REVIEW_MUTATION = gql`\n mutation RespondGGNomadReview($id: ID!, $response: String!) {\n respondGgnomadReview(id: $id, response: $response) {\n id\n response\n respondedAt\n }\n }\n`;\n\n// Listing Edit Mutations\nexport const UPDATE_GGNOMAD_PROPERTY_MUTATION = gql`\n mutation UpdateGGNomadProperty($id: ID!, $input: UpdateGgnomadPropertyInput!) {\n updateGgnomadProperty(id: $id, input: $input) {\n id\n name\n description\n pricePerNight\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TOUR_MUTATION = gql`\n mutation UpdateGGNomadTour($id: ID!, $input: UpdateGgnomadTourInput!) {\n updateGgnomadTour(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_EVENT_MUTATION = gql`\n mutation UpdateGGNomadEvent($id: ID!, $input: UpdateGgnomadEventInput!) {\n updateGgnomadEvent(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_ACTIVITY_MUTATION = gql`\n mutation UpdateGGNomadActivity($id: ID!, $input: UpdateGgnomadActivityInput!) {\n updateGgnomadActivity(id: $id, input: $input) {\n id\n name\n description\n price\n status\n images\n }\n }\n`;\n\n// Corporate travel management — policy, budgets, approvals (BOFF-4365)\nexport const GGNOMAD_TRAVEL_POLICIES_QUERY = gql`\n query GGNomadTravelPolicies($limit: Int, $offset: Int) {\n ggnomadTravelPolicies(pagination: { limit: $limit, offset: $offset }) {\n id\n name\n isActive\n costCenter\n currency\n maxBookingAmount\n maxMonthlyPerTraveler\n blockedDestinations\n allowedTravelClasses\n requireApprovalAlways\n createdAt\n }\n }\n`;\n\nexport const CREATE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation CreateGGNomadTravelPolicy($input: CreateGgnomadTravelPolicyInput!) {\n createGgnomadTravelPolicy(input: $input) {\n id\n name\n isActive\n costCenter\n currency\n maxBookingAmount\n maxMonthlyPerTraveler\n blockedDestinations\n allowedTravelClasses\n requireApprovalAlways\n }\n }\n`;\n\nexport const UPDATE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation UpdateGGNomadTravelPolicy($id: ID!, $input: UpdateGgnomadTravelPolicyInput!) {\n updateGgnomadTravelPolicy(id: $id, input: $input) {\n id\n isActive\n }\n }\n`;\n\nexport const DELETE_GGNOMAD_TRAVEL_POLICY_MUTATION = gql`\n mutation DeleteGGNomadTravelPolicy($id: ID!) {\n deleteGgnomadTravelPolicy(id: $id)\n }\n`;\n\nexport const GGNOMAD_BOOKING_APPROVALS_QUERY = gql`\n query GGNomadBookingApprovals($status: GgnomadApprovalStatus, $limit: Int, $offset: Int) {\n ggnomadBookingApprovals(status: $status, pagination: { limit: $limit, offset: $offset }) {\n id\n bookingId\n requestedBy\n costCenter\n reasons\n status\n reviewedBy\n reviewedAt\n reviewNote\n createdAt\n booking {\n id\n referenceCode\n itemName\n totalPrice\n currency\n status\n paymentStatus\n }\n }\n }\n`;\n\nexport const APPROVE_GGNOMAD_BOOKING_APPROVAL_MUTATION = gql`\n mutation ApproveGGNomadBookingApproval($id: ID!, $note: String) {\n approveGgnomadBookingApproval(id: $id, note: $note) {\n id\n status\n reviewedBy\n reviewedAt\n }\n }\n`;\n\nexport const REJECT_GGNOMAD_BOOKING_APPROVAL_MUTATION = gql`\n mutation RejectGGNomadBookingApproval($id: ID!, $reason: String!) {\n rejectGgnomadBookingApproval(id: $id, reason: $reason) {\n id\n status\n reviewedBy\n reviewedAt\n reviewNote\n }\n }\n`;\n\nexport const GGNOMAD_SPEND_SUMMARY_QUERY = gql`\n query GGNomadSpendSummary($costCenter: String) {\n ggnomadSpendSummary(costCenter: $costCenter) {\n totalSpend\n bookingCount\n pendingApprovalCount\n pendingApprovalAmount\n byCostCenter\n }\n }\n`;\n\n// ─── BOFF-4388 — listing verification + booking lifecycle operations queue ─\n\nconst LISTING_QUEUE_FIELDS = `\n __typename\n ... on GgnomadProperty {\n id\n name\n status\n pricePerNight\n currency\n providerId\n updatedAt\n }\n ... on GgnomadTour {\n id\n name\n status\n price\n currency\n providerId\n updatedAt\n }\n ... on GgnomadEvent {\n id\n name\n status\n price\n currency\n providerId\n updatedAt\n }\n ... on GgnomadActivity {\n id\n name\n status\n price\n currency\n providerId\n updatedAt\n }\n`;\n\nexport const GGNOMAD_LISTING_REVIEW_QUEUE_QUERY = gql`\n query GGNomadListingReviewQueue($limit: Int, $offset: Int) {\n ggnomadListingReviewQueue(pagination: { limit: $limit, offset: $offset }) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const SUBMIT_GGNOMAD_LISTING_FOR_REVIEW_MUTATION = gql`\n mutation SubmitGGNomadListingForReview($listingType: GgnomadListingType!, $id: ID!) {\n submitGgnomadListingForReview(listingType: $listingType, id: $id) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const APPROVE_GGNOMAD_LISTING_MUTATION = gql`\n mutation ApproveGGNomadListing($listingType: GgnomadListingType!, $id: ID!, $note: String) {\n approveGgnomadListing(listingType: $listingType, id: $id, note: $note) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const REJECT_GGNOMAD_LISTING_MUTATION = gql`\n mutation RejectGGNomadListing($listingType: GgnomadListingType!, $id: ID!, $reason: String!) {\n rejectGgnomadListing(listingType: $listingType, id: $id, reason: $reason) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const PAUSE_GGNOMAD_LISTING_MUTATION = gql`\n mutation PauseGGNomadListing($listingType: GgnomadListingType!, $id: ID!, $reason: String) {\n pauseGgnomadListing(listingType: $listingType, id: $id, reason: $reason) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const RESUME_GGNOMAD_LISTING_MUTATION = gql`\n mutation ResumeGGNomadListing($listingType: GgnomadListingType!, $id: ID!) {\n resumeGgnomadListing(listingType: $listingType, id: $id) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const ARCHIVE_GGNOMAD_LISTING_MUTATION = gql`\n mutation ArchiveGGNomadListing($listingType: GgnomadListingType!, $id: ID!, $reason: String) {\n archiveGgnomadListing(listingType: $listingType, id: $id, reason: $reason) {\n ${LISTING_QUEUE_FIELDS}\n }\n }\n`;\n\nexport const GGNOMAD_BOOKING_QUEUE_QUERY = gql`\n query GGNomadBookingQueue($limit: Int, $offset: Int) {\n ggnomadBookingQueue(pagination: { limit: $limit, offset: $offset }) {\n id\n referenceCode\n bookingType\n status\n itemName\n guestName\n guests\n checkIn\n checkOut\n eventDate\n totalPrice\n currency\n createdAt\n }\n }\n`;\n\nexport const CHECK_IN_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CheckInGGNomadBooking($id: ID!) {\n checkInGgnomadBooking(id: $id) {\n id\n status\n }\n }\n`;\n\nexport const COMPLETE_GGNOMAD_BOOKING_MUTATION = gql`\n mutation CompleteGGNomadBooking($id: ID!) {\n completeGgnomadBooking(id: $id) {\n id\n status\n }\n }\n`;\n\nexport const MARK_GGNOMAD_BOOKING_NO_SHOW_MUTATION = gql`\n mutation MarkGGNomadBookingNoShow($id: ID!, $reason: String) {\n markGgnomadBookingNoShow(id: $id, reason: $reason) {\n id\n status\n }\n }\n`;\n\nexport const GGNOMAD_AUDIT_LOG_QUERY = gql`\n query GGNomadAuditLog($entityType: String!, $entityId: String!, $limit: Int, $offset: Int) {\n ggnomadAuditLog(\n entityType: $entityType\n entityId: $entityId\n pagination: { limit: $limit, offset: $offset }\n ) {\n id\n action\n fromStatus\n toStatus\n reason\n actorId\n createdAt\n }\n }\n`;\n"],"mappings":";;AAEA,IAAa,IAAyB,CAAG;;;;;;;;;;;;;;;;GAwB5B,IAAgC,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCnC,IAAiC,CAAG;;;;;;;;;;;;;;;;;;;GAqBpC,IAA0B,CAAG;;;;;;;;;;;;;;;GAiB7B,IAA2B,CAAG;;;;;;;;;;;;;;;;;;GAoB9B,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BS,CAAG;;;;;;;;;;AAWrD,IAAa,IAAsB,CAAG;;;;;;;;;;;;;;;;;;GAoBzB,IAAqB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;GA0BxB,IAAuB,CAAG;;;;;;;;;;;;;;;;;GAmB1B,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;;;;GAyBzB,IAA2B,CAAG;;;;;;;;;;;;;;;;;;;;GAsB9B,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;GA4B5B,IAAsB,CAAG;;;;;;;;;;;;;;;;;;;;GAsBzB,IAAyB,CAAG;;;;;;;;;;;;;;;;;;;;;;;;GA0B5B,IAA0B,CAAG;;;;GAM7B,IAAkC,CAAG;;;;;;;;;;;;;;;GAiBrC,IAAmC,CAAG;;;;GAMtC,IAAkC,CAAG;;;;;;;GAUrC,IAAwB,CAAG;;;;;;;;;;;;;;;GAiB3B,IAAgC,CAAG;;;;;;;;;;;GAanC,IAAiC,CAAG;;;;;;;;;;;;AAaH,CAAG;;;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@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardPage.d.ts","sourceRoot":"","sources":["../../../src/ggnomad/pages/DashboardPage.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,aAAa,
|
|
1
|
+
{"version":3,"file":"DashboardPage.d.ts","sourceRoot":"","sources":["../../../src/ggnomad/pages/DashboardPage.tsx"],"names":[],"mappings":"AAqCA,wBAAgB,aAAa,gCAgR5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../src/ggnomad/pages/DashboardPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { useQuery } from '@apollo/client/react';\nimport type { TypedDocumentNode } from '@apollo/client';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Building, CalendarCheck, Compass, DollarSign, Hotel, Search, Users } from 'lucide-react';\nimport { useNavigate } from 'react-router-dom';\nimport {\n EmphasisPanel,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n GGNOMAD_OVERVIEW_QUERY,\n GGNOMAD_BOOKINGS_QUERY,\n GGNOMAD_PROPERTIES_QUERY,\n GGNOMAD_TOURS_QUERY,\n GGNOMAD_EVENTS_QUERY,\n} from '../graphql';\nimport { PageShell } from './PageShell';\nimport { SectionCard, StatCard, StatusBadge } from '../components';\n\nconst CHART_COLORS = [\n 'var(--color-chart-1)',\n 'var(--color-chart-2)',\n 'var(--color-chart-3)',\n 'var(--color-chart-4)',\n 'var(--color-chart-5)',\n];\n\nconst humanizeCategory = (key: string): string =>\n key\n .replace(/[_-]+/g, ' ')\n .trim()\n .replace(/\\b\\w/g, (char) => char.toUpperCase()) || key;\n\nexport function DashboardPage() {\n const { t } = useI18n();\n const navigate = useNavigate();\n const overview = useQuery(\n GGNOMAD_OVERVIEW_QUERY as TypedDocumentNode<\n {\n ggnomadOverviewStats: {\n users: number;\n listings: number;\n bookings: number;\n monthlyRevenue: number;\n };\n ggnomadAnalytics: {\n totalRevenue: number;\n totalBookings: number;\n totalUsers: number;\n conversionRate: number;\n revenueByCategory: Record<string, unknown>;\n };\n },\n Record<string, never>\n >\n );\n const bookings = useQuery(\n GGNOMAD_BOOKINGS_QUERY as TypedDocumentNode<\n {\n ggnomadBookings: Array<{\n id: string;\n referenceCode: string;\n itemName: string;\n status: string;\n }>;\n },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 5, offset: 0 },\n }\n );\n const properties = useQuery(\n GGNOMAD_PROPERTIES_QUERY as TypedDocumentNode<\n { ggnomadProperties: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n { variables: { limit: 4, offset: 0 } }\n );\n const tours = useQuery(\n GGNOMAD_TOURS_QUERY as TypedDocumentNode<\n { ggnomadTours: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 4, offset: 0 },\n }\n );\n const events = useQuery(\n GGNOMAD_EVENTS_QUERY as TypedDocumentNode<\n { ggnomadEvents: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 4, offset: 0 },\n }\n );\n\n const stats = overview.data?.ggnomadOverviewStats;\n const analytics = overview.data?.ggnomadAnalytics;\n const recentBookings = bookings.data?.ggnomadBookings ?? [];\n\n const categories = useMemo(() => {\n const raw = analytics?.revenueByCategory ?? {};\n return Object.entries(raw)\n .map(([key, value]) => ({ label: humanizeCategory(key), value: Number(value) }))\n .filter((entry) => Number.isFinite(entry.value) && entry.value > 0)\n .sort((a, b) => b.value - a.value);\n }, [analytics?.revenueByCategory]);\n\n const maxCategory = categories.length > 0 ? categories[0].value : 0;\n\n return (\n <PageShell\n hero\n title={t('ggnomad.dashboard.title', 'GGNomad Dashboard')}\n titleAccent={t('ggnomad.dashboard.title.accent', 'GGNomad')}\n subtitle={t(\n 'ggnomad.dashboard.subtitle',\n 'Unified travel, hospitality, tourism and entertainment operations'\n )}\n >\n <PagePurpose icon={<Compass className=\"size-4\" />}>\n {t(\n 'ggnomad.dashboard.purpose',\n 'Your command centre for the whole GGNomad marketplace — see live revenue, users, listings and bookings across travel, hospitality, tourism and entertainment in one place, and jump straight into the area you want to work on.'\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"ggnomad-dashboard\"\n steps={[\n {\n id: 'search',\n label: t('ggnomad.dashboard.next.search', 'Search the catalogue'),\n description: t(\n 'ggnomad.dashboard.next.searchDesc',\n 'Find inventory across every domain at once.'\n ),\n icon: <Search className=\"size-4\" />,\n onClick: () => navigate('search'),\n },\n {\n id: 'stays',\n label: t('ggnomad.dashboard.next.stays', 'Browse places to stay'),\n description: t(\n 'ggnomad.dashboard.next.staysDesc',\n 'Explore hospitality listings and open a property.'\n ),\n icon: <Hotel className=\"size-4\" />,\n onClick: () => navigate('hospitality'),\n },\n {\n id: 'tourism',\n label: t('ggnomad.dashboard.next.tourism', 'Discover tours & activities'),\n description: t(\n 'ggnomad.dashboard.next.tourismDesc',\n 'Plan what to do at each destination.'\n ),\n icon: <Compass className=\"size-4\" />,\n onClick: () => navigate('tourism'),\n },\n {\n id: 'bookings',\n label: t('ggnomad.dashboard.next.bookings', 'Manage bookings'),\n description: t(\n 'ggnomad.dashboard.next.bookingsDesc',\n 'Track and cancel reservations in real time.'\n ),\n icon: <CalendarCheck className=\"size-4\" />,\n onClick: () => navigate('bookings'),\n },\n ]}\n />\n\n <section className=\"grid gap-4 sm:grid-cols-2 xl:grid-cols-4\">\n <StatCard\n hero\n label={t('ggnomad.dashboard.stats.monthlyRevenue', 'Monthly Revenue')}\n value={`$${Number(stats?.monthlyRevenue ?? 0).toLocaleString()}`}\n icon={<DollarSign />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.users', 'Users')}\n value={Number(stats?.users ?? 0).toLocaleString()}\n icon={<Users />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.listings', 'Listings')}\n value={Number(stats?.listings ?? 0).toLocaleString()}\n icon={<Building />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.bookings', 'Bookings')}\n value={Number(stats?.bookings ?? 0).toLocaleString()}\n icon={<CalendarCheck />}\n />\n </section>\n\n <EmphasisPanel>\n <div className=\"grid gap-4 sm:grid-cols-3\">\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.properties', 'Properties')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {properties.data?.ggnomadProperties?.length ?? 0}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.tours', 'Tours')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {tours.data?.ggnomadTours?.length ?? 0}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.events', 'Events')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {events.data?.ggnomadEvents?.length ?? 0}\n </p>\n </div>\n </div>\n <p className=\"mt-4 text-sm text-text-secondary\">\n {t(\n 'ggnomad.dashboard.inventory.liveDataNotice',\n 'Data is live from the GraphQL API.'\n )}\n </p>\n </EmphasisPanel>\n\n <SectionCard title={t('ggnomad.dashboard.sections.recentBookings', 'Recent bookings')}>\n {recentBookings.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={t('ggnomad.dashboard.recentBookings.emptyTitle', 'No recent bookings')}\n description={t(\n 'ggnomad.dashboard.recentBookings.emptyDescription',\n 'New bookings across travel, hospitality and tourism will appear here.'\n )}\n />\n ) : (\n <ul className=\"space-y-2 text-sm\">\n {recentBookings.map((booking) => (\n <li\n key={booking.id}\n className=\"flex items-center justify-between gap-3 rounded-lg border border-border-seam bg-bg-surface/40 p-3\"\n >\n <span className=\"min-w-0 truncate text-text-primary\">\n {booking.referenceCode} — {booking.itemName}\n </span>\n <StatusBadge status={booking.status} />\n </li>\n ))}\n </ul>\n )}\n </SectionCard>\n\n <SectionCard title={t('ggnomad.dashboard.sections.revenueByCategory', 'Revenue by category')}>\n {categories.length === 0 ? (\n <div className=\"flex flex-col items-center gap-2 py-8 text-center\">\n <span className=\"flex size-10 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-text-secondary\">\n <DollarSign className=\"size-5\" />\n </span>\n <p className=\"text-sm font-medium text-text-primary\">\n {t('ggnomad.dashboard.empty.title', 'Revenue data coming soon')}\n </p>\n <p className=\"max-w-sm text-sm text-text-secondary\">\n {t(\n 'ggnomad.dashboard.empty.description',\n 'Revenue by category appears here as bookings come in across stays, tours and events.'\n )}\n </p>\n </div>\n ) : (\n <ul className=\"flex flex-col gap-4\">\n {categories.map((category, index) => {\n const pct = maxCategory > 0 ? Math.max((category.value / maxCategory) * 100, 2) : 0;\n return (\n <li key={category.label}>\n <div className=\"flex items-baseline justify-between gap-3\">\n <span className=\"truncate text-sm font-medium text-text-primary\">\n {category.label}\n </span>\n <span className=\"flex-shrink-0 text-sm tabular-nums text-text-secondary\">\n ${category.value.toLocaleString()}\n </span>\n </div>\n <div className=\"mt-1.5 h-2.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className=\"h-full rounded-full transition-[width] duration-500 ease-out\"\n style={{\n width: `${pct}%`,\n backgroundColor: CHART_COLORS[index % CHART_COLORS.length],\n }}\n />\n </div>\n </li>\n );\n })}\n </ul>\n )}\n </SectionCard>\n </PageShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAuBA,IAAM,IAAe;CACnB;CACA;CACA;CACA;CACA;AACF,GAEM,KAAoB,MACxB,EACG,QAAQ,UAAU,GAAG,EACrB,KAAK,EACL,QAAQ,UAAU,MAAS,EAAK,YAAY,CAAC,KAAK;AAEvD,SAAgB,IAAgB;CAC9B,IAAM,EAAE,SAAM,EAAQ,GAChB,IAAW,EAAY,GACvB,IAAW,EACf,CAkBF,GACM,IAAW,EACf,GAWA,EACE,WAAW;EAAE,OAAO;EAAG,QAAQ;CAAE,EACnC,CACF,GACM,IAAa,EAC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0BAA0B;MAC7D,CAAA;MACH,kBAAC,KAAD;OAAG,WAAU;iBACV,EACC,uCACA,sFACF;MACC,CAAA;KACA;SAEL,kBAAC,MAAD;KAAI,WAAU;eACX,EAAW,KAAK,GAAU,MAAU;MACnC,IAAM,IAAM,IAAc,IAAI,KAAK,IAAK,EAAS,QAAQ,IAAe,KAAK,CAAC,IAAI;MAClF,OACE,kBAAC,MAAD,EAAA,UAAA,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAS;OACN,CAAA,GACN,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CAAyE,KACrE,EAAS,MAAM,eAAe,CAC5B;SACH;UACL,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,OAAD;QACE,WAAU;QACV,OAAO;SACL,OAAO,GAAG,EAAI;SACd,iBAAiB,EAAa,IAAQ,EAAa;QACrD;OACD,CAAA;MACE,CAAA,CACH,EAAA,GAlBK,EAAS,KAkBd;KAER,CAAC;IACC,CAAA;GAEK,CAAA;EACJ;;AAEf"}
|
|
1
|
+
{"version":3,"file":"DashboardPage.js","names":[],"sources":["../../../src/ggnomad/pages/DashboardPage.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport { useQuery } from '@apollo/client/react';\nimport type { TypedDocumentNode } from '@apollo/client';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { Building, CalendarCheck, Compass, DollarSign, Hotel, Search, Users } from 'lucide-react';\nimport { useNavigate } from 'react-router-dom';\nimport {\n EmphasisPanel,\n IllustratedEmptyState,\n NextSteps,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n GGNOMAD_OVERVIEW_QUERY,\n GGNOMAD_BOOKINGS_QUERY,\n GGNOMAD_PROPERTIES_QUERY,\n GGNOMAD_TOURS_QUERY,\n GGNOMAD_EVENTS_QUERY,\n} from '../graphql';\nimport { PageShell } from './PageShell';\nimport { SectionCard, StatCard, StatusBadge } from '../components';\n\nconst CHART_COLORS = [\n 'var(--color-chart-1)',\n 'var(--color-chart-2)',\n 'var(--color-chart-3)',\n 'var(--color-chart-4)',\n 'var(--color-chart-5)',\n];\n\nconst humanizeCategory = (key: string): string =>\n key\n .replace(/[_-]+/g, ' ')\n .trim()\n .replace(/\\b\\w/g, (char) => char.toUpperCase()) || key;\n\nexport function DashboardPage() {\n const { t } = useI18n();\n const navigate = useNavigate();\n const overview = useQuery(\n GGNOMAD_OVERVIEW_QUERY as TypedDocumentNode<\n {\n ggnomadOverviewStats: {\n users: number;\n listings: number;\n bookings: number;\n monthlyRevenue: number;\n };\n ggnomadAnalytics: {\n totalRevenue: number;\n totalBookings: number;\n totalUsers: number;\n conversionRate: number;\n revenueByCategory: Record<string, unknown>;\n };\n },\n Record<string, never>\n >\n );\n const bookings = useQuery(\n GGNOMAD_BOOKINGS_QUERY as TypedDocumentNode<\n {\n ggnomadBookings: Array<{\n id: string;\n referenceCode: string;\n itemName: string;\n status: string;\n }>;\n },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 5, offset: 0 },\n }\n );\n const properties = useQuery(\n GGNOMAD_PROPERTIES_QUERY as TypedDocumentNode<\n { ggnomadProperties: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n { variables: { limit: 4, offset: 0 } }\n );\n const tours = useQuery(\n GGNOMAD_TOURS_QUERY as TypedDocumentNode<\n { ggnomadTours: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 4, offset: 0 },\n }\n );\n const events = useQuery(\n GGNOMAD_EVENTS_QUERY as TypedDocumentNode<\n { ggnomadEvents: Array<{ id: string }> },\n { limit: number; offset: number }\n >,\n {\n variables: { limit: 4, offset: 0 },\n }\n );\n\n const stats = overview.data?.ggnomadOverviewStats;\n const analytics = overview.data?.ggnomadAnalytics;\n const recentBookings = bookings.data?.ggnomadBookings ?? [];\n\n const categories = useMemo(() => {\n const raw = analytics?.revenueByCategory ?? {};\n return Object.entries(raw)\n .map(([key, value]) => ({ label: humanizeCategory(key), value: Number(value) }))\n .filter((entry) => Number.isFinite(entry.value) && entry.value > 0)\n .sort((a, b) => b.value - a.value);\n }, [analytics?.revenueByCategory]);\n\n const maxCategory = categories.length > 0 ? categories[0].value : 0;\n\n return (\n <PageShell\n hero\n title={t('ggnomad.dashboard.title', 'GGNomad Dashboard')}\n titleAccent={t('ggnomad.dashboard.title.accent', 'GGNomad')}\n subtitle={t(\n 'ggnomad.dashboard.subtitle',\n 'Unified travel, hospitality, tourism and entertainment operations'\n )}\n >\n <PagePurpose icon={<Compass className=\"size-4\" />}>\n {t(\n 'ggnomad.dashboard.purpose',\n 'Your command centre for the whole GGNomad marketplace — see live revenue, users, listings and bookings across travel, hospitality, tourism and entertainment in one place, and jump straight into the area you want to work on.'\n )}\n </PagePurpose>\n\n <NextSteps\n storageKey=\"ggnomad-dashboard\"\n steps={[\n {\n id: 'search',\n label: t('ggnomad.dashboard.next.search', 'Search the catalogue'),\n description: t(\n 'ggnomad.dashboard.next.searchDesc',\n 'Find inventory across every domain at once.'\n ),\n icon: <Search className=\"size-4\" />,\n onClick: () => navigate('search'),\n },\n {\n id: 'stays',\n label: t('ggnomad.dashboard.next.stays', 'Browse places to stay'),\n description: t(\n 'ggnomad.dashboard.next.staysDesc',\n 'Explore hospitality listings and open a property.'\n ),\n icon: <Hotel className=\"size-4\" />,\n onClick: () => navigate('hospitality'),\n },\n {\n id: 'tourism',\n label: t('ggnomad.dashboard.next.tourism', 'Discover tours & activities'),\n description: t(\n 'ggnomad.dashboard.next.tourismDesc',\n 'Plan what to do at each destination.'\n ),\n icon: <Compass className=\"size-4\" />,\n onClick: () => navigate('tourism'),\n },\n {\n id: 'bookings',\n label: t('ggnomad.dashboard.next.bookings', 'Manage bookings'),\n description: t(\n 'ggnomad.dashboard.next.bookingsDesc',\n 'Track and cancel reservations in real time.'\n ),\n icon: <CalendarCheck className=\"size-4\" />,\n onClick: () => navigate('bookings'),\n },\n ]}\n />\n\n <section className=\"grid gap-4 sm:grid-cols-2 xl:grid-cols-4\">\n <StatCard\n hero\n label={t('ggnomad.dashboard.stats.monthlyRevenue', 'Monthly Revenue')}\n value={`$${Number(stats?.monthlyRevenue ?? 0).toLocaleString()}`}\n icon={<DollarSign />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.users', 'Users')}\n value={Number(stats?.users ?? 0).toLocaleString()}\n icon={<Users />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.listings', 'Listings')}\n value={Number(stats?.listings ?? 0).toLocaleString()}\n icon={<Building />}\n />\n <StatCard\n label={t('ggnomad.dashboard.stats.bookings', 'Bookings')}\n value={Number(stats?.bookings ?? 0).toLocaleString()}\n icon={<CalendarCheck />}\n />\n </section>\n\n <EmphasisPanel>\n <div className=\"grid gap-4 sm:grid-cols-3\">\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.properties', 'Properties')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {properties.data?.ggnomadProperties?.length ?? 0}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.tours', 'Tours')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {tours.data?.ggnomadTours?.length ?? 0}\n </p>\n </div>\n <div>\n <p className=\"text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.events', 'Events')}\n </p>\n <p className=\"mt-1 text-2xl font-semibold tabular-nums text-text-primary\">\n {events.data?.ggnomadEvents?.length ?? 0}\n </p>\n </div>\n </div>\n <p className=\"mt-4 text-sm text-text-secondary\">\n {t('ggnomad.dashboard.inventory.liveDataNotice', 'Data is live from the GraphQL API.')}\n </p>\n </EmphasisPanel>\n\n <SectionCard title={t('ggnomad.dashboard.sections.recentBookings', 'Recent bookings')}>\n {recentBookings.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={t('ggnomad.dashboard.recentBookings.emptyTitle', 'No recent bookings')}\n description={t(\n 'ggnomad.dashboard.recentBookings.emptyDescription',\n 'New bookings across travel, hospitality and tourism will appear here.'\n )}\n />\n ) : (\n <ul className=\"space-y-2 text-sm\">\n {recentBookings.map((booking) => (\n <li\n key={booking.id}\n className=\"flex items-center justify-between gap-3 rounded-lg border border-border-seam bg-bg-surface/40 p-3\"\n >\n <span className=\"min-w-0 truncate text-text-primary\">\n {booking.referenceCode} — {booking.itemName}\n </span>\n <StatusBadge status={booking.status} />\n </li>\n ))}\n </ul>\n )}\n </SectionCard>\n\n <SectionCard title={t('ggnomad.dashboard.sections.revenueByCategory', 'Revenue by category')}>\n {categories.length === 0 ? (\n <div className=\"flex flex-col items-center gap-2 py-8 text-center\">\n <span className=\"flex size-10 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-text-secondary\">\n <DollarSign className=\"size-5\" />\n </span>\n <p className=\"text-sm font-medium text-text-primary\">\n {t('ggnomad.dashboard.empty.title', 'Revenue data coming soon')}\n </p>\n <p className=\"max-w-sm text-sm text-text-secondary\">\n {t(\n 'ggnomad.dashboard.empty.description',\n 'Revenue by category appears here as bookings come in across stays, tours and events.'\n )}\n </p>\n </div>\n ) : (\n <ul className=\"flex flex-col gap-4\">\n {categories.map((category, index) => {\n const pct = maxCategory > 0 ? Math.max((category.value / maxCategory) * 100, 2) : 0;\n return (\n <li key={category.label}>\n <div className=\"flex items-baseline justify-between gap-3\">\n <span className=\"truncate text-sm font-medium text-text-primary\">\n {category.label}\n </span>\n <span className=\"flex-shrink-0 text-sm tabular-nums text-text-secondary\">\n ${category.value.toLocaleString()}\n </span>\n </div>\n <div className=\"mt-1.5 h-2.5 w-full overflow-hidden rounded-full bg-bg-sunken\">\n <div\n className=\"h-full rounded-full transition-[width] duration-500 ease-out\"\n style={{\n width: `${pct}%`,\n backgroundColor: CHART_COLORS[index % CHART_COLORS.length],\n }}\n />\n </div>\n </li>\n );\n })}\n </ul>\n )}\n </SectionCard>\n </PageShell>\n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QAAc;QAAI,EAAQ;OAC/B;UACN,kBAAC,GAAD,EAAa,QAAQ,EAAQ,OAAS,CAAA,CACpC;QAPG,EAAQ,EAOX,CACL;IACC,CAAA;GAEK,CAAA;GAEb,kBAAC,GAAD;IAAa,OAAO,EAAE,gDAAgD,qBAAqB;cACxF,EAAW,WAAW,IACrB,kBAAC,OAAD;KAAK,WAAU;eAAf;MACE,kBAAC,QAAD;OAAM,WAAU;iBACd,kBAAC,GAAD,EAAY,WAAU,SAAU,CAAA;MAC5B,CAAA;MACN,kBAAC,KAAD;OAAG,WAAU;iBACV,EAAE,iCAAiC,0BAA0B;MAC7D,CAAA;MACH,kBAAC,KAAD;OAAG,WAAU;iBACV,EACC,uCACA,sFACF;MACC,CAAA;KACA;SAEL,kBAAC,MAAD;KAAI,WAAU;eACX,EAAW,KAAK,GAAU,MAAU;MACnC,IAAM,IAAM,IAAc,IAAI,KAAK,IAAK,EAAS,QAAQ,IAAe,KAAK,CAAC,IAAI;MAClF,OACE,kBAAC,MAAD,EAAA,UAAA,CACE,kBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,kBAAC,QAAD;QAAM,WAAU;kBACb,EAAS;OACN,CAAA,GACN,kBAAC,QAAD;QAAM,WAAU;kBAAhB,CAAyE,KACrE,EAAS,MAAM,eAAe,CAC5B;SACH;UACL,kBAAC,OAAD;OAAK,WAAU;iBACb,kBAAC,OAAD;QACE,WAAU;QACV,OAAO;SACL,OAAO,GAAG,EAAI;SACd,iBAAiB,EAAa,IAAQ,EAAa;QACrD;OACD,CAAA;MACE,CAAA,CACH,EAAA,GAlBK,EAAS,KAkBd;KAER,CAAC;IACC,CAAA;GAEK,CAAA;EACJ;;AAEf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BOFF-4388 — the operational side of the marketplace: a marketplace operator
|
|
3
|
+
* (or host-operator for their own submissions) reviews PENDING_REVIEW
|
|
4
|
+
* listings and works the incoming booking queue from one place. Every action
|
|
5
|
+
* here calls a real, guarded mutation on wspace-ggnomad-svc — approve/reject
|
|
6
|
+
* on listings are gated server-side by the `ggnomad:manage` RBAC action
|
|
7
|
+
* (marketplace operator only); check-in/complete/no-show/cancel are gated by
|
|
8
|
+
* `ggnomad:update` (host-operator and above).
|
|
9
|
+
*/
|
|
10
|
+
export declare function OperationsQueuePage(): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=OperationsQueuePage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsQueuePage.d.ts","sourceRoot":"","sources":["../../../src/ggnomad/pages/OperationsQueuePage.tsx"],"names":[],"mappings":"AAoFA;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,gCAkiBlC"}
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { APPROVE_GGNOMAD_LISTING_MUTATION as e, CANCEL_GGNOMAD_BOOKING_MUTATION as t, CHECK_IN_GGNOMAD_BOOKING_MUTATION as n, COMPLETE_GGNOMAD_BOOKING_MUTATION as r, GGNOMAD_BOOKING_QUEUE_QUERY as ee, GGNOMAD_LISTING_REVIEW_QUEUE_QUERY as te, MARK_GGNOMAD_BOOKING_NO_SHOW_MUTATION as ne, REJECT_GGNOMAD_LISTING_MUTATION as i } from "../graphql.js";
|
|
2
|
+
import { PageShell as a } from "./PageShell.js";
|
|
3
|
+
import { StatusBadge as o } from "../components/StatusBadge.js";
|
|
4
|
+
import { SectionCard as s } from "../components/SectionCard.js";
|
|
5
|
+
import { EntityCard as c } from "../components/EntityCard.js";
|
|
6
|
+
import { notify as l } from "../utils/notify.js";
|
|
7
|
+
import { AuditTrailDialog as re } from "../components/AuditTrailDialog.js";
|
|
8
|
+
import "../components/index.js";
|
|
9
|
+
import { useMemo as u, useState as d } from "react";
|
|
10
|
+
import { Check as f, ClipboardList as p, History as m, LogIn as h, LogOut as g, ShieldQuestion as _, UserX as ie, X as ae, XCircle as oe } from "lucide-react";
|
|
11
|
+
import { useI18n as se } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
12
|
+
import { useMutation as v, useQuery as y } from "@apollo/client/react";
|
|
13
|
+
import { AlertDialog as b, AlertDialogAction as x, AlertDialogCancel as S, AlertDialogContent as C, AlertDialogDescription as w, AlertDialogFooter as T, AlertDialogHeader as E, AlertDialogTitle as D, CTAOverflowMenu as O, IllustratedEmptyState as k, PagePurpose as ce } from "@burdenoff/fe-libs/ui";
|
|
14
|
+
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
15
|
+
//#region src/ggnomad/pages/OperationsQueuePage.tsx
|
|
16
|
+
var M = {
|
|
17
|
+
GgnomadProperty: "PROPERTY",
|
|
18
|
+
GgnomadTour: "TOUR",
|
|
19
|
+
GgnomadEvent: "EVENT",
|
|
20
|
+
GgnomadActivity: "ACTIVITY"
|
|
21
|
+
};
|
|
22
|
+
function N() {
|
|
23
|
+
let { t: N } = se(), [P, F] = d(null), [I, L] = d(""), [R, z] = d(null), [B, V] = d(null), [H, U] = d(null), { data: W, refetch: G, loading: le } = y(te, { variables: {
|
|
24
|
+
limit: 20,
|
|
25
|
+
offset: 0
|
|
26
|
+
} }), K = u(() => W?.ggnomadListingReviewQueue ?? [], [W?.ggnomadListingReviewQueue]), { data: q, refetch: J, loading: ue } = y(ee, { variables: {
|
|
27
|
+
limit: 20,
|
|
28
|
+
offset: 0
|
|
29
|
+
} }), Y = u(() => q?.ggnomadBookingQueue ?? [], [q?.ggnomadBookingQueue]), [de, { loading: fe }] = v(e), [pe, { loading: X }] = v(i), [me, { loading: he }] = v(n), [Z, { loading: ge }] = v(r), [_e, { loading: Q }] = v(ne), [ve, { loading: $ }] = v(t), ye = async (e) => {
|
|
30
|
+
let t = M[e.__typename];
|
|
31
|
+
if (t) try {
|
|
32
|
+
let n = await de({ variables: {
|
|
33
|
+
listingType: t,
|
|
34
|
+
id: e.id
|
|
35
|
+
} });
|
|
36
|
+
if (n.error) {
|
|
37
|
+
l.error(N("ggnomad.opsQueue.approveErrorTitle", "Could not approve listing"), n.error.message);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
l.success(N("ggnomad.opsQueue.approveSuccessTitle", "Listing approved"), e.name), await G();
|
|
41
|
+
} catch (e) {
|
|
42
|
+
l.error(N("ggnomad.opsQueue.approveErrorTitle", "Could not approve listing"), e instanceof Error ? e.message : String(e));
|
|
43
|
+
}
|
|
44
|
+
}, be = async () => {
|
|
45
|
+
if (P) {
|
|
46
|
+
if (!I.trim()) {
|
|
47
|
+
l.warning(N("ggnomad.opsQueue.reject.reasonRequiredTitle", "A reason is required"), N("ggnomad.opsQueue.reject.reasonRequiredBody", "Let the submitter know what needs fixing."));
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
try {
|
|
51
|
+
let e = await pe({ variables: {
|
|
52
|
+
listingType: P.listingType,
|
|
53
|
+
id: P.id,
|
|
54
|
+
reason: I.trim()
|
|
55
|
+
} });
|
|
56
|
+
if (e.error) {
|
|
57
|
+
l.error(N("ggnomad.opsQueue.rejectErrorTitle", "Could not reject listing"), e.error.message);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
l.success(N("ggnomad.opsQueue.rejectSuccessTitle", "Listing sent back to draft"), P.name), await G();
|
|
61
|
+
} catch (e) {
|
|
62
|
+
l.error(N("ggnomad.opsQueue.rejectErrorTitle", "Could not reject listing"), e instanceof Error ? e.message : String(e));
|
|
63
|
+
} finally {
|
|
64
|
+
F(null), L("");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, xe = async (e) => {
|
|
68
|
+
try {
|
|
69
|
+
let t = await me({ variables: { id: e.id } });
|
|
70
|
+
if (t.error) {
|
|
71
|
+
l.error(N("ggnomad.opsQueue.checkInErrorTitle", "Could not check in"), t.error.message);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
l.success(N("ggnomad.opsQueue.checkInSuccessTitle", "Checked in"), e.referenceCode), await J();
|
|
75
|
+
} catch (e) {
|
|
76
|
+
l.error(N("ggnomad.opsQueue.checkInErrorTitle", "Could not check in"), e instanceof Error ? e.message : String(e));
|
|
77
|
+
}
|
|
78
|
+
}, Se = async (e) => {
|
|
79
|
+
try {
|
|
80
|
+
let t = await Z({ variables: { id: e.id } });
|
|
81
|
+
if (t.error) {
|
|
82
|
+
l.error(N("ggnomad.opsQueue.completeErrorTitle", "Could not complete booking"), t.error.message);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
l.success(N("ggnomad.opsQueue.completeSuccessTitle", "Booking completed"), e.referenceCode), await J();
|
|
86
|
+
} catch (e) {
|
|
87
|
+
l.error(N("ggnomad.opsQueue.completeErrorTitle", "Could not complete booking"), e instanceof Error ? e.message : String(e));
|
|
88
|
+
}
|
|
89
|
+
}, Ce = async () => {
|
|
90
|
+
if (R) try {
|
|
91
|
+
let e = await _e({ variables: {
|
|
92
|
+
id: R.id,
|
|
93
|
+
reason: N("ggnomad.opsQueue.noShowReason", "Marked via operations queue")
|
|
94
|
+
} });
|
|
95
|
+
if (e.error) {
|
|
96
|
+
l.error(N("ggnomad.opsQueue.noShowErrorTitle", "Could not mark as no-show"), e.error.message);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
l.success(N("ggnomad.opsQueue.noShowSuccessTitle", "Marked as no-show"), R.referenceCode), await J();
|
|
100
|
+
} catch (e) {
|
|
101
|
+
l.error(N("ggnomad.opsQueue.noShowErrorTitle", "Could not mark as no-show"), e instanceof Error ? e.message : String(e));
|
|
102
|
+
} finally {
|
|
103
|
+
z(null);
|
|
104
|
+
}
|
|
105
|
+
}, we = async () => {
|
|
106
|
+
if (B) try {
|
|
107
|
+
let e = await ve({ variables: {
|
|
108
|
+
id: B.id,
|
|
109
|
+
reason: N("ggnomad.opsQueue.cancelReason", "Cancelled via operations queue")
|
|
110
|
+
} });
|
|
111
|
+
if (e.error) {
|
|
112
|
+
l.error(N("ggnomad.opsQueue.cancelErrorTitle", "Could not cancel booking"), e.error.message);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
l.success(N("ggnomad.opsQueue.cancelSuccessTitle", "Booking cancelled"), B.referenceCode), await J();
|
|
116
|
+
} catch (e) {
|
|
117
|
+
l.error(N("ggnomad.opsQueue.cancelErrorTitle", "Could not cancel booking"), e instanceof Error ? e.message : String(e));
|
|
118
|
+
} finally {
|
|
119
|
+
V(null);
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
return /* @__PURE__ */ j(a, {
|
|
123
|
+
title: N("ggnomad.opsQueue.title", "Operations Queue"),
|
|
124
|
+
titleAccent: N("ggnomad.opsQueue.title.accent", "Operations"),
|
|
125
|
+
subtitle: N("ggnomad.opsQueue.subtitle", "Verify listings before they go live and work the incoming booking queue"),
|
|
126
|
+
children: [
|
|
127
|
+
/* @__PURE__ */ A(ce, {
|
|
128
|
+
icon: /* @__PURE__ */ A(p, { className: "size-4" }),
|
|
129
|
+
children: N("ggnomad.opsQueue.purpose", "Listings move DRAFT → PENDING_REVIEW → ACTIVE — approve or reject submissions here before they can be booked. Bookings move PENDING → CONFIRMED → CHECKED_IN → COMPLETED — check guests in, complete stays, or mark a no-show once the scheduled date has arrived. Every action is recorded in the transition history.")
|
|
130
|
+
}),
|
|
131
|
+
/* @__PURE__ */ A(s, {
|
|
132
|
+
title: N("ggnomad.opsQueue.listingsTitle", "Listings awaiting review"),
|
|
133
|
+
children: !le && K.length === 0 ? /* @__PURE__ */ A(k, {
|
|
134
|
+
illustration: "empty-data",
|
|
135
|
+
title: N("ggnomad.opsQueue.listingsEmptyTitle", "Nothing waiting on you"),
|
|
136
|
+
description: N("ggnomad.opsQueue.listingsEmptyDescription", "Listings submitted for review will show up here in submission order.")
|
|
137
|
+
}) : /* @__PURE__ */ A("div", {
|
|
138
|
+
className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
139
|
+
children: K.map((e) => {
|
|
140
|
+
let t = M[e.__typename], n = e.pricePerNight ?? e.price ?? 0;
|
|
141
|
+
return /* @__PURE__ */ A(c, {
|
|
142
|
+
title: e.name,
|
|
143
|
+
meta: t,
|
|
144
|
+
price: `${e.currency} ${Number(n).toFixed(2)}`,
|
|
145
|
+
badge: /* @__PURE__ */ A(o, {
|
|
146
|
+
status: e.status,
|
|
147
|
+
live: !0
|
|
148
|
+
}),
|
|
149
|
+
footer: /* @__PURE__ */ A(O, {
|
|
150
|
+
align: "end",
|
|
151
|
+
actions: [
|
|
152
|
+
{
|
|
153
|
+
label: N("ggnomad.opsQueue.actions.approve", "Approve"),
|
|
154
|
+
onSelect: () => void ye(e),
|
|
155
|
+
disabled: fe,
|
|
156
|
+
icon: /* @__PURE__ */ A(f, {})
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
label: N("ggnomad.opsQueue.actions.reject", "Reject"),
|
|
160
|
+
onSelect: () => {
|
|
161
|
+
t && (F({
|
|
162
|
+
listingType: t,
|
|
163
|
+
id: e.id,
|
|
164
|
+
name: e.name
|
|
165
|
+
}), L(""));
|
|
166
|
+
},
|
|
167
|
+
intent: "destructive",
|
|
168
|
+
icon: /* @__PURE__ */ A(ae, {})
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
label: N("ggnomad.opsQueue.actions.history", "History"),
|
|
172
|
+
onSelect: () => U({
|
|
173
|
+
entityType: t ?? "PROPERTY",
|
|
174
|
+
entityId: e.id,
|
|
175
|
+
label: e.name
|
|
176
|
+
}),
|
|
177
|
+
icon: /* @__PURE__ */ A(m, {})
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
})
|
|
181
|
+
}, e.id);
|
|
182
|
+
})
|
|
183
|
+
})
|
|
184
|
+
}),
|
|
185
|
+
/* @__PURE__ */ A(s, {
|
|
186
|
+
title: N("ggnomad.opsQueue.bookingsTitle", "Booking queue"),
|
|
187
|
+
children: !ue && Y.length === 0 ? /* @__PURE__ */ A(k, {
|
|
188
|
+
illustration: "empty-data",
|
|
189
|
+
title: N("ggnomad.opsQueue.bookingsEmptyTitle", "No bookings need attention"),
|
|
190
|
+
description: N("ggnomad.opsQueue.bookingsEmptyDescription", "Pending, confirmed, and checked-in bookings appear here in scheduled-start order.")
|
|
191
|
+
}) : /* @__PURE__ */ A("div", {
|
|
192
|
+
className: "grid gap-3 sm:grid-cols-2 xl:grid-cols-3",
|
|
193
|
+
children: Y.map((e) => {
|
|
194
|
+
let t = [];
|
|
195
|
+
return e.status === "CONFIRMED" && t.push({
|
|
196
|
+
label: N("ggnomad.opsQueue.actions.checkIn", "Check in"),
|
|
197
|
+
onSelect: () => void xe(e),
|
|
198
|
+
disabled: he,
|
|
199
|
+
icon: /* @__PURE__ */ A(h, {})
|
|
200
|
+
}, {
|
|
201
|
+
label: N("ggnomad.opsQueue.actions.noShow", "Mark no-show"),
|
|
202
|
+
onSelect: () => z({
|
|
203
|
+
id: e.id,
|
|
204
|
+
referenceCode: e.referenceCode
|
|
205
|
+
}),
|
|
206
|
+
disabled: Q,
|
|
207
|
+
icon: /* @__PURE__ */ A(_, {})
|
|
208
|
+
}), e.status === "CHECKED_IN" && t.push({
|
|
209
|
+
label: N("ggnomad.opsQueue.actions.complete", "Complete"),
|
|
210
|
+
onSelect: () => void Se(e),
|
|
211
|
+
disabled: ge,
|
|
212
|
+
icon: /* @__PURE__ */ A(g, {})
|
|
213
|
+
}), t.push({
|
|
214
|
+
label: N("ggnomad.opsQueue.actions.cancel", "Cancel"),
|
|
215
|
+
onSelect: () => V({
|
|
216
|
+
id: e.id,
|
|
217
|
+
referenceCode: e.referenceCode
|
|
218
|
+
}),
|
|
219
|
+
disabled: $,
|
|
220
|
+
icon: /* @__PURE__ */ A(oe, {}),
|
|
221
|
+
intent: "destructive"
|
|
222
|
+
}, {
|
|
223
|
+
label: N("ggnomad.opsQueue.actions.history", "History"),
|
|
224
|
+
onSelect: () => U({
|
|
225
|
+
entityType: "BOOKING",
|
|
226
|
+
entityId: e.id,
|
|
227
|
+
label: e.referenceCode
|
|
228
|
+
}),
|
|
229
|
+
icon: /* @__PURE__ */ A(m, {})
|
|
230
|
+
}), /* @__PURE__ */ A(c, {
|
|
231
|
+
title: e.referenceCode,
|
|
232
|
+
meta: `${e.itemName} · ${e.guestName}`,
|
|
233
|
+
price: `${e.currency} ${Number(e.totalPrice).toFixed(2)}`,
|
|
234
|
+
badge: /* @__PURE__ */ A(o, {
|
|
235
|
+
status: e.status,
|
|
236
|
+
live: !0
|
|
237
|
+
}),
|
|
238
|
+
footer: /* @__PURE__ */ A(O, {
|
|
239
|
+
align: "end",
|
|
240
|
+
actions: t
|
|
241
|
+
})
|
|
242
|
+
}, e.id);
|
|
243
|
+
})
|
|
244
|
+
})
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ A(b, {
|
|
247
|
+
open: P !== null,
|
|
248
|
+
onOpenChange: (e) => {
|
|
249
|
+
e || (F(null), L(""));
|
|
250
|
+
},
|
|
251
|
+
children: /* @__PURE__ */ j(C, { children: [
|
|
252
|
+
/* @__PURE__ */ j(E, { children: [/* @__PURE__ */ A(D, { children: N("ggnomad.opsQueue.rejectDialog.title", "Reject this listing?") }), /* @__PURE__ */ A(w, { children: N("ggnomad.opsQueue.rejectDialog.body", "This sends {{name}} back to DRAFT. The reason is recorded.").replace("{{name}}", P?.name ?? "") })] }),
|
|
253
|
+
/* @__PURE__ */ j("div", { children: [/* @__PURE__ */ A("label", {
|
|
254
|
+
htmlFor: "ops-reject-reason",
|
|
255
|
+
className: "block text-sm font-medium text-text-primary",
|
|
256
|
+
children: N("ggnomad.opsQueue.rejectDialog.reasonLabel", "Reason")
|
|
257
|
+
}), /* @__PURE__ */ A("textarea", {
|
|
258
|
+
id: "ops-reject-reason",
|
|
259
|
+
value: I,
|
|
260
|
+
onChange: (e) => L(e.target.value),
|
|
261
|
+
disabled: X,
|
|
262
|
+
rows: 3,
|
|
263
|
+
className: "mt-1 w-full rounded-md border border-border-seam bg-bg-canvas px-3 py-2 text-sm text-text-primary placeholder-text-secondary focus:border-action-primary-bg focus:outline-none focus:ring-1 focus:ring-action-primary-bg disabled:opacity-50",
|
|
264
|
+
placeholder: N("ggnomad.opsQueue.rejectDialog.reasonPlaceholder", "e.g. Missing required photos")
|
|
265
|
+
})] }),
|
|
266
|
+
/* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(S, {
|
|
267
|
+
disabled: X,
|
|
268
|
+
children: N("ggnomad.opsQueue.rejectDialog.cancel", "Keep pending")
|
|
269
|
+
}), /* @__PURE__ */ A(x, {
|
|
270
|
+
className: "bg-action-danger-bg text-action-danger-text hover:bg-action-danger-bgHover",
|
|
271
|
+
disabled: X,
|
|
272
|
+
onClick: (e) => {
|
|
273
|
+
e.preventDefault(), be();
|
|
274
|
+
},
|
|
275
|
+
children: X ? N("ggnomad.opsQueue.rejectDialog.rejecting", "Rejecting…") : N("ggnomad.opsQueue.rejectDialog.confirm", "Reject listing")
|
|
276
|
+
})] })
|
|
277
|
+
] })
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ A(b, {
|
|
280
|
+
open: R !== null,
|
|
281
|
+
onOpenChange: (e) => !e && z(null),
|
|
282
|
+
children: /* @__PURE__ */ j(C, { children: [/* @__PURE__ */ j(E, { children: [/* @__PURE__ */ A(D, { children: N("ggnomad.opsQueue.noShowDialog.title", "Mark as no-show?") }), /* @__PURE__ */ A(w, { children: N("ggnomad.opsQueue.noShowDialog.body", "{{ref}} will be marked NO_SHOW. Only allowed once the scheduled start has arrived.").replace("{{ref}}", R?.referenceCode ?? "") })] }), /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(S, {
|
|
283
|
+
disabled: Q,
|
|
284
|
+
children: N("ggnomad.opsQueue.noShowDialog.cancel", "Keep booking")
|
|
285
|
+
}), /* @__PURE__ */ j(x, {
|
|
286
|
+
disabled: Q,
|
|
287
|
+
onClick: (e) => {
|
|
288
|
+
e.preventDefault(), Ce();
|
|
289
|
+
},
|
|
290
|
+
children: [/* @__PURE__ */ A(ie, { className: "mr-1 size-4" }), Q ? N("ggnomad.opsQueue.noShowDialog.marking", "Marking…") : N("ggnomad.opsQueue.noShowDialog.confirm", "Mark no-show")]
|
|
291
|
+
})] })] })
|
|
292
|
+
}),
|
|
293
|
+
/* @__PURE__ */ A(b, {
|
|
294
|
+
open: B !== null,
|
|
295
|
+
onOpenChange: (e) => !e && V(null),
|
|
296
|
+
children: /* @__PURE__ */ j(C, { children: [/* @__PURE__ */ j(E, { children: [/* @__PURE__ */ A(D, { children: N("ggnomad.opsQueue.cancelDialog.title", "Cancel this booking?") }), /* @__PURE__ */ A(w, { children: N("ggnomad.opsQueue.cancelDialog.body", "This releases reservation {{ref}} and cannot be undone.").replace("{{ref}}", B?.referenceCode ?? "") })] }), /* @__PURE__ */ j(T, { children: [/* @__PURE__ */ A(S, {
|
|
297
|
+
disabled: $,
|
|
298
|
+
children: N("ggnomad.opsQueue.cancelDialog.keep", "Keep booking")
|
|
299
|
+
}), /* @__PURE__ */ A(x, {
|
|
300
|
+
className: "bg-action-danger-bg text-action-danger-text hover:bg-action-danger-bgHover",
|
|
301
|
+
disabled: $,
|
|
302
|
+
onClick: (e) => {
|
|
303
|
+
e.preventDefault(), we();
|
|
304
|
+
},
|
|
305
|
+
children: $ ? N("ggnomad.opsQueue.cancelDialog.cancelling", "Cancelling…") : N("ggnomad.opsQueue.cancelDialog.confirm", "Cancel booking")
|
|
306
|
+
})] })] })
|
|
307
|
+
}),
|
|
308
|
+
H ? /* @__PURE__ */ A(re, {
|
|
309
|
+
open: H !== null,
|
|
310
|
+
onOpenChange: (e) => {
|
|
311
|
+
e || U(null);
|
|
312
|
+
},
|
|
313
|
+
entityType: H.entityType,
|
|
314
|
+
entityId: H.entityId,
|
|
315
|
+
label: H.label
|
|
316
|
+
}) : null
|
|
317
|
+
]
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
//#endregion
|
|
321
|
+
export { N as OperationsQueuePage };
|
|
322
|
+
|
|
323
|
+
//# sourceMappingURL=OperationsQueuePage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationsQueuePage.js","names":[],"sources":["../../../src/ggnomad/pages/OperationsQueuePage.tsx"],"sourcesContent":["import { useMemo, useState } from 'react';\nimport { useMutation, useQuery } from '@apollo/client/react';\nimport type { TypedDocumentNode } from '@apollo/client';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport {\n Check,\n ClipboardList,\n History,\n LogIn,\n LogOut,\n ShieldQuestion,\n UserX,\n X,\n XCircle,\n} from 'lucide-react';\nimport type { CTAAction } from '@burdenoff/fe-libs/ui';\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogHeader,\n AlertDialogTitle,\n CTAOverflowMenu,\n IllustratedEmptyState,\n PagePurpose,\n} from '@burdenoff/fe-libs/ui';\n\nimport {\n APPROVE_GGNOMAD_LISTING_MUTATION,\n CANCEL_GGNOMAD_BOOKING_MUTATION,\n CHECK_IN_GGNOMAD_BOOKING_MUTATION,\n COMPLETE_GGNOMAD_BOOKING_MUTATION,\n GGNOMAD_BOOKING_QUEUE_QUERY,\n GGNOMAD_LISTING_REVIEW_QUEUE_QUERY,\n MARK_GGNOMAD_BOOKING_NO_SHOW_MUTATION,\n REJECT_GGNOMAD_LISTING_MUTATION,\n} from '../graphql';\nimport { PageShell } from './PageShell';\nimport { AuditTrailDialog, EntityCard, SectionCard, StatusBadge } from '../components';\nimport { notify } from '../utils/notify';\n\ntype ListingType = 'PROPERTY' | 'TOUR' | 'EVENT' | 'ACTIVITY';\n\ninterface QueuedListing {\n __typename: string;\n id: string;\n name: string;\n status: string;\n price?: number;\n pricePerNight?: number;\n currency: string;\n providerId: string | null;\n}\n\ninterface QueuedBooking {\n id: string;\n referenceCode: string;\n bookingType: string;\n status: string;\n itemName: string;\n guestName: string;\n guests: number;\n checkIn: string | null;\n checkOut: string | null;\n eventDate: string | null;\n totalPrice: number;\n currency: string;\n}\n\nconst LISTING_TYPE_BY_TYPENAME: Record<string, ListingType> = {\n GgnomadProperty: 'PROPERTY',\n GgnomadTour: 'TOUR',\n GgnomadEvent: 'EVENT',\n GgnomadActivity: 'ACTIVITY',\n};\n\ntype HistoryTarget = { entityType: string; entityId: string; label: string };\ntype RejectTarget = { listingType: ListingType; id: string; name: string };\ntype NoShowTarget = { id: string; referenceCode: string };\ntype CancelTarget = { id: string; referenceCode: string };\n\n/**\n * BOFF-4388 — the operational side of the marketplace: a marketplace operator\n * (or host-operator for their own submissions) reviews PENDING_REVIEW\n * listings and works the incoming booking queue from one place. Every action\n * here calls a real, guarded mutation on wspace-ggnomad-svc — approve/reject\n * on listings are gated server-side by the `ggnomad:manage` RBAC action\n * (marketplace operator only); check-in/complete/no-show/cancel are gated by\n * `ggnomad:update` (host-operator and above).\n */\nexport function OperationsQueuePage() {\n const { t } = useI18n();\n const [rejectTarget, setRejectTarget] = useState<RejectTarget | null>(null);\n const [rejectReason, setRejectReason] = useState('');\n const [noShowTarget, setNoShowTarget] = useState<NoShowTarget | null>(null);\n const [cancelTarget, setCancelTarget] = useState<CancelTarget | null>(null);\n const [historyTarget, setHistoryTarget] = useState<HistoryTarget | null>(null);\n\n const {\n data: listingData,\n refetch: refetchListings,\n loading: listingsLoading,\n } = useQuery(\n GGNOMAD_LISTING_REVIEW_QUEUE_QUERY as TypedDocumentNode<\n { ggnomadListingReviewQueue: QueuedListing[] },\n { limit?: number; offset?: number }\n >,\n { variables: { limit: 20, offset: 0 } }\n );\n const listings = useMemo(\n () => listingData?.ggnomadListingReviewQueue ?? [],\n [listingData?.ggnomadListingReviewQueue]\n );\n\n const {\n data: bookingData,\n refetch: refetchBookings,\n loading: bookingsLoading,\n } = useQuery(\n GGNOMAD_BOOKING_QUEUE_QUERY as TypedDocumentNode<\n { ggnomadBookingQueue: QueuedBooking[] },\n { limit?: number; offset?: number }\n >,\n { variables: { limit: 20, offset: 0 } }\n );\n const bookings = useMemo(\n () => bookingData?.ggnomadBookingQueue ?? [],\n [bookingData?.ggnomadBookingQueue]\n );\n\n const [approveListing, { loading: approving }] = useMutation(\n APPROVE_GGNOMAD_LISTING_MUTATION as TypedDocumentNode<\n { approveGgnomadListing: { id: string; status: string } },\n { listingType: ListingType; id: string; note?: string }\n >\n );\n const [rejectListing, { loading: rejecting }] = useMutation(\n REJECT_GGNOMAD_LISTING_MUTATION as TypedDocumentNode<\n { rejectGgnomadListing: { id: string; status: string } },\n { listingType: ListingType; id: string; reason: string }\n >\n );\n const [checkInBooking, { loading: checkingIn }] = useMutation(\n CHECK_IN_GGNOMAD_BOOKING_MUTATION as TypedDocumentNode<\n { checkInGgnomadBooking: { id: string } },\n { id: string }\n >\n );\n const [completeBooking, { loading: completing }] = useMutation(\n COMPLETE_GGNOMAD_BOOKING_MUTATION as TypedDocumentNode<\n { completeGgnomadBooking: { id: string } },\n { id: string }\n >\n );\n const [markNoShow, { loading: markingNoShow }] = useMutation(\n MARK_GGNOMAD_BOOKING_NO_SHOW_MUTATION as TypedDocumentNode<\n { markGgnomadBookingNoShow: { id: string } },\n { id: string; reason?: string }\n >\n );\n const [cancelBooking, { loading: cancelling }] = useMutation(\n CANCEL_GGNOMAD_BOOKING_MUTATION as TypedDocumentNode<\n { cancelGgnomadBooking: { id: string } },\n { id: string; reason: string }\n >\n );\n\n const handleApprove = async (listing: QueuedListing) => {\n const listingType = LISTING_TYPE_BY_TYPENAME[listing.__typename];\n if (!listingType) return;\n try {\n const result = await approveListing({ variables: { listingType, id: listing.id } });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.approveErrorTitle', 'Could not approve listing'),\n result.error.message\n );\n return;\n }\n notify.success(t('ggnomad.opsQueue.approveSuccessTitle', 'Listing approved'), listing.name);\n await refetchListings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.approveErrorTitle', 'Could not approve listing'),\n err instanceof Error ? err.message : String(err)\n );\n }\n };\n\n const confirmReject = async () => {\n if (!rejectTarget) return;\n if (!rejectReason.trim()) {\n notify.warning(\n t('ggnomad.opsQueue.reject.reasonRequiredTitle', 'A reason is required'),\n t('ggnomad.opsQueue.reject.reasonRequiredBody', 'Let the submitter know what needs fixing.')\n );\n return;\n }\n try {\n const result = await rejectListing({\n variables: {\n listingType: rejectTarget.listingType,\n id: rejectTarget.id,\n reason: rejectReason.trim(),\n },\n });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.rejectErrorTitle', 'Could not reject listing'),\n result.error.message\n );\n return;\n }\n notify.success(\n t('ggnomad.opsQueue.rejectSuccessTitle', 'Listing sent back to draft'),\n rejectTarget.name\n );\n await refetchListings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.rejectErrorTitle', 'Could not reject listing'),\n err instanceof Error ? err.message : String(err)\n );\n } finally {\n setRejectTarget(null);\n setRejectReason('');\n }\n };\n\n const handleCheckIn = async (booking: QueuedBooking) => {\n try {\n const result = await checkInBooking({ variables: { id: booking.id } });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.checkInErrorTitle', 'Could not check in'),\n result.error.message\n );\n return;\n }\n notify.success(\n t('ggnomad.opsQueue.checkInSuccessTitle', 'Checked in'),\n booking.referenceCode\n );\n await refetchBookings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.checkInErrorTitle', 'Could not check in'),\n err instanceof Error ? err.message : String(err)\n );\n }\n };\n\n const handleComplete = async (booking: QueuedBooking) => {\n try {\n const result = await completeBooking({ variables: { id: booking.id } });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.completeErrorTitle', 'Could not complete booking'),\n result.error.message\n );\n return;\n }\n notify.success(\n t('ggnomad.opsQueue.completeSuccessTitle', 'Booking completed'),\n booking.referenceCode\n );\n await refetchBookings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.completeErrorTitle', 'Could not complete booking'),\n err instanceof Error ? err.message : String(err)\n );\n }\n };\n\n const confirmNoShow = async () => {\n if (!noShowTarget) return;\n try {\n const result = await markNoShow({\n variables: {\n id: noShowTarget.id,\n reason: t('ggnomad.opsQueue.noShowReason', 'Marked via operations queue'),\n },\n });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.noShowErrorTitle', 'Could not mark as no-show'),\n result.error.message\n );\n return;\n }\n notify.success(\n t('ggnomad.opsQueue.noShowSuccessTitle', 'Marked as no-show'),\n noShowTarget.referenceCode\n );\n await refetchBookings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.noShowErrorTitle', 'Could not mark as no-show'),\n err instanceof Error ? err.message : String(err)\n );\n } finally {\n setNoShowTarget(null);\n }\n };\n\n const confirmCancel = async () => {\n if (!cancelTarget) return;\n try {\n const result = await cancelBooking({\n variables: {\n id: cancelTarget.id,\n reason: t('ggnomad.opsQueue.cancelReason', 'Cancelled via operations queue'),\n },\n });\n if (result.error) {\n notify.error(\n t('ggnomad.opsQueue.cancelErrorTitle', 'Could not cancel booking'),\n result.error.message\n );\n return;\n }\n notify.success(\n t('ggnomad.opsQueue.cancelSuccessTitle', 'Booking cancelled'),\n cancelTarget.referenceCode\n );\n await refetchBookings();\n } catch (err) {\n notify.error(\n t('ggnomad.opsQueue.cancelErrorTitle', 'Could not cancel booking'),\n err instanceof Error ? err.message : String(err)\n );\n } finally {\n setCancelTarget(null);\n }\n };\n\n return (\n <PageShell\n title={t('ggnomad.opsQueue.title', 'Operations Queue')}\n titleAccent={t('ggnomad.opsQueue.title.accent', 'Operations')}\n subtitle={t(\n 'ggnomad.opsQueue.subtitle',\n 'Verify listings before they go live and work the incoming booking queue'\n )}\n >\n <PagePurpose icon={<ClipboardList className=\"size-4\" />}>\n {t(\n 'ggnomad.opsQueue.purpose',\n 'Listings move DRAFT → PENDING_REVIEW → ACTIVE — approve or reject submissions here before they can be booked. Bookings move PENDING → CONFIRMED → CHECKED_IN → COMPLETED — check guests in, complete stays, or mark a no-show once the scheduled date has arrived. Every action is recorded in the transition history.'\n )}\n </PagePurpose>\n\n <SectionCard title={t('ggnomad.opsQueue.listingsTitle', 'Listings awaiting review')}>\n {!listingsLoading && listings.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={t('ggnomad.opsQueue.listingsEmptyTitle', 'Nothing waiting on you')}\n description={t(\n 'ggnomad.opsQueue.listingsEmptyDescription',\n 'Listings submitted for review will show up here in submission order.'\n )}\n />\n ) : (\n <div className=\"grid gap-3 sm:grid-cols-2 xl:grid-cols-3\">\n {listings.map((listing) => {\n const listingType = LISTING_TYPE_BY_TYPENAME[listing.__typename];\n const price = listing.pricePerNight ?? listing.price ?? 0;\n return (\n <EntityCard\n key={listing.id}\n title={listing.name}\n meta={listingType}\n price={`${listing.currency} ${Number(price).toFixed(2)}`}\n badge={<StatusBadge status={listing.status} live />}\n footer={\n <CTAOverflowMenu\n align=\"end\"\n actions={[\n {\n label: t('ggnomad.opsQueue.actions.approve', 'Approve'),\n onSelect: () => void handleApprove(listing),\n disabled: approving,\n icon: <Check />,\n },\n {\n label: t('ggnomad.opsQueue.actions.reject', 'Reject'),\n onSelect: () => {\n if (!listingType) return;\n setRejectTarget({ listingType, id: listing.id, name: listing.name });\n setRejectReason('');\n },\n intent: 'destructive',\n icon: <X />,\n },\n {\n label: t('ggnomad.opsQueue.actions.history', 'History'),\n onSelect: () =>\n setHistoryTarget({\n entityType: listingType ?? 'PROPERTY',\n entityId: listing.id,\n label: listing.name,\n }),\n icon: <History />,\n },\n ]}\n />\n }\n />\n );\n })}\n </div>\n )}\n </SectionCard>\n\n <SectionCard title={t('ggnomad.opsQueue.bookingsTitle', 'Booking queue')}>\n {!bookingsLoading && bookings.length === 0 ? (\n <IllustratedEmptyState\n illustration=\"empty-data\"\n title={t('ggnomad.opsQueue.bookingsEmptyTitle', 'No bookings need attention')}\n description={t(\n 'ggnomad.opsQueue.bookingsEmptyDescription',\n 'Pending, confirmed, and checked-in bookings appear here in scheduled-start order.'\n )}\n />\n ) : (\n <div className=\"grid gap-3 sm:grid-cols-2 xl:grid-cols-3\">\n {bookings.map((booking) => {\n const actions: CTAAction[] = [];\n if (booking.status === 'CONFIRMED') {\n actions.push(\n {\n label: t('ggnomad.opsQueue.actions.checkIn', 'Check in'),\n onSelect: () => void handleCheckIn(booking),\n disabled: checkingIn,\n icon: <LogIn />,\n },\n {\n label: t('ggnomad.opsQueue.actions.noShow', 'Mark no-show'),\n onSelect: () =>\n setNoShowTarget({ id: booking.id, referenceCode: booking.referenceCode }),\n disabled: markingNoShow,\n icon: <ShieldQuestion />,\n }\n );\n }\n if (booking.status === 'CHECKED_IN') {\n actions.push({\n label: t('ggnomad.opsQueue.actions.complete', 'Complete'),\n onSelect: () => void handleComplete(booking),\n disabled: completing,\n icon: <LogOut />,\n });\n }\n actions.push(\n {\n label: t('ggnomad.opsQueue.actions.cancel', 'Cancel'),\n onSelect: () =>\n setCancelTarget({ id: booking.id, referenceCode: booking.referenceCode }),\n disabled: cancelling,\n icon: <XCircle />,\n intent: 'destructive',\n },\n {\n label: t('ggnomad.opsQueue.actions.history', 'History'),\n onSelect: () =>\n setHistoryTarget({\n entityType: 'BOOKING',\n entityId: booking.id,\n label: booking.referenceCode,\n }),\n icon: <History />,\n }\n );\n\n return (\n <EntityCard\n key={booking.id}\n title={booking.referenceCode}\n meta={`${booking.itemName} · ${booking.guestName}`}\n price={`${booking.currency} ${Number(booking.totalPrice).toFixed(2)}`}\n badge={<StatusBadge status={booking.status} live />}\n footer={<CTAOverflowMenu align=\"end\" actions={actions} />}\n />\n );\n })}\n </div>\n )}\n </SectionCard>\n\n <AlertDialog\n open={rejectTarget !== null}\n onOpenChange={(open) => {\n if (!open) {\n setRejectTarget(null);\n setRejectReason('');\n }\n }}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {t('ggnomad.opsQueue.rejectDialog.title', 'Reject this listing?')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {t(\n 'ggnomad.opsQueue.rejectDialog.body',\n 'This sends {{name}} back to DRAFT. The reason is recorded.'\n ).replace('{{name}}', rejectTarget?.name ?? '')}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <div>\n <label\n htmlFor=\"ops-reject-reason\"\n className=\"block text-sm font-medium text-text-primary\"\n >\n {t('ggnomad.opsQueue.rejectDialog.reasonLabel', 'Reason')}\n </label>\n <textarea\n id=\"ops-reject-reason\"\n value={rejectReason}\n onChange={(e) => setRejectReason(e.target.value)}\n disabled={rejecting}\n rows={3}\n className=\"mt-1 w-full rounded-md border border-border-seam bg-bg-canvas px-3 py-2 text-sm text-text-primary placeholder-text-secondary focus:border-action-primary-bg focus:outline-none focus:ring-1 focus:ring-action-primary-bg disabled:opacity-50\"\n placeholder={t(\n 'ggnomad.opsQueue.rejectDialog.reasonPlaceholder',\n 'e.g. Missing required photos'\n )}\n />\n </div>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={rejecting}>\n {t('ggnomad.opsQueue.rejectDialog.cancel', 'Keep pending')}\n </AlertDialogCancel>\n <AlertDialogAction\n className=\"bg-action-danger-bg text-action-danger-text hover:bg-action-danger-bgHover\"\n disabled={rejecting}\n onClick={(event) => {\n event.preventDefault();\n void confirmReject();\n }}\n >\n {rejecting\n ? t('ggnomad.opsQueue.rejectDialog.rejecting', 'Rejecting…')\n : t('ggnomad.opsQueue.rejectDialog.confirm', 'Reject listing')}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n <AlertDialog\n open={noShowTarget !== null}\n onOpenChange={(open) => !open && setNoShowTarget(null)}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {t('ggnomad.opsQueue.noShowDialog.title', 'Mark as no-show?')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {t(\n 'ggnomad.opsQueue.noShowDialog.body',\n '{{ref}} will be marked NO_SHOW. Only allowed once the scheduled start has arrived.'\n ).replace('{{ref}}', noShowTarget?.referenceCode ?? '')}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={markingNoShow}>\n {t('ggnomad.opsQueue.noShowDialog.cancel', 'Keep booking')}\n </AlertDialogCancel>\n <AlertDialogAction\n disabled={markingNoShow}\n onClick={(event) => {\n event.preventDefault();\n void confirmNoShow();\n }}\n >\n <UserX className=\"mr-1 size-4\" />\n {markingNoShow\n ? t('ggnomad.opsQueue.noShowDialog.marking', 'Marking…')\n : t('ggnomad.opsQueue.noShowDialog.confirm', 'Mark no-show')}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n <AlertDialog\n open={cancelTarget !== null}\n onOpenChange={(open) => !open && setCancelTarget(null)}\n >\n <AlertDialogContent>\n <AlertDialogHeader>\n <AlertDialogTitle>\n {t('ggnomad.opsQueue.cancelDialog.title', 'Cancel this booking?')}\n </AlertDialogTitle>\n <AlertDialogDescription>\n {t(\n 'ggnomad.opsQueue.cancelDialog.body',\n 'This releases reservation {{ref}} and cannot be undone.'\n ).replace('{{ref}}', cancelTarget?.referenceCode ?? '')}\n </AlertDialogDescription>\n </AlertDialogHeader>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={cancelling}>\n {t('ggnomad.opsQueue.cancelDialog.keep', 'Keep booking')}\n </AlertDialogCancel>\n <AlertDialogAction\n className=\"bg-action-danger-bg text-action-danger-text hover:bg-action-danger-bgHover\"\n disabled={cancelling}\n onClick={(event) => {\n event.preventDefault();\n void confirmCancel();\n }}\n >\n {cancelling\n ? t('ggnomad.opsQueue.cancelDialog.cancelling', 'Cancelling…')\n : t('ggnomad.opsQueue.cancelDialog.confirm', 'Cancel booking')}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n\n {historyTarget ? (\n <AuditTrailDialog\n open={historyTarget !== null}\n onOpenChange={(open) => {\n if (!open) setHistoryTarget(null);\n }}\n entityType={historyTarget.entityType}\n entityId={historyTarget.entityId}\n label={historyTarget.label}\n />\n ) : null}\n </PageShell>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAwEA,IAAM,IAAwD;CAC5D,iBAAiB;CACjB,aAAa;CACb,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mB,UAAU;eAC1B,EAAE,sCAAsC,cAAc;IACtC,CAAA,GACnB,kBAAC,GAAD;KACE,WAAU;KACV,UAAU;KACV,UAAU,MAAU;MAElB,AADA,EAAM,eAAe,GACrB,GAAmB;KACrB;eAEC,IACG,EAAE,4CAA4C,aAAa,IAC3D,EAAE,yCAAyC,gBAAgB;IAC9C,CAAA,CACF,EAAA,CAAA,CACD,EAAA,CAAA;GACT,CAAA;GAEZ,IACC,kBAAC,IAAD;IACE,MAAM,MAAkB;IACxB,eAAe,MAAS;KACtB,AAAK,KAAM,EAAiB,IAAI;IAClC;IACA,YAAY,EAAc;IAC1B,UAAU,EAAc;IACxB,OAAO,EAAc;GACtB,CAAA,IACC;EACK;;AAEf"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/microfe-ggnomad",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.728.1",
|
|
4
4
|
"description": "Burdenoff GGNomad Microfrontend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"lucide-react": "^0.468.0",
|
|
95
95
|
"react": "^19.0.0",
|
|
96
96
|
"react-dom": "^19.0.0",
|
|
97
|
-
"react-router-dom": "^7.1
|
|
97
|
+
"react-router-dom": "^7.18.1",
|
|
98
98
|
"recharts": "^2.15.0",
|
|
99
99
|
"sonner": "^2.0.7",
|
|
100
100
|
"tailwind-merge": "^3.4.0",
|