Optional handler receiving guestId, alertId, from and to. Reject stale or refused changes and supply a fresh snapshot to confirm success.
indexnumber (optional)
Offsets the staggered entrance of avatars and rows in a widget grid.
Data and integration
Preview
A fictional boutique hotel briefing with five guests, three open preparations and one completed task.
Inputs
Supply businessDate as YYYY-MM-DD, in the property's local calendar. timeZone is an IANA identifier and defaults to UTC when absent or unrecognised. asOf, expectedAt and dueAt are optional Unix milliseconds. Each guest has a stable id, a display name and a tags array containing vip, returning, corporate or loyalty. Optional guest fields are room, avatarSrc, arrivalStatus (expected or checkedIn), expectedAt and alerts. An alert has an id unique within its guest, a title and status (open or resolved), with optional note, dueAt and editable.
Source options
Build the day's authorised roster from reservations and guest profiles, then attach only the front-desk preparations relevant to each stay. Publish the hotel business date, timezone and snapshot time. Refresh after changes to arrivals, room assignments or alerts, and as deadlines pass.
Actions
Open Guests for arrival details, tags and room assignments. Open a priority row or the alert list to inspect a task. With an onAlertChange handler, Mark resolved and Reopen alert submit the two IDs and expected state. The host checks permissions and current state before writing. The card and counters use the confirmed snapshot. Set editable to false for a read-only task.
Integration requirements
An open alert is overdue once its dueAt reaches the supplied asOf time. Without a valid asOf the widget displays deadlines without assessing lateness. It prioritises open alerts by earliest valid deadline, followed by tasks with no deadline. Closed alerts remain available in the alert list. Duplicate guest or alert IDs use the last valid record within their scope. An empty array represents a confirmed empty briefing. Pass stale to keep the last snapshot readable and disable updates.