Handle add, ready, wait, seat, and remove. Publish the complete confirmed queue after success and reject on failure. Omit for a read-only connected queue.
indexnumber (optional)
Offsets the row and progress animations in a widget grid.
Data and integration
Preview
A fictional host stand with a ready table, a party past its quote and several parties still waiting.
Inputs
Supply the complete active queue. Each party has a stable unique id, nonblank name, positive whole guest count (size), whole quotedMinutes of at least 1, joinedAt in Unix milliseconds, and status waiting or ready. note and readyAt in Unix milliseconds are optional. Pass an empty array for a confirmed empty queue or null for an unavailable feed.
Source options
Map the reservation or guest queue at the host. Retain each ID across refreshes and send readyAt when available for the current table-ready state. The host owns persistence and any guest messaging.
Actions
Open a party to review its wait, quote and seating note. Add submits a validated party draft. Mark ready, back to waiting, seat and remove send the selected ID. Seat and remove finish when the host's complete queue no longer contains that ID.
Integration requirements
Ready parties sort first, then by original check-in time within each group. The elapsed wait uses whole minutes. A waiting party counts as past quote after its elapsed minutes exceed the quote. For a ready party with a valid readyAt between check-in and now, the displayed wait is time to ready. Other ready parties keep their elapsed wait. Host actions must publish complete snapshots, validate business rules, and reject failures. A resolved add acknowledges receipt of the draft. The new row appears from the host snapshot.