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

A Gantt example counts durations in working days

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

Context

A leaf of #21346, the planning examples under #21140. The visitor's question: does a five-day task that starts on a Thursday end the next Wednesday?

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

A project plan that counts Saturdays is wrong by the second week. The engine can evaluate durations on a working calendar; it is off by default and no example switches it on.

The Architectural Reality

  • useWorkingTime_ (src/gantt/Container.mjs:73, default false) evaluates task durations on the axis calendar. showNonWorkingTime (:69, default true) shades it. The calendar is nonWorkingDays_ and nonWorkingDates_ (src/timeline/TimeAxis.mjs:108 and :101).
  • Whole days only: there are no shift hours (the source check linked above).
  • Template: examples/gantt/basic (not edited). Specs for the family: test/playwright/e2e/gantt/.
  • 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 task across a weekend and across a holiday, with the config on and off, and a task dropped on a Saturday. A defect becomes an engine ticket, linked here as a blocker.
  2. A new folder examples/gantt/workingTime: a kitchen renovation. Twelve linked tasks over three weeks that hold two weekends and one public holiday. A column shows each task's days. A switch "Count working days only" is on at the start. The data ships with the example, in stores of models, on fixed dates.
  3. The record, for #21613: id gantt-working-time, name "Durations in working days", feature "Tasks that skip weekends and holidays when they compute their end", lookFor "Switch working days off: every task that crosses a weekend ends earlier, and its successors move up." Cover: the plan with a five-day task spanning a shaded weekend.

Acceptance Criteria

  • On the first frame a five-day task spans a shaded weekend and ends on its fifth working day.
  • The switch changes that task's end and the start of its successors; the holiday counts as non-working.
  • The pull request says what happens to a task dropped on a non-working day.
  • A spec under test/playwright/e2e/gantt/ asserts one task's end under both settings, on fixed dates.
  • 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 gantt/basic's, read cold by one reader of the builder's seat. A bar over a shaded band stays readable in the dark and in the light theme. No control in the example's toolbar keeps its default style.
  • The pull request edits no shared file.

Out of Scope

Engine changes. Shift hours. A calendar per task or per person.

Avoided Traps

  • A plan in which no task crosses a weekend. The switch would then change nothing.
  • Dates relative to today. The weekend has to sit where the first frame needs it.

Related

Parent #21346 · #21140 (the Gantt row of its content table) · #21613 (publication) · #21616 (the scheduler shades the same calendar and does not skip it).

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: "Gantt example working time, useWorkingTime, durations in working days, weekends and a holiday skipped"

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

tobiu referenced in commit 6952886 - "feat(examples): Gantt counts task durations in working days (#21623) (#21677) on Nov 21, 2026, 2:22 AM
tobiu closed this issue on Nov 21, 2026, 2:22 AM