LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtSep 19, 2026, 6:28 PM
updatedAtSep 19, 2026, 7:03 PM
githubUrlhttps://github.com/neomjs/neo/issues/18986
authorneo-opus-grace
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 19, 2026, 7:03 PM

A column's runtime lock change leaves its header button's locked class behind

neo-opus-grace
neo-opus-grace commented on Sep 19, 2026, 6:28 PM

Context

Found while answering the review of #18976 (defect-note, A2A, 2026-09-19). Measured on dev 28fab65852 with #18976's stylesheets: test/playwright/component/apps/grid-cell-editing, #grid-cell-editing at 1400×900, locked written through Neo.worker.App.setConfigs:

Runtime change The button lands Its class Expected
City → 'start' last in the start toolbar none neo-locked-start
City → 'end' first in the end toolbar none neo-locked-end
Note → null last in the center toolbar neo-locked-end none

The cells are right in every case. grid.Row derives their neo-locked-* class from column.locked on every render.

The Problem

A header button's neo-locked-* class is set once, when the grid builds the button from its column. Only header.Button#afterSetLocked changes it later, and nothing writes button.locked after construction. A column that changes region at runtime therefore keeps the class of the region it left. That covers a config write, and a header drag across regions, since SortZone sets column.locked.

Two rules key on that class, both in resources/scss/src/grid/header/Button.scss:

  • z-index: 5 for locked buttons;
  • the header seams #18976 adds. .neo-locked-start:last-child closes the start region, and .neo-locked-end:first-child opens the end region. After City → 'start', the start region's header has no divider at the seam while its cells have one.

The locked-columns design already asked for this sync. The header toolbar needs a forced update "to apply/remove .neo-locked-* classes from the headers" (see Retrieval Hint). #9483 shipped the column half.

The Architectural Reality

  • grid.column.Base#afterSetLocked → grid.Container#onColumnLockChange re-sorts the columns collection. Its mutate event runs onColumnsMutate → header.Wrapper#updateHeaders → applyColumnButtonOrder (src/grid/header/Wrapper.mjs), which puts each button in the toolbar of its column's region. Every region change passes through it, with the button and its column side by side.
  • header.Button#afterSetLocked (src/grid/header/Button.mjs) owns the classes.

The Fix

In applyColumnButtonOrder's applyRegion, the placed button takes its column's lock: btn.locked = col.locked. Button#afterSetLocked swaps the class. It is a no-op for a button whose region did not change. Construction stays as it is.

Acceptance Criteria

  • After runtime lock changes to 'start', to 'end' and back to null, the moved column's header button carries exactly its new region's class, and every other button keeps its own. Witnessed in test/playwright/unit/grid/LockedColumns.spec.mjs, beside its cross-region re-home test, red on dev.
  • The existing unit/grid, component/grid and e2e/grid suites stay green.

Out of Scope

  • A header-seam pixel arm. #18976's arms pin the seams as a function of the class; this ticket pins the class as a function of the runtime lock.
  • A drag arm. The drop ends in column.locked = newLocked, the same path as the config write.

Related

  • #18976 / #18969: the header seams that key on these classes.
  • #18978 / #18979: the same pipeline; an emptied region lost the moving button.
  • #9483: the reactive locked config, which shipped the column half.

Prescription verified before filing: with that line applied locally, all four runtime changes (City → 'start', → 'end', Note → null, City → null) leave every button with its region's class. Both header seams render, and there are no page errors.

Sweeps: at 2026-09-19T16:27Z, the latest 20 open issues, the last 30 A2A messages (no claim; @neo-fable confirms the stale class predates #18979), the Memory Core on the symptom, and my open assignments. No equivalent found.

Retrieval Hint: query_raw_memories("header button keeps locked class after the column is locked or unlocked at runtime"): the 2026-03-13/16 locked-columns design sessions.

Origin Session ID: bd178faf-66b1-4f57-8c53-8224751e92c2

tobiu referenced in commit f0a9e0b - "fix(grid): a column's runtime lock change carries its header button's locked class with it (#18986) (#18990) on Sep 19, 2026, 7:03 PM
tobiu closed this issue on Sep 19, 2026, 7:03 PM