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

No guide shows how to build a Gantt chart with linked tasks

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 Gantt chart: Neo.gantt.Container shows a task tree with bars, dependency arrows and a cascade that moves dependent tasks after an edit. Epic #20874 asks for "a runnable example and a guide per family". The example exists, examples/gantt/basic. The learning section has no page for the Gantt chart (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 project plan", finds the class and one example. Nothing says how tasks form a tree, how a dependency is a record, which four link types exist, or what the cascade and working time change. Today that is learned from the 135 lines of examples/gantt/basic/Viewport.mjs and from one-line JSDoc per config.

The Architectural Reality

All paths are on dev at b6e691cf.

  • src/gantt/Container.mjs: Neo.gantt.Container, ntype: 'gantt', extends Neo.scheduler.Container and inherits its time axis, bar and editing configs.
  • Tasks: store is a Neo.gantt.TaskStore (src/gantt/TaskStore.mjs, a Neo.data.TreeStore) of Neo.gantt.TaskModel records (src/gantt/TaskModel.mjs, a Neo.data.TreeModel). Fields: id, title, description, startDate, endDate, allDay, resourceId, plus collapsed, duration, durationUnit, milestone, percentDone, and the tree fields such as parentId and isLeaf.
  • Dependencies: dependencyStore is a Neo.gantt.DependencyStore of Neo.gantt.DependencyModel records with id, fromId, toId, type, lag, lagUnit. src/gantt/Cascade.mjs handles the types FS, SS, FF and SF.
  • Configs of its own: cascadeDependencies (default true, recompute dependent tasks after an edit), dependencyCreation (default false; a Boolean or a function that enables or filters link gestures), useWorkingTime (default false, durations use the axis calendar), taskColumns (the locked tree columns), schedule (an optional service the application lends the chart).
  • The example passes both stores inline: store: {module: TaskStore, data: tasks} and dependencyStore: {module: DependencyStore, data: dependencies}, and it keeps its plan across a reload.
  • 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/Gantt.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 Gantt chart is here: a task tree and a dependency list, both as records.
  2. A minimal chart: three tasks under one parent and one dependency.
  3. The task record: dates, duration, milestone, progress, and how parentId builds the tree.
  4. The dependency record: fromId, toId, the four types, lag and lagUnit, with one picture or table that shows what each type constrains.
  5. The cascade: what moves when a task moves, and what cascadeDependencies: false changes.
  6. Working time: useWorkingTime with the axis's non-working days.
  7. Creating links by gesture with dependencyCreation, and where to go next.

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

Acceptance Criteria

  • AC-1: learn/guides/datahandling/Gantt.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/gantt, src/scheduler or src/timeline on the pull request's base. The pull request lists them with file and line.
  • AC-3: the minimal chart of section 2 runs, and the statement of section 5 is observed: the pull request shows a screenshot before and after one task move, with and without the cascade.
  • 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 schedule service beyond one sentence that it exists; a critical path; server-backed loading; the scheduler's own guide; any change under src/.

Avoided Traps

  • Describing the cascade from the code alone. Section 5 states what was observed in the running example.
  • A reference dump of every config.
  • Hand-mapped arrays. Tasks and dependencies are records of two stores.

Related

#20874 (parent; the family landed with #20878), #20498 (the standard for examples and the learning section). The scheduler's guide is a sibling issue filed the same hour; this page may link it once it exists.

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: #20878 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: "Gantt guide learn datahandling TaskStore DependencyStore cascade FS SS FF SF curated issue"

🪢 Mnemosyne (Claude Fable 5.2, Claude Code)

mrdeyroy cross-referenced by PR #21045 on Nov 15, 2026, 8:09 PM
mrdeyroy referenced in commit 34c299e - "docs(gantt): add guide for building a Gantt chart with linked tasks (#21038)" on Nov 16, 2026, 6:39 AM
tobiu referenced in commit 55d0cc3 - "docs(gantt): add guide for building a Gantt chart with linked tasks (#21038) (#21045) on Nov 16, 2026, 8:44 AM
tobiu closed this issue on Nov 16, 2026, 8:44 AM