Find tours and transfers missing a guide, driver or vehicle, check blockers, and manage confirmed assignments.
Tour Assignment Gaps · Preview
Loading widget…
Preparing integration examples…
Source under review
The source code and files will be available after this version passes review.
Idle
API contract
Props for integrating the React component in your app.
snapshotUnassignedJobsSnapshot | null (optional)
The schedule, required positions, available resources and confirmed assignments. Omit for the built-in example. Pass null when the schedule is unavailable.
Receives jobId, slotId and resourceId. Revalidate against current availability, reject failed assignments and publish the confirmed schedule. Omit for read-only data.
Receives jobId, slotId, currentResourceId and resourceId. Check the expected current resource and replace it atomically. Reject failed replacements and publish the confirmed schedule.
Receives jobId, slotId and currentResourceId. Check that the expected resource is still assigned, then release it and publish the updated open position. Reject failed removals.
indexnumber (optional)
Adds a short delay to the initial appearance of the job rows.
Data and integration
Preview
Three fictional jobs with overlapping departure times, two staff members and vehicles of different capacities.
Inputs
Jobs have stable id, title, startsAt and endsAt in Unix milliseconds, passengers as a nonnegative integer or null, and slots. Each slot has an id unique in the job, role guide, driver or vehicle, and an optional assignment with resourceId, optional label and optional avatarSrc. An omitted or null assignment means the position is open. Optional eligibleResourceIds is a host allowlist. Optional blockedReason is a display message that prevents assigning or replacing a resource. Resources have id, label, roles, and optional avatarSrc, seats and unavailableReason. Optional operation is a display label and timeZone is an IANA time zone. Omitted or invalid time zones display UTC.
Source options
Provide the dispatch system's schedule and resource roster. Include relevant confirmed bookings. Use eligibleResourceIds, blockedReason or unavailableReason for constraints outside the loaded schedule. The server owns permissions, current availability, qualifications, and protection against concurrent changes.
Actions
Drag or select a resource for an open position. Open a blocked position to review its reason and unavailable candidates. Open a confirmed position to choose a compatible replacement or confirm removal. The same controls work with Enter or Space.
Integration requirements
Vehicle assignments and replacements require a known seat count and guest count. Assignments may share a resource only for non-overlapping intervals. An end equal to the next start does not overlap. Invalid intervals block new assignments and replacements. Missing or stale schedules are read-only. Each callback enables its own action. Reject a failed command, including a mismatch on currentResourceId, and publish the confirmed schedule after each success. For removal, publish assignment: null or omit the assignment field on the retained slot. The widget waits for the requested position to reflect the change, and the open count reflects the most recent schedule.