Please comment to claim before starting; check current assignees and linked PRs.
Context
The Functional Components group of the Portal's examples shows its entries as tiles on the examples workbench (#21140; the group's rows are in the slate). Two of its five entries still carry what their authors needed while building them. A leaf of #21358.
The Problem
Opened on dev 0128668721 at 1440×900 and 390×844, and re-read in source on dev 289d1a2db3:
examples/functional/button/base: the example button sits 500 px below the top of an empty stage, with 1,500 px of empty page under it. MainContainer.mjs:191 gives it style: {marginBottom: '1500px', marginTop: '500px'}, a scroll test. A click shows nothing: line 188 sets handler: data => console.log('button click =>', data.component.id).
examples/functional/nestedComponents: the headings count 1, 2, 3, 2 in the order a reader meets them: "1 · Functional root" (Component.mjs:36), "2 · Classic container" (Component.mjs:38), "3 · Functional child through the classic container" (RelayContainer.mjs:24), "2 · Direct functional child" (Component.mjs:40). The intro (Component.mjs:35) says "Change the root values in Configuration", and the panel it means is labelled "Inspector" (examples/ConfigurationViewport.mjs:489).
The Architectural Reality
- Both entries are workbench pages: their
MainContainer extends Neo.examples.ConfigurationViewport (examples/ConfigurationViewport.mjs), which shows the component returned by createExampleComponent() beside an Inspector for its configs. The Inspector's label is shared by every workbench entry.
- The button is
Neo.functional.button.Base (src/functional/button/Base.mjs), which has badgeText, text and iconCls configs among others.
test/playwright/e2e/rendering/NestedComponentsNL.spec.mjs loads the nested-components folder. It asserts values and click counts (lines 43 to 54), not the headings or the intro.
- Neither entry has a record in
apps/portal/resources/data/examples.json. Their tiles come from the recipe and the tile list of #21332 and #21333.
- To look at an entry:
npm run server-start, then open /examples/functional/button/base/ and /examples/functional/nestedComponents/.
The Fix
- Button: remove the two margins. Give a click a result a visitor can see in the page, inside the example file: for instance the badge counts the clicks. No
console call remains in the folder.
- Nested components: number the four headings in the order they appear, or in a scheme that follows the nesting (for instance 1, 2, 2.1, 3). Say in the pull request which one and why. The intro names the Inspector.
- Both entries read well at 1440×900 and at 390×844, in the light and in the dark theme.
Acceptance Criteria
Out of Scope
- The tile recipe and the tile list (#21332, #21333).
examples/functional/templateComponent, which gets no tile, and the three functional entries that already read well (defineComponent, hostComponent, nestedTemplateComponent).
- A new functional example.
Avoided Traps
- A toast or a dialog to show the click. The entry shows a button. A config of the button itself changing is the smallest result a visitor can see, and it adds no second component to explain.
- Renaming the Inspector to match the intro. The label belongs to every workbench entry; the one sentence is what is wrong.
Related
Parent #21358 · #21140 · #21142 · #21332, #21333 (tiles).
unowned-rationale: Ready for a contributor; maintainers provide planning and review. If it is unclaimed on Fri 20 Nov, the epic's owner builds it.
Live latest-open + closed sweep: checked latest 8 open after the latest 20 two minutes earlier + open and closed search ("functional button example", nestedComponents, "nested components"; #7047 is the example's origin and excludes nothing) at 2026-11-18T15:37:43Z; 83 open, red band: this leaf folds under its owning epic #21358; no equivalent found. A2A in-flight sweep: latest 30 messages, all read-states, then the latest 5 again, newest 2026-11-18T15:35:45Z: no claim on these examples. MC sweep: "functional button example opens with the button far down the page, click only logs to the console; nested components example headings numbered out of order, text says Configuration", 5 results, no prior decision found. Own-assignment sweep: 6 open with the parent epic, none overlapping. Structure-map: N/A, two example folders, no Agent OS placement.
Decision Record impact: none.
Retrieval Hint: "functional button example test margins, click only logs; nested components headings 1 2 3 2, Configuration versus Inspector"
Mnemosyne (Claude Fable 5.2, Claude Code)
Please comment to claim before starting; check current assignees and linked PRs.
Context
The Functional Components group of the Portal's examples shows its entries as tiles on the examples workbench (#21140; the group's rows are in the slate). Two of its five entries still carry what their authors needed while building them. A leaf of #21358.
The Problem
Opened on
dev0128668721at 1440×900 and 390×844, and re-read in source ondev289d1a2db3:examples/functional/button/base: the example button sits 500 px below the top of an empty stage, with 1,500 px of empty page under it.MainContainer.mjs:191gives itstyle: {marginBottom: '1500px', marginTop: '500px'}, a scroll test. A click shows nothing: line 188 setshandler: data => console.log('button click =>', data.component.id).examples/functional/nestedComponents: the headings count 1, 2, 3, 2 in the order a reader meets them: "1 · Functional root" (Component.mjs:36), "2 · Classic container" (Component.mjs:38), "3 · Functional child through the classic container" (RelayContainer.mjs:24), "2 · Direct functional child" (Component.mjs:40). The intro (Component.mjs:35) says "Change the root values in Configuration", and the panel it means is labelled "Inspector" (examples/ConfigurationViewport.mjs:489).The Architectural Reality
MainContainerextendsNeo.examples.ConfigurationViewport(examples/ConfigurationViewport.mjs), which shows the component returned bycreateExampleComponent()beside an Inspector for its configs. The Inspector's label is shared by every workbench entry.Neo.functional.button.Base(src/functional/button/Base.mjs), which hasbadgeText,textandiconClsconfigs among others.test/playwright/e2e/rendering/NestedComponentsNL.spec.mjsloads the nested-components folder. It asserts values and click counts (lines 43 to 54), not the headings or the intro.apps/portal/resources/data/examples.json. Their tiles come from the recipe and the tile list of #21332 and #21333.npm run server-start, then open/examples/functional/button/base/and/examples/functional/nestedComponents/.The Fix
consolecall remains in the folder.Acceptance Criteria
examples/functional/button/base: the button is in view at rest at both sizes, a click changes something visible in the page, and the folder holds noconsole.call.examples/functional/nestedComponents: the headings number in a consistent order, and the intro names the Inspector.test/playwright/e2e/rendering/NestedComponentsNL.spec.mjspasses; a change to it is explained in the pull request.Out of Scope
examples/functional/templateComponent, which gets no tile, and the three functional entries that already read well (defineComponent,hostComponent,nestedTemplateComponent).Avoided Traps
Related
Parent #21358 · #21140 · #21142 · #21332, #21333 (tiles).
unowned-rationale: Ready for a contributor; maintainers provide planning and review. If it is unclaimed on Fri 20 Nov, the epic's owner builds it.
Live latest-open + closed sweep: checked latest 8 open after the latest 20 two minutes earlier + open and closed search ("functional button example", nestedComponents, "nested components"; #7047 is the example's origin and excludes nothing) at 2026-11-18T15:37:43Z; 83 open, red band: this leaf folds under its owning epic #21358; no equivalent found. A2A in-flight sweep: latest 30 messages, all read-states, then the latest 5 again, newest 2026-11-18T15:35:45Z: no claim on these examples. MC sweep: "functional button example opens with the button far down the page, click only logs to the console; nested components example headings numbered out of order, text says Configuration", 5 results, no prior decision found. Own-assignment sweep: 6 open with the parent epic, none overlapping. Structure-map: N/A, two example folders, no Agent OS placement.
Decision Record impact: none.
Retrieval Hint: "functional button example test margins, click only logs; nested components headings 1 2 3 2, Configuration versus Inspector"
Mnemosyne (Claude Fable 5.2, Claude Code)