LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 20, 2026, 5:19 PM
updatedAtNov 20, 2026, 9:37 PM
githubUrlhttps://github.com/neomjs/neo/issues/21590
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 9:37 PM

The examples list counts what each group page shows

Closed v14.0.0/archive-v14-0-0-chunk-5 enhancementaiportal
neo-opus-vega
neo-opus-vega commented on Nov 20, 2026, 5:19 PM

Ownership: self-assigned (Vega), the builder named in the steward's decision below. No curated label: it is a gate item due before the copy lock (Sun 22 Nov, 18:00 CET).

Context

Friday's gate read on #21140 (Ada, 13:40 UTC), item 7, named by both readers: "30 live examples, 1 from other groups" needs reading twice, and Trees and Drag & Drop show no number in the list. Clio, the epic's steward, decided the counts after a cold two-reader comparison of three versions (#21140 comment 7044472767).

The Problem

The list counts a group's home records only (the rule of #21130, kept by AC-3 of #21509), so its numbers add up to the overview's headline. A group that also shows borrowed cards reads lower than its page: Apps shows 6, and its page has 11 cards. A group without home records shows no number, which reads as zero next to a TreeGrid card. In a production build, ten of the 21 groups borrow, 20 placements in all.

The Architectural Reality

  • ExampleGroup.countText and ExampleGroup.countLabel (apps/portal/model/ExampleGroup.mjs) render the list's figure, and the words for the entry's aria-label and the group page's line.
  • GroupIndex#createEntry (apps/portal/view/examples/GroupIndex.mjs) renders the list. With a filter on, it reads matchCounts (home, cross, total) and shows home matches only.
  • GroupPage (line 176) writes countLabel and the group's sentence as the page's line.
  • MainContainerController#publishGroups keeps count (home) and crossCount (borrowed) per group, and the overview's headline sums count. The data keeps both quantities; only what the list and the page show changes.
  • Design authority: Clio, steward of #21140, comment 7044472767: "a group's number counts its home records plus the ones it borrows"; "A group page's line: the plain total"; "Under the list, one line: '121 examples in all. Some appear in more than one group.' The number comes from the catalog." It reverses #21130's home-only rule and AC-3 of #21509, and brings back a line where #21509 removed one.

The Fix

  1. ExampleGroup.countText and countLabel count home plus borrowed records: "11" and "11 live examples".
  2. GroupIndex: with a filter on, a group's number and its label are its total matches ("3", "Drag & Drop, 3 matching examples"). Under the list, one line: " examples in all. Some appear in more than one group.", where N is the published total that the overview's headline counts. The line shows while some group borrows and no filter is on.
  3. JSDoc of publishGroups, countText and countLabel: the data keeps home and borrowed apart, and the list and the page show their sum.
  4. GroupIndex.css: the line's rule.
  5. Specs: the unit spec's count-label, phone-index and filter expectations; the e2e test that every count adds up to the headline becomes: every number equals what its page shows, and the line states the headline's total.

Acceptance Criteria

  • AC-1: In a production build, every list entry's number equals the live examples its page shows: Apps 11, Trees 2, Drag & Drop 3.
  • AC-2: A group page's line starts with the plain total, for example "11 live examples · …".
  • AC-3: Under the list: "121 examples in all. Some appear in more than one group.", its number equal to the overview headline's for the selected build; "All examples" carries no number.
  • AC-4: With a filter on, each number is the group's matching total and its label says "N matching examples"; the line under the list is not shown.
  • AC-5: The unit spec and ExamplesCatalogNL.spec.mjs pass, and the PR records the rendered list, read from the running Portal at 1440 × 900 and 390 × 844, before and after.

Out of Scope

  • The "All examples" row's name and number: open in Saturday's whole read on #21140.
  • A borrowed card's group name on a group page, Apps' and Trees' sentences, and the big-grid button's wording (seen by both readers, not decided).
  • The build control (finding 3, Ada) and the phone header (finding 9, Maryam).

Related

#21140 (the examples epic; its steward's decision) · #21130 and #21509 (the rule and the AC this reverses) · #21367

Live latest-open + closed sweep: latest 20 open + open and closed search ("examples list count group", "examples group count list"; #21509 and #21130 read) at 2026-11-20 16:15 UTC; no equivalent open ticket. Backlog: 55 open (red); the owning epic #21140 holds 40 sub-issues, so this is filed beside it, as #21518 was. A2A sweep: latest 15, all read states; the only claim on this scope is my own (eb8823d1, pending the steward's decision). MC sweep: one query on the problem's nouns, no prior decision. Own assignments: none on this surface.

Origin Session ID: 4d29bbea-1f28-4f31-9ebe-bee0cce87d61

Retrieval Hint: "examples group list count home plus borrowed totals line under the list 121 examples in all"

tobiu referenced in commit 514f86f - "feat(portal): the examples list counts what each group page shows (#21590) (#21592) on Nov 20, 2026, 9:37 PM
tobiu closed this issue on Nov 20, 2026, 9:37 PM