LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtNov 15, 2026, 6:00 PM
updatedAtNov 16, 2026, 5:08 PM
githubUrlhttps://github.com/neomjs/neo/issues/21037
authorneo-fable-mnemosyne
commentsCount0
parentIssue20874
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 16, 2026, 5:08 PM
milestonev14.0

No guide shows how to build a resource scheduler on your own records

Closed v14.0.0/archive-v14-0-0-chunk-2 documentationenhancementhelp wantedgood first issueai
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 15, 2026, 6:00 PM

Please comment to claim before starting; check current assignees and linked PRs.

Context

Engine 14 (cut on Nov 23, ROADMAP.md) adds a scheduler: Neo.scheduler.Container shows resources as grid rows and bookings as bars on a time axis. Epic #20874 asks for "a runnable example and a guide per family". The example exists, examples/scheduler/basic. The learning section has no page for the scheduler (git ls-tree -r origin/dev learn/, no file named for it, at b6e691cf).

The Problem

A developer, or a coding agent asked for "a room booking view", finds the class and one example. Nothing says which two stores a scheduler needs, how a booking finds its row, or how the time axis is set. Today that is learned from the 147 lines of examples/scheduler/basic/Viewport.mjs and from the JSDoc of each config.

The Architectural Reality

All paths are on dev at b6e691cf.

  • src/scheduler/Container.mjs: Neo.scheduler.Container, ntype: 'scheduler', extends Neo.grid.Container. The rows are the records of the grid's own store, the resources. The bars are the records of eventStore.
  • eventStore is a Neo.timeline.store.Events (src/timeline/store/Events.mjs) of Neo.timeline.model.Event records with the fields id, title, description, startDate, endDate, allDay, resourceId, cls and percentDone. resourceIdField (default 'id') names the row field that a booking's resourceId points at.
  • timeAxis is a Neo.timeline.TimeAxis (src/timeline/TimeAxis.mjs): start, end, tickUnit, tickStep, pxPerMinute, snapMinutes, timeZone, nonWorkingDays, nonWorkingDates.
  • Interaction: barDraggable (default true), editable (default true; it opens Neo.timeline.EventEditor on a double-click or on Enter), minimumDuration (default 15), barRenderer (a hook for a bar's content), resourceColumns, rowHeight (48).
  • The pattern for a guide page: learn/guides/datahandling/Grids.md (frontmatter with seoTitle and seoDescription, then one # title) and its line in learn/tree.json.
  • Design authority: n/a — calls no existing behavior wrong.

The Fix

One page, learn/guides/datahandling/Scheduler.md, and one line for it in learn/tree.json after the grid pages of guides/datahandling. Seven sections, in this order:

  1. What a scheduler is here: rows are records, bars are records, and an edit is a record change.
  2. A minimal scheduler: the smallest working config with a resource store, an eventStore and a timeAxis.
  3. The two stores and the link between them (resourceIdField, resourceId).
  4. The time axis: range, ticks, snapping, non-working days.
  5. Moving, resizing and editing a booking (barDraggable, editable, minimumDuration).
  6. A bar's content with barRenderer.
  7. Where to go next: the example, and the Gantt chart, which extends this class.

Between 150 and 300 lines. Every code block is taken from examples/scheduler/basic or checked against it, so that it runs.

Acceptance Criteria

  • AC-1: learn/guides/datahandling/Scheduler.md exists with seoTitle and seoDescription frontmatter and the seven sections above.
  • AC-2: every class, config and field the page names exists in src/scheduler or src/timeline on the pull request's base. The pull request lists them with file and line.
  • AC-3: the minimal scheduler of section 2 runs. The pull request says how it was run and shows a screenshot.
  • AC-4: learn/tree.json registers the page; npm run check-relative-links and CI's unit job pass.
  • AC-5: the page links the example and names no ticket number.

Out of Scope

The Gantt chart (a guide of its own), the board, server-backed loading, a second example, any change under src/.

Avoided Traps

  • A reference dump of every config. The page teaches the dozen a first scheduler needs and leaves the rest to the API docs.
  • Code blocks that were never run.
  • Hand-mapped arrays. Every view projects the records of a store.

Related

#20874 (parent; the family landed with #20877), #20498 (the standard for examples and the learning section).

unowned-rationale: Ready for a contributor; maintainers provide planning and review. The place under guides/datahandling is a default that the steward of #20874 may change.

Live latest-open + closed sweep: the latest 20 open and an open and closed search (scheduler guide, Gantt guide, timeline example) at 2026-11-15T16:59Z; 54 open, the red band, and no ticket or epic leaf owns this page: #20877 closed without one. A2A in-flight claim sweep: the newest rows to 16:59Z, no claim on this scope. MC sweep: "no guide for the scheduler or the Gantt chart", 5 results, no prior decision. Own-assignment sweep: none overlapping.

Origin Session ID: 3b1cda7a-2168-43fb-a65e-dc792af81989

Retrieval Hint: "scheduler guide learn datahandling eventStore resourceIdField TimeAxis curated issue"

🪢 Mnemosyne (Claude Fable 5.2, Claude Code)

mrdeyroy cross-referenced by PR #21128 on Nov 16, 2026, 11:37 AM