LearnNewsExamplesConnect
Frontmatter
assignees[]
createdAtNov 16, 2026, 3:26 PM
updatedAtNov 17, 2026, 8:22 PM
githubUrlhttps://github.com/neomjs/neo/issues/21143
authorneo-fable-clio
commentsCount5
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 21144 A workbench example can be shared and copied: URL state, config as code
closedAtNov 17, 2026, 8:22 PM
milestonev14.0

The examples' config viewport becomes a workbench: stage, inspector, reset

Closed v14.0.0/archive-v14-0-0-chunk-3 enhancementdesignai
neo-fable-clio
neo-fable-clio commented on Nov 16, 2026, 3:26 PM

Context

The operator, Mon 16 Nov 2026 (relayed): some component examples look like a storybook; that part is to be upgraded significantly, into something like a storybook for Neo. On 10 Nov he had said of the config panel that it "could get enhanced a LOT" (Discussion #20744, which has had no comment since). A leaf of #21140, for the cut on Mon 23 Nov.

The Problem

examples/ConfigurationViewport.mjs (233 lines on dev) carries 66 of the 139 runnable examples: every button, field, list, menu, tab and layout example. Each one is a small component at the top left of a white page beside a hand-written config panel. That every config is live is the engine's own kitchen-sink strength. As a page it reads as empty: in the inventory these 66 frames are the white ones, and two readers without session context called their tiles toys.

The Architectural Reality

  • examples/ConfigurationViewport.mjs: 66 examples extend it and override createConfigurationComponents() (Discussion #20744's census; 75 files under examples/ and apps/ name the class on dev).
  • The class has no reset of the whole example and no notion of a stage; the component sits where the layout puts it. It carries two theme buttons, one in the panel's header and one at its foot, which cycle three hard-coded themes. (Corrected 16 Nov: this line said the class has no theme switch of its own; the released frames and ConfigurationViewport.mjs at 13.4.0, lines 159 to 184, show both.)
  • Design authority: the operator's words above; Discussion #20744 (ungraduated, an input).

The Fix

  1. The look first, on this ticket (the design seat, by Wed 18 Nov): three examples (a button, a form field, a list) as they render today beside the workbench, at 1440×900 and 390×844, in both themes. The operator reads the pair before anything is merged. (Amended 16 Nov: PR #21154 from @mrdeyroy arrived two hours after this ticket, so its rendered candidate is the second half of the pair in place of a sketch; the design read and the operator's read gate the merge, not the build.)
  2. Build it in the one class. A stage that shows the component at a readable size on the theme's surface. The panel as an inspector, its configs grouped. A reset to the example's initial configs. A theme switch, with the Portal's theme as default. The 66 examples change without a change of their own.

Contract Ledger

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Neo.examples.ConfigurationViewport this ticket; the operator's direction of 16 Nov stage, inspector, reset, theme an example that overrides the layout keeps working, listed in the pull request the class JSDoc e2e on one example per kind
createConfigurationComponents() the 66 examples unchanged signature and return none unchanged the examples load unchanged

Acceptance Criteria

  • The pair is on this ticket and the operator's read is recorded.
  • All 66 examples render through the new viewport; any that needed a change of its own is listed with the reason.
  • Reset restores every config of the example to its initial value.
  • The theme switch works in every example whose neo-config.json lists both themes.
  • At 390×844 the component stays in view and the inspector opens below or over it.
  • An e2e arm covers one button, one field and one list example: render, change a config, reset.
  • The stage has one stable rect, so a cover recipe can capture any of the 66 with one rule.
  • Look: the pull request shows three examples as released and as changed, and two readers without session context grade the unlabelled pair.

Out of Scope

State in the URL, the config as code, an events view, a size switch (the next leaf); the examples' own content (the slate); an integration of Storybook (#5010).

Avoided Traps

  • Restyling 66 files. The class is the lever.
  • A new panel API. createConfigurationComponents() stays; D#20744 lists richer options for later.
  • A dark page with the same tiny component. The stage's size is the point.

Related

Parent #21140 · Discussion #20744 · #7055 and #6476 (earlier changes to this class) · the covers leaves, which capture from the stage.

unowned-rationale: the look is the design seat's, by Wed 18 Nov. The build is a maintainer leaf: one engine class under 66 examples, pull request due Fri 20 Nov. No curated label: it sits on the release gate.

Live latest-open + closed sweep: with the sweep of #21140 (latest 20 open, 61 open, red band) and searches across all states ("ConfigurationViewport", "examples workbench configuration viewport", "storybook") at 2026-11-16T14:38Z: no equivalent; #7055 and #6476 are closed changes to the class, #5010 and #5132 to #5134 the closed Storybook integration. A2A in-flight sweep: latest 30 messages, all read-states, at 14:33Z: no claim. MC sweep: the query of #21140, no prior decision beyond Discussion #20744. Own-assignment sweep: 7 open; #21140 is the parent. Structure-map: N/A, no new .mjs placement.

Decision Record impact: none.

Origin Session ID: d78141ab-63aa-4916-a1b6-c5a8a05701a1

Retrieval Hint: "configuration viewport workbench, storybook for neo, examples config panel stage inspector reset"

📜 Clio · @neo-fable-clio · Claude Fable 5.2 · Claude Code

mrdeyroy cross-referenced by PR #21154 on Nov 16, 2026, 5:31 PM
mrdeyroy referenced in commit 4f38aff - "fix(examples): restore inspector controls on reset, default to portal theme, and bound stage (#21143)" on Nov 16, 2026, 8:08 PM
mrdeyroy referenced in commit e41a678 - "fix(examples): honor loaded themes, mount async controls, and group inspector (#21143)" on Nov 17, 2026, 9:30 AM
mrdeyroy referenced in commit ff65cd3 - "fix(examples): keep stage header outside example container (#21143) on Nov 17, 2026, 12:06 PM
mrdeyroy referenced in commit 9942c4f - "fix(examples): preserve stage sizing with inner example container (#21143) on Nov 17, 2026, 12:07 PM
mrdeyroy referenced in commit 0a0bded - "test(examples): cover example-only container and custom config (#21143) on Nov 17, 2026, 12:07 PM
mrdeyroy referenced in commit caa6862 - "fix(examples): limit workbench reset to inspector controls and name the stage (#21143) on Nov 17, 2026, 12:50 PM
mrdeyroy referenced in commit 55df7c8 - "refactor(examples): remove unused logInstance override from splitter (#21143) on Nov 17, 2026, 12:51 PM
mrdeyroy referenced in commit a0fa0ca - "test(examples): cover stage title and reset scope (#21143) on Nov 17, 2026, 12:51 PM
mrdeyroy referenced in commit 6300845 - "test(examples): press Reset on grid/valueBanding in e2e (#21143) on Nov 17, 2026, 12:51 PM
mrdeyroy referenced in commit 9f926d6 - "chore(examples): replace ConfigurationViewport.mjs, step 1 of 2 (#21143) on Nov 17, 2026, 12:52 PM
mrdeyroy referenced in commit 2671f77 - "fix(examples): limit workbench reset to inspector controls and name the stage (#21143)" on Nov 17, 2026, 12:52 PM
mrdeyroy referenced in commit 892746f - "chore(examples): replace splitter MainContainer.mjs, step 1 of 2 (#21143)" on Nov 17, 2026, 12:52 PM
mrdeyroy referenced in commit 1a5177f - "refactor(examples): remove unused logInstance override from splitter (#21143)" on Nov 17, 2026, 12:53 PM
mrdeyroy referenced in commit 4df6805 - "chore(examples): replace ConfigurationViewport.spec.mjs, step 1 of 2 (#21143)" on Nov 17, 2026, 12:53 PM
mrdeyroy referenced in commit b09f77c - "test(examples): cover stage title and reset scope (#21143)" on Nov 17, 2026, 12:53 PM
mrdeyroy referenced in commit bbcfd61 - "chore(examples): replace WorkbenchReset.spec.mjs, step 1 of 2 (#21143)" on Nov 17, 2026, 12:53 PM
mrdeyroy referenced in commit fbd481a - "test(examples): press Reset on grid/valueBanding in e2e (#21143)" on Nov 17, 2026, 12:54 PM
mrdeyroy referenced in commit e949ea0 - "fix(examples): limit workbench reset to inspector controls and name the stage (#21143) on Nov 17, 2026, 2:06 PM