LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 19, 2026, 11:36 AM
updatedAtNov 19, 2026, 5:31 PM
githubUrlhttps://github.com/neomjs/neo/issues/21465
authorneo-opus-grace
commentsCount0
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 19, 2026, 5:31 PM

Containers & Layouts shows seven layouts side by side, and the cube

Closed v14.0.0/archive-v14-0-0-chunk-4 enhancementaiportal
neo-opus-grace
neo-opus-grace commented on Nov 19, 2026, 11:36 AM

Context

#21140's target gives the Containers & Layouts group two cards at the Engine 14 cut: + Layouts side by side ("the same six items under fit, hbox, vbox, flexbox, grid, card and cube, with align, pack and flex as controls") and ✓ layout/cube ("a card: nothing else shows it"). The band (Trees, Tabs, Containers & Layouts, Dashboard & Docking, Drag & Drop) is mine in #21140's roadmap table; this is its next leaf after #21323 and #21350. Design read on Sat 21 Nov, lock Sun 22 Nov 18:00 CET (#21140 "Dates").

Ownership: a maintainer lane named in #21140's roadmap table, due before the lock, so no contributor labels.

The Problem

On dev at e2272a9f2b the group has no card. Its only record is layout-form (kind: 'component', a tile). examples/layout/cube runs but has no catalog record, and nothing in the catalog shows what Fit, HBox, VBox, Flexbox, Grid or Card do. The group's sentence in apps/portal/view/examples/MainContainer.mjs:78 promises "Card, cube and form layouts, accordions, panels, a full viewport"; the target retires container/base, panel and viewport from the catalog as developer checks.

A visitor who opens the group cannot see that a container's layout is one config that can change at runtime, which is the point of the family.

The Architectural Reality

  • src/layout/: Fit, HBox, VBox (both Flexbox with a fixed direction), Flexbox (align_, direction_, gap_, pack_, wrap_), Grid, Card (activeIndex_, slideDirection_), Cube (activeIndex, activeFace_, perspective_, rotateX_/rotateY_/rotateZ_, six faces), Form.
  • resources/css/src/layout/Fit.css: every fit item is flex: 1 0 100%, so a fit container shows its first item at full size. Grid.css sets only display: grid: the template is the container's own style.
  • A catalog card is a record in apps/portal/resources/data/examples.json (shape on apps/portal/model/Example.mjs), a recipe in apps/portal/resources/data/example-captures.json whose families must list the record's family, and a cover from buildScripts/docs/captureExamples.mjs --family layouts, published to neomjs/pages. #21446 is the sibling pattern (records, recipes, seo.json, catalog spec counts).

The Fix

  1. examples/layout/sideBySide/: one page, seven frames, each a container titled with its layout and holding the same six labelled items: fit, hbox, vbox, flexbox (wrapping), grid (a 3 × 2 template), card and cube. A control bar sets align, pack and the items' flex on every frame they apply to, and steps the card and cube frames through the six items. Each frame says in one line what its layout does.
  2. Records in examples.json: layouts-side-by-side and layout-cube, family layouts, with feature, lookFor and scope.
  3. Covers: two recipes, layouts added to families, captured with captureExamples.mjs; the images in a neomjs/pages pull request.
  4. The group's sentence names what it shows after this leaf.
  5. Catalog specs take the new counts (unit/apps/portal/view/examples/MainContainerController.spec.mjs, e2e/portal/ExamplesCatalogNL.spec.mjs); seo.json takes the generator's changed entries.

Acceptance Criteria

  • AC-1: examples/layout/sideBySide shows the six items under fit, hbox, vbox, flexbox, grid, card and cube at once, each frame titled with its layout; at 1440 × 900 and at 390 × 844 no frame cuts its items.
  • AC-2: Changing align, pack or flex moves the items in every frame it applies to, and the card and cube frames step through all six items. A component spec drives pack and align and reads the hbox and vbox items' rects.
  • AC-3: The Containers & Layouts group shows two cards, Layouts side by side and the cube, each with a caption and a cover taken by its recipe, and keeps the form-layout tile.
  • AC-4: The catalog unit and e2e specs pass with the new counts.

Out of Scope

  • The group's tiles (container/accordion, layout/card as a three-step wizard, container/fragment): the next leaf of this band.
  • Any change to src/layout/*. A defect found while building is a defect-note and its own ticket.
  • Trees, Tabs, Dashboard & Docking: their own leaves.

Avoided Traps

  • Six items in a fit frame read as a bug. Fit shows its first item at full size by design (Fit.css); the frame's line says so.
  • Grid without a template stacks one column. The grid frame takes its three columns from the example's stylesheet, as an app would.
  • One example per layout. Seven pages repeat the same items; one page that sets them side by side is the comparison the target asks for.

Related

Live latest-open + closed sweep: checked latest 20 open (open count 74, red band: folded under #21140) + open and closed search ("layouts side by side", "layout cube example", "Containers Layouts"; Out of Scope / Avoided Traps of #19010 read) at 2026-11-19T10:35Z; no equivalent or prior exclusion found. A2A in-flight sweep (30 newest, all read states): no claim on this group. Memory Core sweep: no prior attempt. Own assignments: none on this surface.

Retrieval Hint: "Containers & Layouts examples group seven layouts side by side cube card"

Origin Session ID: d776ccf3-4f3f-4feb-a4ce-f480e6a65b0c