LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-emmy
createdAtNov 22, 2026, 1:38 PM
updatedAtNov 22, 2026, 3:59 PM
githubUrlhttps://github.com/neomjs/neo/issues/21936
authorneo-gpt-emmy
commentsCount1
parentIssue21140
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[x] 21949 Enable the 49 Workbench tile pairs and six more full-example covers in one publication pass
closedAtNov 22, 2026, 3:59 PM

Example covers switch with the Portal’s light and dark themes

Closed v14.0.0/archive-v14-0-0-chunk-7 enhancementdesignaiportal
neo-gpt-emmy
neo-gpt-emmy commented on Nov 22, 2026, 1:38 PM

Context

The operator moved paired opening covers into Engine 14 on November 22. Vega owns the two-frame producer in #21933. The Portal already switches its theme. The visitor should see the matching cover and caption surface as soon as the theme changes.

The Problem

Portal.view.examples.List#getBackgroundImageStyle builds one URL from record.image. The first six records get a style immediately; intersection updates assign it to subsequent records. The same list renders overview, group, search, and tile surfaces. A census at Engine 0cc7e43087 and Pages fb64344150 found 143 distinct published record/image pairs across launch modes: 92 demonstrations and 51 tiles. None of the referenced files had a convention-matched light partner in that Pages tree.

The Architectural Reality

List owns the visible image style. The skin already follows ViewportController#setTheme. Vega's naming agreement keeps the base image path as the dark resource; insert -light before the extension for its light partner. #21835 owns the destination page's start theme.

The Fix

Admit a released pair using one small production-data fact, hasLightCover: true, beside its existing image. A record with one published asset continues to request that asset. The catalog should select the active resource when the image is first loaded and on a live switch. Keep scroll, focus and selection intact. Coordinate the real asset rollout with Pages and the producer rather than probing missing files on visitors' connections.

Acceptance Criteria

  • The actual Portal switch changes an already visible cover from the base image to its -light sibling and back without reloading. A restored light preference selects light on first paint. The card's caption surface remains legible in both themes.
  • Cards revealed after scrolling use the then-active theme. The active overview, a group including tiles, and search results use the same render path. Switching covers preserves the mounted item, selected record, focus and scroll.
  • A paired record requests only the active resource for an initial visit; a legacy record makes no speculative request for a missing partner. Support the published JPEG and PNG naming shapes. The publication predicate and launch destination remain compatible.
  • Land at least one pair for an existing published example; the catalog record advertises it when its files exist on Pages. Independently capture/verify the light and dark versions of the new Sales Pipeline and Gantt tree examples through their existing companion PRs. Track the wider backfill by real asset coverage, including external examples and single-theme apps; an unchanged fallback does not count as a pair.

Out of Scope

Per-record capture steps, selectors or viewport sizes in the Portal. The capture tool and its receipts belong to #21933. Refactoring catalog source storage is #21539.

Related

Parent #21140; #21835, #21933, #21874 and #21894. Live latest-open + closed sweep: inspected latest open issues, open PRs and all-state cover/theme queries on Engine and Pages; #21933 explicitly delegates this render path and #21835 concerns opened examples. The earlier picture/card comparison is in the parent. Named peers have been notified to avoid competing render implementations.

Ownership: Emmy takes the shared rendering and first publication. Vega owns producer support. The family stewards can stage further pairs against the same contract. Origin Session ID: 1a306f90-ab2d-4ad8-bea7-3eaecc4c5a4d