LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtOct 20, 2026, 12:25 PM
updatedAtOct 20, 2026, 2:04 PM
githubUrlhttps://github.com/neomjs/neo/issues/19889
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtOct 20, 2026, 2:04 PM

Animated sorting example: the Transition Duration field throws

neo-opus-ada
neo-opus-ada commented on Oct 20, 2026, 12:25 PM

Context

Found during team:engine release testing for 13.3. In examples/grid/animatedRowSorting, every change to the Transition Duration field throws:

TypeError: Cannot set properties of null (setting 'transitionDuration')

Typing 1000 throws five times, and the duration stays 500ms in both bodies. Observed 2026-10-20 ~10:22Z in headless branded Chrome against the dev server serving origin/dev 4844087a77. In the same run, header sorts and the Firstname filter work and the locked Id rows stay with their center rows.

13.3's notes feature this example ("Animated row sorting works again"), so its own control throwing ships with the cut unless it is fixed first.

The Problem

Viewport#onTransitionDurationFieldChange (examples/grid/animatedRowSorting/Viewport.mjs:84) reads grid.view.getPlugin('grid-animate-rows'). That stopped working on 2026-04-02, when #9627 made grid.view a Neo.grid.View. A View owns no plugins. AnimateRows belongs to each Neo.grid.Body: Body#afterSetAnimatedRowSorting adds it (src/grid/Body.mjs:391). So getPlugin() returns null.

This has been broken since #9627, and 13.2.0 ships the same handler. 13.3 adds a second body to repair: since #19777, the example locks its Id column, and the locked body is a clone of the center body with its own plugin. A fix that reaches only the center body would move the locked rows at the old duration, out of step with their center rows.

The Architectural Reality

  • Neo.grid.View#bodies (src/grid/View.mjs:218): "The active bodies in visual order (bodyStart, body, bodyEnd)".
  • AnimateRows#afterSetTransitionDuration (src/grid/plugin/AnimateRows.mjs) sets --neo-duration on its owner body. resources/scss/src/grid/plugin/AnimateRows.scss drives the rows' transform, opacity and background-color transitions from that variable.
  • Design authority: the field was added for this purpose in 73a4190925 (#6562, "add a transition duration numberfield"). A field labelled Transition Duration that throws and changes nothing contradicts its own handler.

The Fix

onTransitionDurationFieldChange sets the duration on the plugin of every body in grid.view.bodies. test/playwright/e2e/grid/AnimatedRowSorting.spec.mjs gains a case for the field.

Acceptance Criteria

  • AC-1: changing the field logs no error, and every body's --neo-duration reads the field's value.
  • AC-2: a sort after the change moves the rows of both bodies, locked and center, with the new duration.
  • AC-3: the new e2e case is red on base (the TypeError, 500ms) and green at head, and the spec's four existing cases stay green.

Out of Scope

  • A grid-level API for the animation duration. The example is its only runtime consumer, and a grid's body.pluginAnimateRowsConfig already sets it at construction.

Related

Live latest-open sweep: checked the latest 20 open issues at 2026-10-20T10:25Z, no equivalent found. A gh search issues for "transition duration animatedRowSorting" found nothing either. MC sweep: "animated row sorting example Transition Duration field TypeError … getPlugin grid-animate-rows grid.view", 6 results, no prior decision. The nearest is the 2026-10-16 #19777 record, which locked the Id column and does not cover the field. Own-assignment sweep: 8 open, none overlapping.

Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31 Retrieval Hint: "animatedRowSorting Transition Duration getPlugin null grid.view bodies"

tobiu referenced in commit 1e871dd - "fix(grid): the animated sorting example's Transition Duration field reaches every body (#19889) (#19890) on Oct 20, 2026, 2:04 PM
tobiu closed this issue on Oct 20, 2026, 2:04 PM