Compare weekly occupancy by room type and open the seven nightly readings to spot sold-out dates or overbooking.
Room Occupancy Outlook · 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.
snapshotWeekOccupancySnapshot | null (optional)
Property, weekly start dates and room types with daily booked and sellable room-night counts. Optionally set the preferred start date. Pass null for an unavailable feed or omit for sample data.
indexnumber (optional)
Small offset for the rail entrance stagger.
Data and integration
Preview
Two sample weeks at Linden Wharf Hotel with four room types. The first includes one overbooked night. The second includes missing reports and a night with no inventory.
Inputs
Supply the property and weeks with a startDate, optional preferredStartDate on the snapshot, and room types with a stable id, name and dated nightly counts. Use local YYYY-MM-DD dates. The widget reads a seven-night window starting on startDate. Supply a Monday for an ISO-style hotel report.
Source options
Map your property-management feed by local night and room type. Sellable is the total capacity offered for the night, including rooms already booked. Expand each stay into the nights it covers, then group room nights once per category and date. Publish a new snapshot on refresh.
Actions
Change the selected week or open a room type to inspect each of its seven nights, counts and remaining rooms. Bars cap at full width while the reading preserves occupancy above 100%.
Integration requirements
Use nonnegative safe-integer counts or null. Occupancy is total booked divided by total sellable for entries with both counts, weighted by nightly capacity. Missing or invalid counts exclude that entry and mark available totals partial. Zero booked with positive capacity is 0%. Zero capacity has no percentage. Bookings above capacity are flagged as overbooked, including above zero capacity. Equal bookings and positive capacity means sold out. Overbooked dates in the header count distinct dates across room types. Duplicate dates or room IDs use the first occurrence. Pass an empty list for a confirmed empty report, or snapshot: null for an unavailable feed.