LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 20, 2026, 7:42 PM
updatedAtNov 21, 2026, 1:08 AM
githubUrlhttps://github.com/neomjs/neo/issues/21614
authorneo-fable-clio
commentsCount0
parentIssue21346
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 1:08 AM

A scheduler example re-plans bookings by drag, with snapping

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementaiportal
neo-fable-clio
neo-fable-clio commented on Nov 20, 2026, 7:42 PM

Context

A leaf of #21346, the planning examples under #21140. The visitor's question: can a dispatcher move a booking to another person or another time, stretch it, and have it land on our planning grid?

No contributor labels: the capability is read from the source (the check on #21346) and has not been driven in a browser. A maintainer builds it, and the drive is the first step.

The Problem

scheduler/basic lets a booking move and says so in one sentence. No example shows a resize, the snap grid or the minimum length, and none tells the visitor what a drag just did.

The Architectural Reality

  • barDraggable_ (src/scheduler/Container.mjs:133), resizableBars_ (:234), minimumDuration_ (:216: minutes, enforced during drag-resize, keyboard resize and moveEvent), snapMinutes_ (src/timeline/TimeAxis.mjs:134); the drag zone is src/scheduler/EventDragZone.mjs.
  • Template: examples/scheduler/basic (not edited). Specs for the family: test/playwright/e2e/scheduler/.
  • Shared files stay out of this pull request (#21539: every examples pull request that edits them makes the others stale): the catalog's data, its two specs and test/playwright/externalBrainSelection.mjs belong to #21613, which takes the record below as written.
  • Design authority: n/a — a new example; it calls no existing behaviour wrong.

The Fix

  1. Drive it first on a scratch copy of the base example. A defect becomes an engine ticket, linked here as a blocker.
  2. A new folder examples/scheduler/dragAndResize: a delivery depot's day. Ten vans, about 36 stops between 07:00 and 19:00, at the hour scale, snapping to 15 minutes. A control in the toolbar switches the grid between 5, 15, 30 and 60 minutes. A status line under the toolbar writes what the last gesture did ("Stop 14 → Van 3, 10:15 to 10:45"). The data ships with the example, in stores of models.
  3. The record, for #21613: id scheduler-drag-and-resize, name "Re-plan a day by drag", feature "Bookings that move between resources, stretch, and snap to a grid you choose", lookFor "Drag a stop onto another van, then pull its right edge: it lands on the 15-minute grid. Switch the grid to 30 minutes and try again." Cover: the day with a finished move in the status line.

Acceptance Criteria

  • The example opens on the depot's day with all ten vans; the status line says what to try.
  • A stop dropped on another van takes that van and the snapped time, and the status line names both. A resize grows in grid steps and never below the minimum.
  • The pull request says with which keys a focused booking moves and resizes.
  • A spec under test/playwright/e2e/scheduler/ asserts the snapped start after a move and the minimum after a resize.
  • No console error. 1440 × 900 and 390 × 844. Every theme the base example's neo-config.json lists.
  • Look: the first frame at both sizes, in the dark theme, is on the pull request beside scheduler/basic's, read cold by one reader of the builder's seat. A booking's rest, hover, dragging and resizing states are shown. No control in the example's toolbar keeps its default style.
  • The pull request edits no shared file.

Out of Scope

Engine changes. Creating and deleting bookings. The booking editor, zoom and working time: each has its own leaf under #21346.

Avoided Traps

  • A drag whose result nobody can read. The status line is the example's point.
  • A grid so fine that snapping is invisible. At the hour scale 15 minutes can be seen.

Related

Parent #21346 · #21140 (the Scheduler row of its content table) · #21613 (publication) · #20907 (the default drag shows the booking while it moves).

unowned-rationale: open to a maintainer now. It ships with Engine 14 if it has merged by Sun 22 Nov 12:00 CET, so that #21613 can publish it before the lock; otherwise the week after.

Live latest-open + closed sweep: latest 20 open read (62 open before this batch, red band: a leaf of the owning epic #21346), open and closed search ("scheduler OR gantt OR board example", titles read; #21355, #21356 and #21357 are the three examples this epic has delivered) at 2026-11-20T18:41Z: no equivalent and no prior exclusion. A2A in-flight sweep: the latest 12 messages, all read-states, back to 18:23Z: no claim on a planning example. MC sweep ("scheduler, Gantt and task board show two examples each; which new planning examples does the release need"): 6 results, turns of 7 to 20 Nov, no decision that excludes this example. Own-assignment sweep: 8 open; #21346 is the parent.

Decision Record impact: none.

Origin Session ID: d33dee4c-5fa8-4403-8864-4f146d8a50c9

Retrieval Hint: "scheduler example drag and resize, snapMinutes, minimumDuration, a status line that says what the drag did"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code

tobiu referenced in commit 677a0ab - "feat(examples): scheduler re-plans bookings by drag with snapping (#21614) (#21643) on Nov 21, 2026, 1:08 AM
tobiu closed this issue on Nov 21, 2026, 1:08 AM