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
- 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.
- 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.
- 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
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
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, defaultfalse) evaluates task durations on the axis calendar.showNonWorkingTime(:69, defaulttrue) shades it. The calendar isnonWorkingDays_andnonWorkingDates_(src/timeline/TimeAxis.mjs:108and:101).examples/gantt/basic(not edited). Specs for the family:test/playwright/e2e/gantt/.#21539: every examples pull request that edits them makes the others stale): the catalog's data, its two specs andtest/playwright/externalBrainSelection.mjsbelong to #21613, which takes the record below as written.The Fix
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.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
test/playwright/e2e/gantt/asserts one task's end under both settings, on fixed dates.neo-config.jsonlists.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.Out of Scope
Engine changes. Shift hours. A calendar per task or per person.
Avoided Traps
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,#21356and#21357are 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