Skip to content

Slot picking in the calendar

Part of Appointment Polls.

Poll owners pick candidate time slots by dragging directly in the App Suite calendar week grid ("slot picking mode"), instead of assembling dates and times by hand. The owner's own appointments stay visible while picking, so free gaps are obvious. No separate free/busy lookup is involved.

Entering and leaving the mode

Picking starts automatically with editing rather than as a mode the user turns on. Opening the poll editor for a new or open poll automatically:

  1. brings the calendar app to the front (launching it if necessary),
  2. switches to a time-grid layout (work week) if the calendar is currently on the month, list, or year view. The user can still switch to day or week manually.

While the editor is open, it shows a drag hint and a live slot counter ("Drag in the calendar to add a time slot. 3 of 20 time slots picked"). The calendar itself gets no extra UI besides the slot overlays, so starting and finishing an edit never shifts the grid around.

Picking ends when the user leaves the poll editor (save or cancel), closes the side panel or switches it to another widget, or quits the calendar app. Closing the panel is not final, though: re-opening it while the poll editor is still shown resumes the mode and restores all slot overlays. Switching to another app (e.g. Mail) does not end it; it resumes when the user returns to the calendar. If opening the editor auto-switched to the calendar (or forced the work-week layout), leaving the editor takes the user back to the app (and layout) they came from, unless they have navigated elsewhere themselves in the meantime. All overlays are removed when picking ends; picked slots themselves are only persisted by saving the poll, exactly like slots added manually. Read-only (closed) polls never start picking.

Picking behavior

While the mode is active, in the day, work week, and week views:

  • Dragging on the grid adds a candidate slot instead of opening the appointment editor. The range snaps to the grid interval, like appointment creation does, and the dragged range is kept verbatim: what you draw is the slot you get, regardless of the poll's duration setting (which pre-fills the side panel's Add date form). The duration setting follows the slots: once any slot no longer matches a selected fixed duration (typically after dragging a range of a different length), the selector switches to "Flexible". While picking, a calendar time scale coarser than 15 minutes is temporarily refined to 15-minute cells (and restored afterwards), so the 15-minute slots polls support stay draggable; finer scales (5/10 minutes) are left alone. A click with slight movement adds one grid cell; a double-click adds a 60-minute slot, both matching appointment creation.
  • Dragging across day columns adds one slot per covered day, each with the dragged time range; offering the same time on several days is the common poll case. While dragging, the selection is previewed as one rectangle per day (the calendar's native midnight-spanning lasso is replaced during such drags) so the preview matches the slots that will be created. Slots spanning midnight cannot be picked by dragging (a drag ending exactly at midnight still counts as ending on the previous day).
  • Picked slots appear as overlays in the grid (dashed outline, distinct from real appointments) and stay in place when navigating between weeks. Slots of an existing poll are shown as overlays as soon as the mode starts.
  • Clicking an overlay removes the slot (keyboard: Tab to it, Enter or Space). Removing and fine-tuning is also possible in the side panel's slot list at any time; both stay in sync.
  • All-day cells and the month view don't add slots. On the month, list, and year views a hint in the side panel asks the user to switch to a day or week view.
  • The "New appointment" button and shortcut keep their normal behavior; only grid interactions are captured.

Rules

  • The per-poll slot limit (see Configuration, default 20) applies: further picks show a warning and are ignored; the counter in the side panel shows the current usage.
  • A pick identical to an existing slot (same start and end) is ignored. Overlapping slots are allowed; offering nested or overlapping alternatives is legitimate in a poll.
  • Slots in the past can be picked, consistent with the manual editor.
  • Slots are stored with the calendar's timezone. If the poll is edited in a different timezone, the slot list converts for display, as it already does for manually added slots (see Poll resource).
  • Available on desktop and tablet only; the plugin is not offered on smartphones.

Relation to the manual editor

The slot list in the side panel remains the place to review, fine-tune (exact start/end times), and remove slots, and its Add date flow remains available as a fallback. It is also the fully keyboard-accessible way to add slots, since dragging in the grid is a pointer interaction.

Reuse for appointment-type availability

The same picking mode marks the availability of a bookable appointment type. There a drag adds an availability window rather than a dated slot: one recurring on the dragged weekday when the type repeats weekly, one on the dragged date when it does not. Unlike poll slots, overlapping or touching windows are merged, since availability holds no overlapping windows on a weekday or a date, and no slot-count limit applies. The picking interaction itself is the same in both editors.