LearnNewsExamplesConnect
Frontmatter
assigneesneo-gpt-euclid
createdAtNov 10, 2026, 2:42 PM
updatedAtNov 12, 2026, 2:06 PM
githubUrlhttps://github.com/neomjs/neo/issues/20724
authorneo-gpt-euclid
commentsCount3
parentIssue20498
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 12, 2026, 2:06 PM
milestonev13.5

Make example cards lighter without hiding their screenshots

Closed v14.0.0/archive-v14-0-0-chunk-1 enhancementdesignaiportal
neo-gpt-euclid
neo-gpt-euclid commented on Nov 10, 2026, 2:42 PM

Context

The operator requested a design follow-up after #20703 merged: “black cards don't exactly look nice,” and suggested dark blue / purple surfaces with some transparency. This leaf belongs to #20498's examples overview outcome.

The existing cover ticket #20679 explicitly excludes caption copy and the caption scrim. It does not cover this work. The functional catalog/navigation leaves #20500 and #20690 remain complete.

The Problem

The image-card caption uses background-color: rgba(0, 0, 0, 0.88) in resources/scss/src/apps/portal/examples/List.scss:263-276. That preserves text legibility but creates a heavy inset black rectangle. Long captions also cover much of the screenshot on a phone. Changing only the hue improves the tone while retaining that composition problem.

The default cover gradient is grey, so cards without a screenshot need to belong to the selected visual system too. The comparison must preserve the demonstration's visible detail and the feature / observation / limitation copy.

Design authority: the operator's 2026-11-10 request to reconsider this card treatment and explore blue/purple semitransparency.

The Architectural Reality

  • apps/portal/view/examples/List.mjs#createItemContent owns the cover, placeholder and caption composition; the canonical Model / Store records remain the content authority.
  • resources/scss/src/apps/portal/examples/List.scss owns geometry, the current black surface, the cover blend/gradient and fallback treatment.
  • The nearby Connect view separates structural glass rules from dark/light palette custom properties in resources/scss/{src,theme-neo-dark,theme-neo-light}/apps/portal/services/Container.scss. Use that ownership pattern with Examples-specific aliases of existing Portal/semantic theme tokens, not independent card-only colours or Services variable names.
  • ExamplesCatalogNL.spec.mjs:112-119 currently tests caption background alpha >= 0.85 and padding >= 12. It does not require black, but this is an implementation proxy: a translucent gradient can have a transparent computed background-color while painting an adequate surface. Update the oracle to the chosen treatment.

Prescription checked: this belongs in the existing Examples List and its SCSS/theme owners. No engine primitive, metadata sidecar or new design subsystem is needed.

Options and Current Preference

Direction Treatment Trade-off
Tinted glass — operator's preferred candidate Use a full-width navy → violet glass sheet docked to the bottom edge on wide cards, with a bounded height and restrained local blur; put the caption below the image on phones. Derive production colours from existing Portal theme tokens. Preserves the preferred surface while removing the busy inset frame. Keep at least half the cover uncovered with the longest caption; a readable no-blur fallback is required.
Preview + caption Give the screenshot its own visible upper region, with copy in a blue/violet surface below. Keep copy in normal flow so long mobile captions can grow. Addresses both the colour and image-occlusion problems. Cards may become taller; compare density and crop before choosing.
Full-bleed gradient Remove the inset box on wide cards; strengthen a continuous theme-derived blue/violet scrim toward the bottom. Put the caption below the image on phones. More cohesive than a black rectangle, but busy images and long captions still need a strong lower wash.

Steward design input (Clio, 2026-11-10): captions must not cover the screenshot at phone width; the separated composition must be compared at 375px regardless of the desktop colour choice. Production tint derives from existing Portal theme tokens in both appearances. Put captures of the three candidates at 375px and 1440px, light and dark, on this ticket for her design read before the operator pins a direction. Conversation mockups are exploratory, not that acceptance receipt.

The initial exploration favoured Preview + caption for image visibility. After viewing the comparison, the operator prefers Tinted glass: it looks nicer to him than the separated composition. Clio's provisional design read agrees that glass is the better surface and refines the candidate into a full-width, bottom-docked sheet rather than an inset panel. A local actual-Portal comparison packet now exists, and Clio's actual-capture design read supports the docked-sheet composition. On 2026-11-12 the operator delegated the choice to Clio's and Euclid's judgment after seeing the actual comparisons. Euclid selects Clio's refined glass-lip composition below. The comparisons are now retained on an evidence-only feature branch; the production source candidate and its local contrast/no-blur/scroll evidence are now linked below; review and normal publication remain separate.

Refined glass candidate

The selected refinements follow Clio's actual-capture design read: confine translucency to a 20–24px top lip (roughly 0.55 alpha ramping to opaque, restrained blur and a light edge), keep the text region opaque, align card bottoms within each row with the cover taking spare height, and tint coverless placeholders in the same theme family. The existing nearly opaque sheet remains a valid alternative if named a tinted caption surface. The source candidate's composite contrast and local scroll observations are recorded below. Phone cover crop belongs to #20679 and needs coordination through this ticket's screenshot-visibility criterion; no capture work is silently absorbed here.

  • Dock the sheet to the bottom edge at full width; remove the inset frame of cropped screenshot fragments.
  • At 1440px, keep at least half the cover uncovered with the longest catalog caption. Let the card grow instead of letting the sheet climb or truncating essential copy. If that cannot fit, use the separated composition on that evidence.
  • At 375px, the caption is below the image in both main candidates; check that glass without an image behind it still belongs to the same visual family.
  • Read the weakest point of the light-theme composite as well as the dark one. A light frosted sheet with dark text may be the appropriate theme expression; avoid simply turning the black rectangle blue.
  • Tint must carry legibility without backdrop blur. Keep blur restrained and scroll the full catalog with it enabled before accepting the treatment.

Apply transparency to the surface background, never to the whole card, text or icons. Do not blur the demonstration itself. Coordinate any changed image frame/crop with #20679's cover composition; do not absorb its capture work.

Selected treatment and retained renders — 2026-11-12

Selected: a 22px glass lip above an opaque theme-derived caption, aligned row bottoms, tinted coverless placeholders and a normal-flow phone caption. The pure-CSS proof uses intrinsic grid rows, with no per-card runtime sizing; it covers all 21 family cards in both themes at 1440/375/390 and preserves at least half the desktop cover. The authored source candidate now implements this direction; the retained acceptance packet below contains its actual-render, contrast and local timing observations.

The evidence gallery is retained outside the product merge branch. Capture sources and limits are in its README.

Original three candidates, desktop and phone, both appearances

Original desktop candidates

Original phone candidates

Selected glass-lip refinement and intrinsic CSS proof

Refined desktop

Refined phone

Coverless comparison

Intrinsic CSS proof

Authored source candidate — 2026-11-12

PR #20813 at 1aa4bcd742ce510de17f73c98d0cbc3eaceaa6fb implements the selected treatment in four source/test files. The retained source acceptance gallery includes the actual before/after board, no-blur frame, capture recipes and JSON receipts, outside the product merge branch.

Authored source before/after

Local validation: Portal units 22/22 and catalog E2E 10/10, without retries. Both themes at 1440/375/390 cover 288 card observations per arm: source has zero overflow or undocked captions and minimum 50% clear desktop cover; the old source fails the docking oracle. The root blur/no-blur probe retains identical geometry/copy, weakest sampled contrast 11.41:1, and eight synthetic 100-frame scroll traversals with intervals around 16.7ms on this machine. These are local Chrome observations, not native-wheel or cross-device performance guarantees. Canonical records, image URLs and cover framing are unchanged. Current-head hosted CI and independent review follow on the PR; normal deployed-site acceptance belongs to parent #20498.

Contract Ledger

Surface Authority Proposed behavior Fallback Evidence
Image-card caption operator direction; existing List / SCSS selected blue-violet composition with readable opaque content readable surface when blur is unavailable before/after real-browser cards
Cover and placeholder canonical example record; existing VDOM demonstration remains visible; coverless cards use the same visual family existing honest placeholder image and coverless samples
Palette / geometry existing Portal theme tokens, Examples aliases / structural SCSS theme-owned colours, responsive containment; phone caption below image both Portal light and dark appearances 1440px / 375px renders; preserve 390px regression coverage
Readability oracle existing Portal E2E verify the selected surface and containment rather than freeze the old alpha rule no clipping or hover-only essential copy focused E2E

Acceptance Criteria

  • Put actual Portal captures of the three candidates at 375px and 1440px, light and dark, on this ticket using the same cover/copy for comparison. Clio performs the design read; record the operator's selected treatment and rationale before implementation is pinned.
  • Apply that treatment consistently to image and coverless cards, with palette values derived from existing Portal tokens and owned by the appropriate theme layer. Preserve captions, ordering, family navigation, build targets and example/source links.
  • Text and icons remain opaque and readable over representative bright, dark and busy covers, including a readable no-blur fallback if blur is used. The screenshot's useful detail remains visible.
  • At 1440px, the refined glass sheet is full-width and bottom-docked, with at least half the cover uncovered even for the longest caption; grow the card rather than truncate copy or let the sheet climb. If the cap cannot hold the copy, record that falsifier and use the separated composition.
  • At 375px captions sit below the screenshot. At 1440px and phone widths, Featured and family cards contain long captions without clipping or horizontal overflow; preserve the existing 390px regression coverage; essential information is not hidden behind hover. A selected normal-flow treatment may grow card height.
  • Replace the old background-alpha proxy as needed and pass the focused Portal examples unit/E2E checks.
  • Show actual Portal before/after evidence in light and dark appearances. Keep review captures in retained PR evidence, not the final product tree.

Out of Scope

New screenshots or catalog records (#20679 and the family leaves), caption rewrites, changing image hosting, global Portal redesign, new engine APIs and deployed-site acceptance before the normal publication.

Avoided Traps

  • Lowering the whole card's opacity: it fades the text as well as the surface.
  • Recolouring the rectangle while ignoring how much demonstration it obscures.
  • A literal colour/alpha assertion promoted to a readability guarantee.
  • Truncating the feature/observation copy or making it hover-only to fit a fixed height.
  • Adding one-off npm-ignore entries for design evidence.

Related and Ownership

Parent #20498 · follows merged #20703 · related #20500 and #20679.

Self-assigned to Euclid for design continuity. Not a good first issue while the visual direction is unresolved; the source candidate is PR #20813; source review and deployed acceptance remain distinct.

Live latest-open + closed sweep: latest 20 open read plus open/closed searches examples cards, caption and cards portal; relevant boundaries on #20500, #20690, #19640 and #20679 read; no equivalent design follow-up found. Issue-only backlog: 26 open, orange band; this is an operator-requested leaf of the existing outcome. A2A: recent all-state claims checked; no caption-design claim. Steward Clio was sent the fork/recommendation in MESSAGE:d2ac30f1-b147-4a33-bf31-e73c98e9d29c. MC: three problem-framed searches found no matching prior decision; KB returned adjacent card/crop material, not this follow-up. Own assignments: no open Engine issue before this filing. Parent has 23 sub-issues before this leaf. Structure-map: N/A, no Agent OS surface or .mjs placement. Decision Record impact: none.

Origin Session ID: c9d32236-9c2a-44b6-afd3-865003b65f2e Retrieval Hint: Portal examples black caption card blue purple glass screenshot visibility.

tobiu referenced in commit 6f15b70 - "fix(portal): dock example captions below a glass lip (#20724) (#20813) on Nov 12, 2026, 2:05 PM
tobiu closed this issue on Nov 12, 2026, 2:06 PM