Collapse gaps¶
Collapse Gaps removes the empty time between scheduled items in a room by moving each later item's display start back to the moment the earlier items stop showing. It changes display times only. Render times, item JSON, templates, and the room's Room Offset are not changed.
You need event write access and the Admin or Super Admin role. The action is blocked while an import is running for the event.
Where to run it¶
| Where | What it collapses |
|---|---|
| Room viewer, Collapse Room Item Gaps | One room, on one selected date or on All Dates |
| Event page, Bulk Room Updates, Collapse Gaps | The selected physical rooms on the selected dates |
| Event page, Collapse All Scheduled Item Gaps in Event | Every room on every date |
All three run the same calculation, so the same room and date always collapse the same way, no matter where you start it from. The room viewer button is unavailable while the room has a Room Offset; use Bulk Room Updates for that room instead.
How a gap is closed¶
Onlit works through each room one calendar date at a time, in the event timezone. On a date it takes the enabled items in display-start order and keeps track of the latest display end reached so far. An item that starts after that point is moved back to it. An item that starts at or before that point already touches or overlaps an earlier item and is left alone.
A moved item keeps its display end, so it becomes longer by exactly the gap that was removed. Its render times and JSON are untouched.
Example: a plain gap¶
| Item | Before | After |
|---|---|---|
| Keynote | 09:00–10:00 | 09:00–10:00 |
| Break | 10:30–11:00 | 10:00–11:00 |
Example: an item inside another item¶
| Item | Before | After |
|---|---|---|
| Conference day | 09:00–12:00 | 09:00–12:00 |
| Sponsor slot | 10:00–10:30 | 10:00–10:30 |
| Lunch | 13:00–14:00 | 12:00–14:00 |
Lunch moves back to 12:00, when the conference day stops showing, not to 10:30 when the sponsor slot ends. Collapse Gaps never creates a new overlap. Items that already overlap are accepted as they are and stay as they are.
Items with the same display start are always handled in the same order, so repeating the action gives the same result.
Dates are collapsed separately¶
Each date is its own scope. A gap between the last item of one day and the first item of the next day is a normal overnight gap and is never closed:
| Item | Display time | After collapsing Aug 6 |
|---|---|---|
| Closing session | Aug 5, 16:00–17:00 | unchanged |
| Registration | Aug 6, 09:00–10:00 | unchanged, still 09:00 |
The one exception is an item that is still showing when the next date begins. It counts as the starting point for that next date:
| Item | Before | After collapsing Aug 6 |
|---|---|---|
| Late-night party | Aug 5, 23:00–Aug 6, 01:00 | unchanged |
| Registration | Aug 6, 09:00–10:00 | Aug 6, 01:00–10:00 |
When you collapse only Aug 6, the party is used to work out where Aug 6 starts, but it is not itself changed, even if it has a gap of its own on Aug 5. An item that ends exactly at midnight is not showing on the new date and does not pull the next morning's first item back.
Room Offset¶
Room Offset moves the whole room earlier or later by a fixed amount, so it does not change the size of any gap. It also does not change which date an item belongs to: Collapse Gaps, like the other actions in Bulk Room Updates, always works with the item's saved display times — the ones you enter and see in the item editor — not with the shifted times shown on the sign and in the room viewer.
In a room with a 15-minute Before offset, an item saved as Aug 12, 00:05 is shown from Aug 11, 23:50, but it is still an Aug 12 item. It collapses like any other Aug 12 item: if an earlier Aug 12 item ends before it, or an Aug 11 item runs past midnight, Collapse Gaps pulls it back to that item's end (for example, an Aug 11 23:00–00:01 item followed by this one moves it to 00:01, shown as 23:46). Only when there is no such earlier item — say the previous item ends at Aug 11, 23:30 and this is the first Aug 12 item — does the gap the sign shows before it (20 minutes in that case) stay open; adjust that item's display start by hand if you want it to follow the previous item.
Disabled items¶
Disabled items are ignored completely. They do not hold their place in the schedule and are not moved. If you enable an item later, run Collapse Gaps again if you want it to fit.
Collapse Gaps runs once¶
Collapse Gaps is a single edit of the current schedule, not a setting. It does not keep the room gapless:
- A later API import or manual edit that creates a new gap does not collapse it. Run the action again when you want to.
- Every moved item's display start is overwritten, including a start you set by hand earlier. A start that did not need to move is left exactly as it was.
- On an API item, every moved display start becomes fixed, so later imports keep it instead of moving it back to the API start. If a later import changes the items before it, so that a gap reopens or an overlap appears next to that fixed start, the import reports it once (see Display time examples, examples 9–11). Nothing is collapsed again automatically.
- Only items whose display start actually moved are saved. Items that were only used to work out where a date starts are not touched.
To undo a collapse, edit the affected items or use Reset to Initial Render, which returns display times to render times for the selected rooms and dates.
Related¶
- Display time, render time and room offset — what a collapsed Display Start means for the item afterwards
- Bulk room schedule times — the other bulk changes to room schedules
- Manual and API events — why Reset to Render can be refused in a Manual event