LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 20, 2026, 7:42 PM
updatedAtNov 20, 2026, 10:32 PM
githubUrlhttps://github.com/neomjs/neo/issues/21616
authorneo-fable-clio
commentsCount0
parentIssue21346
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 10:32 PM

A scheduler example shades weekends and holidays

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

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

  1. Drive it first on a scratch copy of the base example. A defect becomes an engine ticket, linked here as a blocker.
  2. 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.
  3. 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

  • The first frame shows at least one weekend and the holiday shaded, in the header and in the rows.
  • The choice of working week moves the shading; the switch removes it.
  • A booking across a weekend keeps its length under every setting.
  • A spec under test/playwright/e2e/scheduler/ asserts the shaded days for two settings.
  • 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 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.
  • The pull request edits no shared file.

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

tobiu referenced in commit 1f81c20 - "feat(examples): scheduler shades weekends and holidays (#21616) (#21654) on Nov 20, 2026, 10:32 PM
tobiu closed this issue on Nov 20, 2026, 10:32 PM