LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-maryam
createdAtNov 22, 2026, 11:05 PM
updatedAtNov 22, 2026, 11:28 PM
githubUrlhttps://github.com/neomjs/neo/issues/22030
authorneo-gemini-maryam
commentsCount0
parentIssue21367
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 22, 2026, 11:28 PM

Pair Button and hosted-button tiles and name Toast and Popover for visitors

Closed v14.0.0/archive-v14-0-0-chunk-7 enhancementdesignaiportal
neo-gemini-maryam
neo-gemini-maryam commented on Nov 22, 2026, 11:05 PM

Context

Ahead of the Mon 23 Nov 07:00 UTC Engine 14 examples lock (#21140, #21033), two small front-door gaps remain across the split catalog (apps/portal/resources/data/examples/*.json at origin/dev@40e63b1f94):

  1. The two tiles held out of neomjs/pages#174 / #21940 for contrast repairs (#21946) have not yet rejoined #21942:
    • #21946 (closedAt: 2026-11-22T14:50:45Z) fixed Neo Light's black-on-black .neo-button-badge (resources/css/theme-neo-light/button/Base.css) and removed the hard-coded theme: 'neo-theme-neo-light' override in examples/functional/hostComponent/Component.mjs, specifying in AC-4: "No cover in the pull request. Once it merges, the two tiles rejoin the #21942 backfill."
    • On neomjs/pages@main (8fda4953bc..pages#194), neither devmode/tiles/button-base-14-light.jpg nor devmode/tiles/functional-hostComponent-14-light.jpg exists yet, functional-hostComponent-14.jpg still predates #21946, and button-base + functional-host-component are the only 2 published component tiles without hasLightCover: true out of all 59 published kind: 'component' records (node scan over apps/portal/resources/data/examples/*.json at origin/dev@40e63b1f94, excluding _-prefixed files; positive controls: button-split and functional-define-component carry hasLightCover: true).
  2. Two Dialogs & Overlays cards still expose raw dotted class identifiers as visitor titles:
    • Across all 166 catalog records in apps/portal/resources/data/examples/*.json at origin/dev@40e63b1f94, toast ("name": "component.Toast") and popover ("name": "plugin.Popover") in dialogs.json are the only 2 published records matching /^[a-z][a-zA-Z0-9]*\.[A-Z]/ (positive control: dialogs.json siblings dialog-drag-drop → "Contact Editor Dialogs" and tooltip → "Tooltips").

The Problem

  • Switching the Portal to Light mode leaves Button on Buttons, Menus & Toolbars and Hosting a class component on Functional Components on dark-stage tiles (57/59 component tiles switch, 2/59 do not), while functional-hostComponent-14.jpg still shows the pre-#21946 hard-coded button styling.
  • Visiting Dialogs & Overlays shows "Contact Editor Dialogs" and "Tooltips" alongside internal namespace paths "component.Toast" and "plugin.Popover", violating the ROADMAP.md v14 gate ("finds each component family's examples as an overview in which every example names what it proves") and #21333's no-class-name-title rule.

The Architectural Reality

  • Design authority: ROADMAP.md ("every example names what it proves"), #21140 / #21333 (visitor-facing titles over class names), and #21946 AC-4 ("Once it merges, the two tiles rejoin the #21942 backfill").
  • buildScripts/docs/captureExamples.mjs (--tile examples/button/base and --tile examples/functional/hostComponent) natively captures aligned neo-theme-dark and neo-theme-neo-light crops (devmode/tiles/button-base-14{,-light}.jpg and devmode/tiles/functional-hostComponent-14{,-light}.jpg) with 0 page errors.
  • Portal.model.Example switches tile URLs to -light when hasLightCover: true (apps/portal/view/examples/List.mjs#getBackgroundImageStyle).
  • Prescription checked: apps/portal/resources/data/examples/{buttons,functional,dialogs}.json + neomjs/pages resources_pub/website/examples/devmode/tiles/ — owns the concern.

The Fix

  1. Capture examples/button/base and examples/functional/hostComponent via buildScripts/docs/captureExamples.mjs --tile ... on origin/dev@40e63b1f94 and open a companion neomjs/pages PR publishing button-base-14.jpg, button-base-14-light.jpg, functional-hostComponent-14.jpg, and functional-hostComponent-14-light.jpg (merging neomjs/pages before neomjs/neo).
  2. Add "hasLightCover": true to button-base (apps/portal/resources/data/examples/buttons.json) and functional-host-component (apps/portal/resources/data/examples/functional.json), bringing published kind: 'component' tiles to 59/59 paired.
  3. Rename toast from "component.Toast" to "Toast Notifications" and popover from "plugin.Popover" to "Popover" in apps/portal/resources/data/examples/dialogs.json (preserving component: "Toast" and component: "Popover").
  4. Add unit assertions in test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs pinning hasLightCover: true on button-base and functional-host-component and guarding published catalog name fields against raw package.Class strings (/^[a-z][a-zA-Z0-9]*\.[A-Z]/).

Decision Record impact: none.

Acceptance Criteria

  • neomjs/pages publishes devmode/tiles/button-base-14{,-light}.jpg and devmode/tiles/functional-hostComponent-14{,-light}.jpg captured from post-#21946 dev, with readable badge and button labels in both dark and light crops.
  • button-base (buttons.json) and functional-host-component (functional.json) carry "hasLightCover": true, and toast / popover (dialogs.json) carry visitor-facing name values "Toast Notifications" and "Popover".
  • test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs pins hasLightCover: true on button-base and functional-host-component and asserts zero published catalog records use raw package.Class name strings.
  • Visual evidence on Buttons, Menus & Toolbars, Functional Components, and Dialogs & Overlays at 1440×900 and 390×844 (dark and light) passes with 0 console errors.

Out of Scope

  • Light-cover recipe captures for toast and popover (manifest.recipes entries remain single-pass in captureExamples.mjs; recipe pairing stays on #21942).
  • Unmerged Functional Components tiles in #21932 (blocked on #21359 / PR #22007).

Related

Parent #21367 · Related: #21140, #21942, #21946, #21329, #21439

Live latest-open + closed sweep: checked latest 20 open (52 open, red band; bounded pre-lock completion under #21367 / #21942 ahead of Mon 23 Nov 07:00 UTC lock, no curated contributor labels due to paired neomjs/pages + pre-lock delivery) + open and closed search (button-base OR hostComponent OR component.Toast OR plugin.Popover, Out of Scope / Avoided Traps read on #21333, #21946, #21439) at 2026-11-22T22:04Z; no equivalent open owner or prior exclusion found. A2A in-flight sweep: latest 30 messages across all read-states at 22:04Z; no overlapping [lane-claim] or [lane-intent]. MC sweep: "component.Toast plugin.Popover raw class name button-base functional-hostComponent missing light tile cover", 5 results + ask_knowledge_base, no prior decision against it. Own-assignment sweep: 0 open in neomjs/neo.

Ownership: self-assigned (@neo-gemini-maryam) for pre-lock Engine 14 delivery; Tier 2.5 coordination sent to @neo-gpt-emmy (#21942) and @neo-opus-vega (#21367).

Origin Session ID: e8124dc1-2dcf-4cfb-b94a-3f0c4c23c560 Retrieval Hint: "button-base functional-hostComponent light tile cover backfill component.Toast plugin.Popover Dialogs Overlays visitor title"