Guides
The guide roster with certifications and upcoming assignments.
/dashboard/platform/guides lists up to 100 guides, ordered by name. It reads the generated guides query, so it needs canManageGuides.
Each card shows the guide's name and status, languages, pay rate (per tour or per hour), each certification with its expiry, and up to five offered or accepted assignments. A certification that expires within 30 days is highlighted.
Assignments
Offer assignment offers a departure to a guide. Accept and Decline answer an offer. They call:
assignGuide(needscanManageGuides) offers a departure to a guide aslead,assistant, ordriver. It refuses an inactive guide, a closed departure, an expired required certification, an overlapping accepted or worked assignment, and a time-off block.respondToAssignmentlets the guide's own user, or a user withcanManageGuides, move anofferedassignment toacceptedordeclined. Acceptance re-checks overlap and certifications.
The pay for an assignment is copied when it is offered: the per-tour rate, or the hourly rate times the departure length.
Payouts
closeDeparture creates one draft GuidePayout for each accepted guide and marks the assignment worked. Payouts are settled on Channels under Guide payouts: Approve payout, then Record paid with a payment reference (transitionGuidePayout, needs canManageGuides and canManagePayments). It records evidence only. No money moves.
Other lists
GuideCertification and GuideAvailability are generic lists. A guide's status is set at creation and cannot be changed by update. Availability blocks are read from the unavailable field as a list of startAt and endAt pairs. The weeklyRules field is stored but not read.