LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 22, 2026, 12:31 PM
updatedAtNov 23, 2026, 12:23 AM
githubUrlhttps://github.com/neomjs/neo/issues/21879
authorneo-fable-clio
commentsCount0
parentIssue21358
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 12:23 AM

One state, every surface: a form, a dialog and a second window

Closed v14.0.0/archive-v14-0-0-chunk-6 enhancementaiportal
neo-fable-clio
neo-fable-clio commented on Nov 22, 2026, 12:31 PM

Context

State & Data shows one card on dev 78013b10fc: "State Provider Example" (examples/stateProvider/advanced, record state-provider). #21140's target renews it as "One state, every surface", and the band's epic #21358 counts it among its nine renewals. The folder's only change since the slate is the theme switcher of 21 Nov. No leaf was filed.

The Problem

The band's read (its rows): "Fields named data.button1Text in the top third of a dark page; two of its five buttons only log to the console. The bindings work." Eight more stateProvider/ folders each show one binding on an empty page. A visitor who asks "where does state live, and how does it reach a component, a dialog and another window?" gets an API sample, not an answer.

The Architectural Reality

  • src/state/Provider.mjs: hierarchical state providers; a nested provider can override a value of its parent.
  • examples/stateProvider/advanced: the folder to rebuild in place. examples/stateProvider/multiWindow already binds one provider across two windows (its record multi-window-state-provider has no cover).
  • Providers stay at view roots, and a data view binds a store of records, not a hand-mapped array.

The Fix

Rebuild the example as a profile or settings screen with real content. A header follows a form as the visitor types. A nested provider overrides one value for one panel, and the page says so. The same record opens in a dialog and in a second window, and an edit in any of them shows in all. One line on the first frame says what to try. The record keeps its place in State & Data and gets alsoIn: ['multi-window'].

Acceptance Criteria

  • An edit in the form shows in the header, in the open dialog and in the second window, without a reload.
  • One panel shows a value overridden by a nested provider, named on the page.
  • Every button's effect is visible on the page; nothing logs to the console as its only result.
  • No console error, at 1440×900 and at 390×844 (where the second window is offered only if a popup can open), in every theme the example offers.
  • The record's name and caption are in the visitor's words, and its cover is retaken from the new first frame (through neomjs/pages).
  • The look: the first frame and the frame with dialog and second window open, Neo Dark, on the pull request, read cold by the reviewer's seat.

Publication (added 22 Nov, the same for every leaf of this wave). The criterion above that names this example's record, card, tile or cover in the catalog is met in one of two ways. If #21856 (one catalog file per group) has merged before this leaf's pull request, the pull request carries the record in its group's file. If not, the pull request merges without it: the record stands as text in the pull request body, the cover is merged on neomjs/pages, and the catalog entry lands with #21934, the wave's publication pass. Either way this leaf closes with its example.

Out of Scope

The other eight stateProvider/ folders (they stay as folders without a record). A change to src/state/Provider.mjs.

Avoided Traps

  • Nine cards for one concept. The target retires seven samples from the catalog for a reason: one screen that answers the question beats eight that each show a binding.

Related

Parent #21358 · #21140 (the target: its content table names this row) · #21142 (the slate) · #21856 (one catalog file per group: the record rides this pull request once it has merged).

Live latest-open + closed sweep: checked latest 20 open (47 open, orange band: no open leaf owns this row, #21358 is its owning epic) + open and closed search ("state provider every surface") at 2026-11-22T11:27Z; #21707 is closed and added the theme switcher, not this renewal. A2A in-flight sweep: latest 30 messages, all read-states, at 11:28Z: no claim on this row. MC sweep: "examples groups missing demonstrations, platform proofs without a leaf", 6 results: the target of 18 Nov and the lanes' rows, no decision against it. Own-assignment sweep: 6 open; #21140 is the parent outcome and names this row, none owns its build.

unowned-rationale: open to any maintainer for the Engine 14 cut of Mon 23 Nov; no contributor labels, because the cut is a day away and the first step is a drive on dev.

Decision Record impact: none.

Origin Session ID: c227dcb5-c90c-4730-964e-540d812bcfd0

Retrieval Hint: "one state every surface example, stateProvider/advanced renewal, State & Data group"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code · session c227dcb5-c90c-4730-964e-540d812bcfd0