LearnNewsExamplesConnect
Frontmatter
assigneesneo-gemini-julia
createdAtNov 23, 2026, 2:51 AM
updatedAtNov 23, 2026, 3:36 AM
githubUrlhttps://github.com/neomjs/neo/issues/22057
authorneo-gemini-julia
commentsCount0
parentIssue21358
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 23, 2026, 3:36 AM

Seven Portal example captions read whole within two lines

Closed v14.0.0/archive-v14-0-0-chunk-7 bugdesignaiportal
neo-gemini-julia
neo-gemini-julia commented on Nov 23, 2026, 2:51 AM

Context

Completes the cross-group two-line caption fit deferred in #21638's Out of Scope (Country Statistics Grid, Sparklines, Mermaid Diagrams, Popover) plus the three adjacent 106–141-character captions (File Explorer, OpenStreetMaps / OpenLayers, Tooltips) that still overflow .portal-example-feature's two-line clamp (scrollHeight: 53 > clientHeight: 35) across grid-table, charts, dialogs, and tree on dev (6bce66de69).

  • Live latest-open + closed sweep: checked latest 20 open (50 open, orange band; folding under Epic #21358) + open and closed search (captions two lines feature clamp, captions two lines; read #21638 and #21584 Out of Scope / Avoided Traps) at 2026-11-23T01:49:25Z; no open duplicate exists.
  • A2A in-flight claim sweep: checked latest 30 messages across all read states (2026-11-23T01:02Z–01:49Z); #22053 (charts.json / grid-table.json hasLightCover) has already merged (6bce66de69), and no peer claims example captions.
  • MC sweep: portal example card caption still cut after two lines Sparklines Mermaid Popover Country Statistics Grid, 5 results, no conflicting decision.
  • Own-assignment sweep: 2 open (#22055 in Round-2 review via #21991, #21847 post-cut live verification), none overlapping.
  • Ownership: self-assigned maintainer delivery ahead of the 2026-11-23 07:00 UTC Engine 14 examples lock (no contributor labels).

The Problem

Measured in headless Chromium on dev (6bce66de69) across all 20 Portal example group routes (#/examples/<group>) at 1440 × 900, 1366 × 768, 1024 × 768, and 641 × 800, seven .portal-example-feature captions exceed two lines (scrollHeight: 53 > clientHeight: 35) and get cut mid-claim with an ellipsis:

Group Record (id) Current length Cut at two lines (scrollHeight > clientHeight + 1)
tree file-explorer 141 chars 1440 × 900, 1366 × 768, 1024 × 768, 641 × 800
charts sparklines 133 chars 1440 × 900, 1366 × 768, 1024 × 768, 641 × 800
charts mermaid 121 chars 1440 × 900, 1366 × 768, 1024 × 768, 641 × 800
grid-table grid-countries 122 chars Compact cards at 1366 × 768, 1024 × 768, 641 × 800
dialogs popover 121 chars 1366 × 768, 1024 × 768, 641 × 800
dialogs tooltip 118 chars 641 × 800 (301px compact card)
charts open-street-maps 106 chars 641 × 800 (301px compact card)

The Architectural Reality

  • Design authority: #21119 Contract Ledger ("a proof line of more than two lines is cut with an ellipsis and stays whole in the DOM") paired with #21140 / #21638 ("captions are cut mid-claim" — compact card captions must read whole within two lines at desktop/tablet card widths down to 641 × 800).
  • apps/portal/resources/data/examples/{tree,charts,grid-table,dialogs}.json own each record's feature string (#21856 per-group catalog split).
  • resources/css/src/apps/portal/examples/List.css enforces the two-line clamp on compact cards (#21585).
  • apps/portal/resources/data/seo.json is regenerated atomically at release-cut time by buildScripts/release/prepare.mjs -> rebuildContentIndexesAndSeo.mjs.

The Fix

Tighten the seven feature strings to 80–86 characters each while preserving every proof detail:

  1. tree.json (file-explorer): "Drag files between folders, rename in place, and filter while keeping matched paths."
  2. charts.json (sparklines): "Six metric cards draw thirty live sparklines in the canvas worker once a second."
  3. charts.json (mermaid): "Mermaid draws flowchart, sequence, class or Gantt diagrams on each edit or theme swap."
  4. charts.json (open-street-maps): "An OpenLayers map plots 51 earthquake records with camera, zoom and marker controls"
  5. grid-table.json (grid-countries): "217 World Bank economies with flags, formatted figures and growth tinted by value"
  6. dialogs.json (popover): "A popover opens beside its button on the chosen side and flips when space runs out."
  7. dialogs.json (tooltip): "Plain hints, a rich velocity card and tunable delays work by pointer or keyboard."

Decision Record impact

none — catalog feature copy tightening within #21140 / #21638's two-line card contract.

Acceptance Criteria

  • All seven updated .portal-example-feature captions satisfy scrollHeight <= clientHeight + 1 at rest across #/examples/tree, #/examples/charts, #/examples/grid-table, and #/examples/dialogs at 1440 × 900, 1366 × 768, 1024 × 768, and 641 × 800 in headless Chromium.
  • Existing Portal catalog unit and E2E specs pass without hand-editing generated seo.json / sitemap*.xml / llms*.txt artifacts.
  • Before (dev) and after (branch) full-page screenshots at 1366 × 768 (Neo Dark) are attached to the pull request (rendered-surface-audit.md).

Out of Scope

  • Phone single-line card clamping (<= 640px, intentional per #21584).
  • Hand-editing apps/portal/resources/data/seo.json (regenerated by prepare.mjs at cut time).

Avoided Traps

  • Rewrites between 98–106 characters: Still clip on 301–307px compact cards at 1366 × 768 and 641 × 800 (#21638). Keeping all seven between 80–86 characters clears every breakpoint cleanly.

Related

Origin Session ID: 12bb6bb7-21ca-4b36-824f-66ea4320e1d8 Retrieval Hint: "Portal example captions two lines scrollHeight clientHeight file-explorer sparklines mermaid grid-countries popover"