LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 20, 2026, 7:59 PM
updatedAtNov 21, 2026, 12:06 AM
githubUrlhttps://github.com/neomjs/neo/issues/21639
authorneo-opus-ada
commentsCount4
parentIssue20874
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 21, 2026, 12:06 AM

A Gantt cascade moves its bars and their links with a transition

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementdesignai
neo-opus-ada
neo-opus-ada commented on Nov 20, 2026, 7:59 PM

Context

The operator asked for this on 20 Nov, relayed by Clio. When you move a task in a comparable Gantt, the other tasks move "with nice transitions. ours just jump. could be an optional config." Mnemosyne, as lead, offered the lane, and Clio, as #20874's design seat, set the look quoted in The Fix. It is for Engine 14. The Gantt cascade example held back in #21346 waits on it. Ada owns it through the weekend before the Sun 22 Nov 17:00Z examples lock, so it carries no contributor labels.

The Problem

On dev (8ed566ae7d), a moved or edited task's successors land on their cascaded dates in one update, and their links redraw in the same update. Nothing travels between the old place and the new one, so the reader cannot follow what the cascade did.

The Architectural Reality

  • A bar's place is an inline left and width in pixels, derived from its record's dates (src/timeline/Column.mjs:680-685).
  • moveTask() sets the record and then runs the cascade (src/gantt/Container.mjs:897-906). Cascade.runDependencyCascade (src/gantt/Cascade.mjs:113) returns "Changed successors with dependency, dates, changes and previous values": the list a transition needs, with its start geometry.
  • Nothing transitions a bar's place. The only transition in the family's source styles (gantt, timeline, scheduler) is a box-shadow (resources/css/src/gantt/Container.css:49).
  • DependencyLayer#renderRoutes (src/gantt/DependencyLayer.mjs:487) replaces the whole SVG fragment through vdom.html, so every path is a new node on every render. No CSS transition can carry a link: a bar on a CSS clock would glide while its links jump.
  • The body's rows are pooled, so a transition belongs to a record, never to a row. The grid precedent is Neo.grid.plugin.AnimateRows (#21570, #21583), which moves rows only under one class and ends the move on a scroll or the next store change.
  • The motion vocabulary (resources/css/src/Global.css:44-66) has four duration tiers and two easings, and every tier collapses to 0ms under prefers-reduced-motion. "Nothing on a product surface animates outside these without a recorded exception at its call site."
  • Design authority: n/a. This calls no existing behavior wrong; it adds a behavior behind a new config, and the look is #20874's design seat's.

The Fix

  1. A config, off by default: Neo.gantt.Container#animateCascade_, false.
  2. One clock, in the app worker. When moveTask() cascades with the config on, the chart steps the moved task and every changed successor from its previous geometry to its final one. At each step, DependencyLayer re-projects the routes of those tasks, so a link never leaves its bar. Bars and links read the same eased progress.
  3. Duration and easing come from the vocabulary: --motion-panel (280 ms) and --ease-out-soft, read from the chart's node. Under reduced motion the tier reads 0ms, so the cascade lands in one update, as today.
  4. Only the changed records move. A scroll, a zoom, a store load or the next move ends the steps at the final geometry, and a row entering the buffered window never moves.
  5. The examples switch it on, including the cascade example under #21346. Specs that read geometry right after a move keep the default.

The look, from #20874's design seat: only the records a cascade changed move, and the moved task settles the same way. Nothing animates on a scroll, a zoom, a store load or a row entering the buffered window. The links stay on their bars for the whole move. Reduced motion means no movement.

Implementation Notes

Read on dev at 4444747966 before building:

  • A hold precedes the first write. Neo.grid.Body#onStoreRecordChange (src/grid/Body.mjs:1613) repaints a changed record's row at once, and the cascade writes each successor with its own succ.set() (src/gantt/Cascade.mjs:334). So with the config on, moveTask() snapshots the displayed dates before record.set(updates) (src/gantt/Container.mjs:898), and every repaint inside the move reads the snapshot. The tween starts only after the cascade returns, for the root and the receipt's cascaded records; their previous values are its start.
  • One override, two readers. The bar descriptors (src/timeline/Column.mjs:943-965) and DependencyLayer#project (src/gantt/DependencyLayer.mjs:445-461) both read a task's date fields and map them through timeAxis.dateToOffset. A protected date hook in each, fed by the chart's in-flight dates per record key, keeps every link on its bar at every step.
  • Each step repaints only the rows of moving records (Neo.grid.Body#onStoreRowsChange already repaints a key set in one update) and re-projects the layer once.
  • Clock: the steps run on the app worker. --ease-out-soft is cubic-bezier(0.22, 1, 0.36, 1), solved in JavaScript; the duration is the chart node's computed --motion-panel, read when a move starts.
  • Ends: the next moveTask(), zoomTo(), a scroll, and the task store's load, filter and sort end the steps at the final geometry.
  • The service path: a service-owned task goes to schedule.moveTask() inside the same _movingTask guard (src/gantt/Container.mjs:863-866), so the same hold can wrap it. Its receipt's cascaded entries carry taskId and previous.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Neo.gantt.Container#animateCascade_ (Boolean, default false) the operator's ask (20 Nov) and #20874's design seat true: a cascade's changed bars and their links step from their previous to their final geometry on one worker clock, over the chart's --motion-panel with --ease-out-soft false, reduced motion at the edit, a 0ms tier read before the edit, or an interrupting scroll, zoom, load or move: one update at the final geometry. A tier change or a failed read that the worker learns after the edit lands the running move when that read answers the config's JSDoc and learn/guides/datahandling/Gantt.md's cascade section the e2e below

Acceptance Criteria

  • Default false: a cascade renders in one update, and the existing Gantt specs pass unchanged.
  • On: moving a task with successors renders at least three distinct intermediate left values for each changed bar, monotonic between the previous and the final value, and ending exactly at the final one. The e2e lengthens --motion-panel on the chart so that a loaded CI runner still samples them. Red on dev.
  • On: at every sampled step, each link of a moving task starts and ends within 1 px of the bar edges it attaches to.
  • A scroll, a zoom or a store load during the steps ends them at the final geometry. A row recycled into the buffered window shows its record at rest.
  • Reduced motion at the edit, or a 0ms tier read before it, gives one update with no intermediate geometry. A tier change or a failed read that the worker learns after the edit lands the running move when that read answers. Amended 20 Nov, on Euclid's Round 2 of #21648: the app worker cannot read CSS synchronously. --motion-panel is defined once for every theme (Global.css), so its one runtime switch is reduced motion, which reaches the worker as Neo.config.prefersReducedMotion at the edit. Any other tier change is known only when a read answers.
  • The Gantt examples switch it on. The pull request carries a frame strip of one cascade at 1440 × 900, dark; any clip lives outside the repo.

Out of Scope

  • The Scheduler and the Task Board, which have no cascade.
  • A drag in progress: the drag proxy follows the pointer.
  • The cascade's rules.

Avoided Traps

  • A CSS transition on a bar's left and width: a pooled row would slide in from another task's place, and the links would jump while the bars glide.
  • A CSS d transition on the links: the paths are new nodes on every render, and d interpolation is not portable.
  • A main-thread follower that redraws paths from the bars' live rectangles: it would copy buildPathD out of the worker.

Related

#20874 (parent) · #21346 (the cascade example) · #20878 (the Gantt chart) · #21407 and #21356 (the cascade's last work) · Neo.grid.plugin.AnimateRows (#21570, #21583)

Live latest-open + closed sweep: latest 20 open read (83 open, red band; filed under the owning epic #20874) + open and closed search ("gantt transition", "gantt animate", "gantt cascade", "bars transition gantt", "cascade animation"; #20878 and #21407 read) at 2026-11-20 18:58Z; no equivalent or prior exclusion found. A2A in-flight sweep: latest 30 messages, all read states, at 18:54Z and again at 19:02Z; the only messages on this scope are the lead's offer and Clio's source findings. MC sweep: "gantt bars jump when a dependency cascade moves the successors", 5 results, no prior decision. Own-assignment sweep: 20 open, none on the Gantt.

Origin Session ID: 08c08049-a7dc-4de3-9bc5-63be0485198e Retrieval Hint: "gantt cascade bars and links glide on one worker clock, animateCascade config, motion-panel token"

tobiu referenced in commit d58d6af - "feat(gantt): a cascade moves its bars and links on one clock (#21639) (#21648) on Nov 21, 2026, 12:06 AM
tobiu closed this issue on Nov 21, 2026, 12:06 AM