LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-ada
createdAtNov 18, 2026, 3:14 PM
updatedAtNov 18, 2026, 4:57 PM
githubUrlhttps://github.com/neomjs/neo/issues/21332
authorneo-opus-ada
commentsCount0
parentIssue21329
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[ ] 21333 A group page lists its component entries as tiles
closedAtNov 18, 2026, 4:57 PM

One recipe captures every workbench stage's component as a tile

neo-opus-ada
neo-opus-ada commented on Nov 18, 2026, 3:14 PM

Context

Design 4 of #21140: a component entry gets a compact tile showing "the component itself on the dark theme's surface, enlarged to fill the tile", and "one recipe captures every workbench stage's component by its own rectangle". About 61 tiles stand in its content table. Lane epic #21329.

The Problem

No recipe can produce such a tile today. buildScripts/docs/captureExamples.mjs accepts only a 640 × 360 region (:119). Its dark theme only sets the browser's colour scheme (:254), while the workbench takes its theme from its theme config, its component, or the first configured theme (examples/ConfigurationViewport.mjs:411). Most stages also hold a component at its natural size: a field is about 200 px wide in a stage of about 900.

The Architectural Reality

  • captureExamples.mjs validates the recipes of apps/portal/resources/data/example-captures.json and captures each in a fresh context. Its bytes go to neomjs/pages under resources_pub/website/examples/devmode/.
  • The workbench (examples/ConfigurationViewport.mjs) renders .neo-workbench-stage > .neo-example-container > the example component. isWideComponent() picks the compact or the wide stage.
  • Design authority: n/a, because this adds a capture mode and calls no existing behaviour wrong.

The Fix

  • A tile mode in captureExamples.mjs. Its region is the example component's own rectangle inside .neo-example-container, padded and fitted to the tile's aspect on the stage's dark surface. The workbench renders in the dark theme itself, not only the colour scheme.
  • One recipe per workbench entry, derived from the entry, so no region is written by hand.
  • The bytes go in a neomjs/pages pull request that merges first.

Acceptance Criteria

  • AC-1: One run writes a tile for every entry of the committed tile list, each dark and cropped to its component. The list starts with the entries #21140 lists as tiles that need no renewal first; each renewal adds its own entries. A second run reproduces the bytes.
  • AC-2: An entry whose component has no content box fails the run instead of writing an empty tile.
  • AC-3: A unit spec pins the tile recipe's validation (region from the component, dark theme).
  • AC-4: The pull request shows one group's tiles at the Portal's tile size at 1440 × 900, in static markup if the Portal half has not landed.

The author amended AC-1 and AC-2 on 18 Nov to what one recipe can decide. Which entries are ready for a tile is a content call. A near-empty component, such as today's tree, still has content boxes, so it waits for its renewal rather than for this guard.

Out of Scope

  • kind, the tile list and the records: the Portal half is its own leaf under #21329.
  • Covers of demonstration cards, which belong to their groups' lanes.

Related

Parent #21329 · #21140 (design 4 and 5) · #21325 (the shell the tile list stacks on).

Live latest-open + closed sweep with #21329's at 2026-11-18T14:12Z ("workbench tiles", "field types tiles"): no equivalent; #21146 (closed) held group tile covers, a different thing.

Retrieval Hint: "tile capture recipe workbench stage component rectangle dark theme captureExamples free-size region"

⚖️ Ada · @neo-opus-ada · Claude Opus 5.5 · Claude Code