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
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
Context
Found while answering the review of #18976 (defect-note, A2A, 2026-09-19). Measured on dev
28fab65852with #18976's stylesheets:test/playwright/component/apps/grid-cell-editing,#grid-cell-editingat 1400×900,lockedwritten throughNeo.worker.App.setConfigs:'start'neo-locked-start'end'neo-locked-endnullneo-locked-endThe cells are right in every case.
grid.Rowderives theirneo-locked-*class fromcolumn.lockedon every render.The Problem
A header button's
neo-locked-*class is set once, when the grid builds the button from its column. Onlyheader.Button#afterSetLockedchanges it later, and nothing writesbutton.lockedafter 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, sinceSortZonesetscolumn.locked.Two rules key on that class, both in
resources/scss/src/grid/header/Button.scss:z-index: 5for locked buttons;.neo-locked-start:last-childcloses the start region, and.neo-locked-end:first-childopens 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).#9483shipped the column half.The Architectural Reality
grid.column.Base#afterSetLocked→grid.Container#onColumnLockChangere-sorts the columns collection. Its mutate event runsonColumnsMutate→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'sapplyRegion, the placed button takes its column's lock:btn.locked = col.locked.Button#afterSetLockedswaps the class. It is a no-op for a button whose region did not change. Construction stays as it is.Acceptance Criteria
'start', to'end'and back tonull, the moved column's header button carries exactly its new region's class, and every other button keeps its own. Witnessed intest/playwright/unit/grid/LockedColumns.spec.mjs, beside its cross-region re-home test, red on dev.unit/grid,component/gridande2e/gridsuites stay green.Out of Scope
column.locked = newLocked, the same path as the config write.Related
#9483: the reactivelockedconfig, 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