Context
A leaf of #21346, the planning examples under #21140. The visitor's question: does the plan show when nobody works: weekends, public holidays, a company's closing days?
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 plan over more than a few days is read against the working week. The engine can shade non-working time in the timeline and its header, and no example switches it on.
The Architectural Reality
showNonWorkingTime_ (src/scheduler/Container.mjs:261) renders shading bands in the timeline column and its header. The calendar is nonWorkingDays_ (src/timeline/TimeAxis.mjs:108, default Sunday and Saturday) and nonWorkingDates_ (:101, 'YYYY-MM-DD' strings).
- The scheduler shades, it does not skip:
addWorkingMs has no caller outside src/gantt (the source check linked above).
- 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
- Drive it first on a scratch copy of the base example. A defect becomes an engine ticket, linked here as a blocker.
- A new folder
examples/scheduler/nonWorkingTime: a construction site's crews. Eight crews across three weeks that hold two weekends and one public holiday, at the week scale, with several bookings that run across a weekend. The toolbar holds a switch for the shading and a choice of working week (Monday to Friday, Monday to Saturday, Sunday to Thursday). A legend names the holiday. One line says: "Shading shows the days. It does not move work." The data ships with the example, in stores of models.
- The record, for #21613: id
scheduler-non-working-time, name "Weekends and holidays in the plan", feature "Non-working days and dates shaded across the timeline and its header", lookFor "Switch the working week to Sunday to Thursday: the shaded days move. Find the holiday in the second week." Cover: three weeks with their shaded bands.
Acceptance Criteria
Out of Scope
Engine changes. A booking's length that skips non-working time, and working hours within a day: both are engine gaps named on #21346.
Avoided Traps
- A plan in which no booking comes near a weekend. The bands then read as decoration.
- Promising that work moves. The example says in one line what shading is.
Related
Parent #21346 · #21140 (the Scheduler row of its content table) · #21613 (publication).
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 non-working time, showNonWorkingTime, nonWorkingDays, nonWorkingDates, weekends and holidays shaded"
📜 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 the plan show when nobody works: weekends, public holidays, a company's closing days?
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 plan over more than a few days is read against the working week. The engine can shade non-working time in the timeline and its header, and no example switches it on.
The Architectural Reality
showNonWorkingTime_(src/scheduler/Container.mjs:261) renders shading bands in the timeline column and its header. The calendar isnonWorkingDays_(src/timeline/TimeAxis.mjs:108, default Sunday and Saturday) andnonWorkingDates_(:101,'YYYY-MM-DD'strings).addWorkingMshas no caller outsidesrc/gantt(the source check linked above).examples/scheduler/basic(not edited). Specs for the family:test/playwright/e2e/scheduler/.#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/scheduler/nonWorkingTime: a construction site's crews. Eight crews across three weeks that hold two weekends and one public holiday, at the week scale, with several bookings that run across a weekend. The toolbar holds a switch for the shading and a choice of working week (Monday to Friday, Monday to Saturday, Sunday to Thursday). A legend names the holiday. One line says: "Shading shows the days. It does not move work." The data ships with the example, in stores of models.scheduler-non-working-time, name "Weekends and holidays in the plan",feature"Non-working days and dates shaded across the timeline and its header",lookFor"Switch the working week to Sunday to Thursday: the shaded days move. Find the holiday in the second week." Cover: three weeks with their shaded bands.Acceptance Criteria
test/playwright/e2e/scheduler/asserts the shaded days for two settings.neo-config.jsonlists.scheduler/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, with one frame each. No control in the example's toolbar keeps its default style.Out of Scope
Engine changes. A booking's length that skips non-working time, and working hours within a day: both are engine gaps named on #21346.
Avoided Traps
Related
Parent #21346 · #21140 (the Scheduler row of its content table) · #21613 (publication).
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: "scheduler example non-working time, showNonWorkingTime, nonWorkingDays, nonWorkingDates, weekends and holidays shaded"
📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code