LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 19, 2026, 5:09 AM
updatedAtNov 19, 2026, 11:24 AM
githubUrlhttps://github.com/neomjs/neo/issues/21439
authorneo-opus-vega
commentsCount0
parentIssue21367
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[x] 21423 A popover opens at its target, placed by CSS anchor positioning
blocking[]
closedAtNov 19, 2026, 11:24 AM

Dialogs & Overlays shows the dialog, the toast and the popover working

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementaiportal
neo-opus-vega
neo-opus-vega commented on Nov 19, 2026, 5:09 AM

Owned: a leaf of #21367 until its lock, Sun 22 Nov 18:00 CET. The group's renewal, after its defects (#21415, #21423, #21431).

Context

#21140's target for Dialogs & Overlays is 3 cards; it shows 1. The rows on #21142 (comment) renew dialog, component/toast and popover, and leave the Tooltips example to a contributor (#21367). Measured on dev 5a3cb4de67:

  • examples/dialog at 375 × 812: the option row does not wrap. "Animated" starts at x 392 and "Modal" at x 496, so two of the three checkboxes are off the screen.
  • examples/component/toast: the printed call carries the example's own appName and windowId values and import … from '../../../../node_modules/neo.mjs/src/component/Toast.mjs', a path that resolves only from that folder.
  • examples/popover: opens in the window's corner until #21426 merges.

The Problem

A card publishes only with a cover taken after its content is drawn (#21367). Dialog and toast have no capture recipe, and the popover has nothing worth capturing until its fix lands. A reader at phone width cannot reach two of the dialog's options, and a reader who copies the toast call gets values and a path that only work inside the example.

The Architectural Reality

Design authority: #21367's terminal predicate, "every label drawn, focus where the page promises, nothing cut at 390 px, no card that opens on an error", and #21140's card count.

  • Records: apps/portal/resources/data/examples.json. Capture recipes: apps/portal/resources/data/example-captures.json, run by buildScripts/docs/captureExamples.mjs. The images ship in a companion neomjs/pages pull request, as #21328 did for the map.
  • The catalog's count specs follow every card: test/playwright/unit/apps/portal/view/examples/MainContainerController.spec.mjs and test/playwright/e2e/portal/ExamplesCatalogNL.spec.mjs.

The Fix

  • examples/dialog/MainContainer.mjs: the option row wraps, so every control stays on screen at 390 px.
  • examples/component/toast/MainContainer.mjs: the printed call reads as code a component can run: appName: this.appName, windowId: this.windowId instead of their values, and no folder-relative import path.
  • example-captures.json: recipes for the dialog (open), the toast (shown) and the popover (open at its button), each waiting until the content is drawn.
  • examples.json: the three covers; the count specs follow; a neomjs/pages pull request carries the images.

Acceptance Criteria

  • AC-1: At 390 × 844, every control of examples/dialog is on screen.
  • AC-2: The toast's printed call carries no literal window id and no import path that resolves only from the example's folder.
  • AC-3: Dialogs & Overlays shows 3 cards (dialog, toast, popover), each cover taken after its content is drawn.
  • AC-4: The catalog count specs follow the new cards.

Out of Scope

  • The Tooltips example: a contributor leaf (#21367).
  • The dialog's title-bar hover: #21422.

Related

  • Parent: #21367. Slate: #21142. Target: #21140. Blocked by: #21423 (the popover's cover is taken from the fixed example).

Live latest-open + closed sweep: checked latest 20 open + open and closed search (Dialogs Overlays; toast example) at 2026-11-19T04:09:21Z; no equivalent found. Backlog band: 80 open (red); folds under its owning epic #21367. A2A claim sweep: no claim on Dialogs & Overlays; the group is mine on #21367. MC sweep: covered by #21367's sweep of the component groups; no prior decision on these three cards. Own-assignment sweep: none overlapping.

Retrieval Hint: "Dialogs & Overlays renewal: dialog wraps at 390, toast prints runnable code, three covers"