LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 23, 2026, 3:29 AM
updatedAtNov 23, 2026, 9:00 AM
githubUrlhttps://github.com/neomjs/neo/issues/22064
authorneo-gemini-julia
commentsCount0
parentIssue20682
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 9:00 AM

Animate grid Progress column updates and clarify Home 48-line labels

Closed v14.0.0/archive-v14-0-0-chunk-7 enhancementdesignaigridportal
neo-gemini-julia
neo-gemini-julia commented on Nov 23, 2026, 3:29 AM

Context

Operator review of the live Portal Home front door (#/home) ahead of the Engine 14 cut (2026-11-23) surfaced two high-visibility UX/demo issues across the two LivePreview stages (Portal.view.home.parts.Planning and Portal.view.home.parts.Grid) and Neo.grid.column.Progress:

  1. Both Planning.mjs ('One Store · 48 Lines') and Grid.mjs ('Live Data · 48 Lines') state '48 Lines' while FeatureSection#activate switches the LivePreview from Source to Preview after 1s. Beside a 300 rows · ~190 updates/s grid footer and an 11-bar Gantt/Kanban view, '48 Lines' reads as a broken row count rather than 48 lines of JavaScript source code in the hidden Source tab.
  2. In the Home Data Grid demo, the Demand column ({type: 'progress', dataField: 'demand', text: 'Demand', width: 180}) remains completely static while Price, Change, and Trend tick, leaves an unused ~250 px empty right gutter on desktop viewports (860 px fixed column sum), and Neo.grid.column.Progress has no scroll/recycle-safe transition when a record's progress value updates in place.

The Problem

  1. Ambiguous '48 Lines' sub-headlines left over from #21351 / #21365: When #21365 dropped its side-by-side code-beside-preview layout (814692033c) and restored tabbed Source | Preview views, both sub-headlines kept '48 Lines' (test/playwright/unit/apps/portal/view/home/ContentBox.spec.mjs:141-142), hiding the referent (Source LOC) behind an inactive tab.
  2. Static Demand values & un-animated Neo.grid.column.Progress updates:
    • apps/portal/view/home/parts/Grid.mjs:68-71 seeds demand once at creation (L65) and omits demand from tick(record).
    • resources/css/src/grid/column/Progress.css applies neither flex: 1 / width: 100% (leaving <progress> pinned at its ~160 px UA intrinsic width inside flex or narrow columns) nor a width transition on ::-webkit-progress-value / ::-moz-progress-bar.
    • Per learn/guides/datahandling/PooledGridAnimation.md, an unconditional CSS transition: width on pooled grid cells would falsely animate row-pool recycling during scroll, sort, or filter when a physical cell component switches from one logical record to another.

The Architectural Reality

  • Design authority: explicit operator front-door direction on 2026-11-23 ("sub-titles could get changed to 48 lines of code ... and an ANIMATED progress grid column => BIG win. this is our front door after all") and learn/guides/datahandling/PooledGridAnimation.md ("row transitions must not assume that logical records own stable DOM rows").
  • Record-identity check in Neo.grid.column.Component (src/grid/column/Component.mjs:104-160): cellRenderer(data) already compares component[recordProperty] === record before writing component[recordProperty] = record. Forwarding data as the third argument to me.applyRecordConfigs(componentConfig, record, data) (L126) lets Neo.grid.column.Progress distinguish in-place same-record mutations (component && component[this.recordProperty] === record) from initial cell creation and row-pool recycling (component[this.recordProperty] !== record).
  • Neo.component.Progress VDOM root (src/component/Progress.mjs:42-46,116-127): getVdomRoot() returns this.vdom.cn[1] ({tag: 'progress'}), so cls entries on the Progress component mount directly onto <progress class="neo-progress ...">.
  • Blink/Gecko <progress> transition behavior: Empirically verified in Chromium that adding .neo-progress-animate and mutating progress.value in the same frame smoothly transitions ::-webkit-progress-value width, whereas removing .neo-progress-animate in the same frame as a recycled record's progress.value snaps immediately in 0 ms without cross-record wobble.

The Fix

  1. Same-record animated Neo.grid.column.Progress (src/grid/column/Component.mjs, src/grid/column/Progress.mjs, resources/css/src/grid/column/Progress.css):
    • Pass data to me.applyRecordConfigs(componentConfig, record, data) in Neo.grid.column.Component#cellRenderer.
    • Add useTransition: true config to Neo.grid.column.Progress and toggle 'neo-progress-animate' in applyRecordConfigs(config, record, data) exclusively when useTransition is truthy and data?.component?.[this.recordProperty] === record.
    • In resources/css/src/grid/column/Progress.css, add flex: 1; min-width: 0; on .neo-progress-wrapper and width: 100%; on progress[value] so progress bars fill flex and fixed-width grid cells cleanly, and add transition: width 220ms ease-out on ::-webkit-progress-value and ::-moz-progress-bar scoped to .neo-grid-body:not(.neo-is-scrolling) .neo-grid-cell .neo-progress-wrapper progress[value].neo-progress-animate (with @media (prefers-reduced-motion: reduce) { transition: none; }).
  2. Portal Home Planning & Grid front-door updates (apps/portal/view/home/parts/Planning.mjs, apps/portal/view/home/parts/Grid.mjs):
    • Change Planning#subHeadline to 'One Store · 48 Lines of Code' and Grid#subHeadline to 'Live Data · 48 Lines of Code' (verifying clean desktop & 390×844 typography in FeatureSection.css).
    • Update Grid#livePreviewCode (keeping exact 48 lines and <= 91 chars/line) so tick(record) walks demand ([8, 98]) on every batch alongside price, trend, and change, and set flex: 1, minWidth: 180 on the Demand column so the grid fills the desktop preview width without a dead right gutter; update Grid#paragraph and @summary to mention animated demand bars.
  3. Unit & E2E coverage (ContentBox.spec.mjs, HomeComponentPreviews.spec.mjs, test/playwright/unit/grid/column/Progress.spec.mjs):
    • Update ContentBox.spec.mjs for '... · 48 Lines of Code' and demand in tick(record).
    • Add unit spec test/playwright/unit/grid/column/Progress.spec.mjs verifying 'neo-progress-animate' is absent on initial render, added on same-record updates, omitted on pooled record reassignment, and suppressed when useTransition: false.
    • Extend HomeComponentPreviews.spec.mjs to assert Demand <progress> values change live under the feed and carry .neo-progress-animate with zero right-edge gap on desktop.

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback / Edge Case Docs Evidence
Neo.grid.column.Component#applyRecordConfigs(config, record, data) (src/grid/column/Component.mjs) #20682, learn/guides/datahandling/PooledGridAnimation.md Passes cellRenderer's data object ({component, record, ...}) as optional third parameter so subclasses can inspect pooled component state before component[recordProperty] is overwritten Existing 2-parameter (config, record) overrides remain 100% compatible Method JSDoc + @summary test/playwright/unit/grid/column/Progress.spec.mjs
Neo.grid.column.Progress#useTransition (src/grid/column/Progress.mjs) & resources/css/src/grid/column/Progress.css Operator direction (2026-11-23), PooledGridAnimation.md Defaults useTransition: true; adds 'neo-progress-animate' to Progress cls only on in-place updates of the same record, enabling a 220ms ease-out width transition while !neo-is-scrolling and stretching <progress> to 100% of the cell wrapper Initial mount, pooled row recycling (scroll, sort, filter), useTransition: false, .neo-is-scrolling, and prefers-reduced-motion: reduce snap immediately without transition; caller cls entries are preserved Class/config @summary JSDoc test/playwright/unit/grid/column/Progress.spec.mjs + HomeComponentPreviews.spec.mjs
Portal.view.home.parts.Planning#subHeadline & Portal.view.home.parts.Grid (subHeadline, livePreviewCode, paragraph) Operator direction (2026-11-23), #20682 Renders 'One Store · 48 Lines of Code' and 'Live Data · 48 Lines of Code'; updates demand on every feed tick and flexes Demand (flex: 1, minWidth: 180) within a 48-line (<= 91-char) snippet Below minWidth: 180 (e.g. 390×844 mobile), horizontal grid scrolling behaves identically Class/config JSDoc ContentBox.spec.mjs + HomeComponentPreviews.spec.mjs + 1440×900 & 390×844 frames

Decision Record impact

none — implements learn/guides/datahandling/PooledGridAnimation.md's record-identity animation contract on Neo.grid.column.Progress and clarifies front-door Home copy under #20682.

Acceptance Criteria

  • Portal.view.home.parts.Planning and Portal.view.home.parts.Grid render 'One Store · 48 Lines of Code' and 'Live Data · 48 Lines of Code', with both livePreviewCode snippets remaining <= 48 lines and <= 91 chars/line.
  • Neo.grid.column.Progress (useTransition: true by default) applies 'neo-progress-animate' and smooth width transitions on in-place same-record updates while snapping without animation on initial mount, pooled row recycling (scroll, sort, filter), useTransition: false, .neo-is-scrolling, and prefers-reduced-motion: reduce, and stretches <progress> to fill flex and fixed-width grid cells.
  • In the Home Data Grid preview, tick(record) updates demand alongside price, trend, and change, and the Demand column (flex: 1, minWidth: 180) fills the desktop preview pane cleanly.
  • Unit (ContentBox.spec.mjs, test/playwright/unit/grid/column/Progress.spec.mjs) and E2E (HomeComponentPreviews.spec.mjs) suites pass with 0 console/page errors, and the PR embeds 1440 × 900 and 390 × 844 before/after frames.

Out of Scope

  • Animating standalone non-grid Neo.component.Progress instances outside Neo.grid.column.Progress.
  • Changing the Gantt & Task Board livePreviewCode logic or Portal.view.home.parts.{Features,AiToolchain} cards (#22063).

Avoided Traps

  • Unconditional transition: width on .neo-grid-cell progress[value]: Violates PooledGridAnimation.md — sorting or filtering while stationary (!neo-is-scrolling) recycles pooled cell components onto different records and would animate unrelated rows' values into each other.
  • Targeting .neo-progress-wrapper.neo-progress-animate instead of progress.neo-progress-animate: Neo.component.Progress#getVdomRoot() returns this.vdom.cn[1] (<progress>), so component cls mutations land directly on <progress>.
  • Leaving <progress> at UA intrinsic width (~160 px): Without flex: 1; min-width: 0; on .neo-progress-wrapper and width: 100% on progress[value], flex: 1 columns leave empty trailing cell space while 150 px columns overflow.

Related

Ownership: self-assigned (@neo-gemini-julia) for immediate pre-cut delivery on operator front-door escalation (2026-11-23, no good first issue / help wanted due to imminent v14.0.0 cut lock).

Live latest-open + closed sweep: checked latest 20 open (#22063..#21586) + open and closed search (subHeadline OR "48 Lines" OR "progress column" OR "HomeComponentPreviews"; Out of Scope / Avoided Traps read on #21351, #21652, and #22063) at 2026-11-23T02:25Z; no equivalent or prior exclusion found. Backlog band: 47 open (orange band; folded as a sub-issue under open Home epic #20682, 11 existing subs). A2A in-flight claim sweep: latest 30 messages across all read-states (01:52Z–02:28Z); no overlapping claim on Home Planning/Grid previews or Neo.grid.column.Progress. MC sweep: "portal home subHeadline 48 lines grid progress column demand static", 5 results, no conflicting decision found. Own-assignment sweep: 2 open in neomjs/neo (#22057, #21847), none overlapping. Structure-map: N/A (existing engine src/grid/column/ + apps/portal/view/home/parts/ + mirroring unit spec test/playwright/unit/grid/column/Progress.spec.mjs).

Origin Session ID: 12bb6bb7-21ca-4b36-824f-66ea4320e1d8 Retrieval Hint: "Portal home 48 Lines of Code subHeadline Grid Demand Neo.grid.column.Progress useTransition neo-progress-animate pooled row recycling"